please check my above ASM with bits o PHP stuck in for mistakes please
No idea if this gives the right output or not but easier to read.
$p is called so because the 4th char should almost always p
$w is called so because the 8th char should not quite almost always be w
e.g.
http://www
capiche?
ive converted this to high level somewhat
PHP Code:
function Mutate($url, $BJHash) {
$p = $url[3];
$rem = ($p%13);
$w = $url[7];
$w = $w/7;
$rem = $rem & 7;
$rem_shl = ($rem << 2);
$mut = $rem_shl | $rem;
return $mut;
}