[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"Tutorial-x86_64.exe"+2EB6D)
label(returnhere)
label(originalcode)
label(hile)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
hile:
cmp [rbx+14],1
je exit
originalcode:
movss [rbx+08],xmm0
exit:
jmp returnhere
"Tutorial-x86_64.exe"+2EB6D:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-x86_64.exe"+2EB6D:
movss [rbx+08],xmm0
//Alt: db F3 0F 11 43 08