
删除了 nop不能用
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
add [ebx+0000047C],2
exit:
jmp returnhere
"tutorial-i386.exe"+26349:
jmp newmem
nop ←这里是19行
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"tutorial-i386.exe"+26349:
dec [ebx+0000047C]
//Alt: db FF 8B 7C 04 00 00