Code: Select all
[ENABLE]
aobscanmodule(crossSpreadReplace,MassEffectAndromeda.exe,F3 0F 58 F9 F3 0F 11 BB ?? ?? ?? ?? 0F 28 7C 24 ?? 48)
globalalloc(crossSpreadOriginalWhole,12)
globalalloc(crossSpreadOriginalOffset,4)
crossSpreadOriginalWhole:
readmem(crossSpreadReplace,12) // Read the entire two instructions to be replaced
crossSpreadOriginalOffset:
readmem(crossSpreadReplace+8,4) // Read just the '??' bytes
crossSpreadReplace: // Write the new instruction to replace previous two. MOV [rbx+??],#0 and two NOPs for equal bytes replaced
db C7 83
readmem(crossSpreadOriginalOffset,4)
db 00 00 00 00 90 90
registersymbol(crossSpreadReplace)
[DISABLE]
crossSpreadReplace:
readmem(crossSpreadOriginalWhole,12) // Replace with original two instructions
unregistersymbol(crossSpreadReplace)