alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

aobscan(aob2, ff 4e 04 8b 4d 08 8b c7 89 4d ec e8 33 12 00 00 8b d8)
registersymbol(aob2)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
aob2:
inc [esi+04]
mov ecx,[ebp+08]
originalcode:
dec [esi+04]
mov ecx,[ebp+08]

exit:
jmp returnhere

"game.exe"+ECCDD:
jmp newmem
nop
returnhere:

