치트엔진 튜토리얼 9번
31337157
[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
cmp [ebx+10],1
jne originalcode
fadd dword ptr [ebx+04]
fstp dword ptr [ebp-30]
jmp exit
originalcode:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
exit:
jmp returnhere
"Tutorial-i386.exe"+2650C:
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"+2650C:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
//Alt: db D8 6B 04 D9 5D D0
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"Tutorial-x86_64.exe"+2E0A1)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [rbx+14],2
je originalcode
addss xmm1,xmm0
movss xmm0,[Tutorial-x86_64.exe+202F70]
jmp exit
originalcode:
subss xmm1,xmm0
movss xmm0,[Tutorial-x86_64.exe+202F70]
exit:
jmp returnhere
"Tutorial-x86_64.exe"+2E0A1:
jmp newmem
nop
nop
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-x86_64.exe"+2E0A1:
subss xmm1,xmm0
movss xmm0,[Tutorial-x86_64.exe+202F70]
//Alt: db F3 0F 5C C8 F3 0F 10 05 C3 4E 1D 00