[ENABLE]
//code from here to ‘[DISABLE]’ will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
cmp [ebx+10],1
je originalcode
mov eax,[ebp-04]
mov [ebx+04],eax
originalcode:
exit:
jmp returnhere
“Tutorial-i386.exe”+28E86:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
“Tutorial-i386.exe”+28E86:
mov eax,[ebp-04]
mov [ebx+04],eax
//Alt: db 8B 45 FC 89 43 04