Optimize Loop

Optimize the conversion loop for deobfuscation.
//@@ shift the hex array with the shift map $_rx=[]; for($_i=0,$_j=0;$_i<$_hx.length;$_i++,$_j++,$_j%=0x100){ $_byte=($_window.parseInt($_hx[$_i],16)-$_sx[$_j]+0x100)%0x100; //@@ convert a number to hexdecimal //@@ %00,%01,%02,...%ff $_rx.push("%"+(($_byte<16)?"0":"")+$_byte.toString(16)); }
You need to pay attention to the following 4 points:
$_hx.length
$_window.parseInt
$_rx.push
$_byte.toString(16)