Heres my speed code which works 100% enable and disable:
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(INJECT,theHunterCotW_F.exe,80 00 00 00 00 0F 10 00 0F 11 01 0F 10 48 10 0F 11 49 10 0F 10 40 20 0F 11 41 20) // should be unique
alloc(newmem,$1000,"theHunterCotW_F.exe"+5B2CAE)
label(returnhere)
label(originalcode)
label(exit)
label(normal)
label(speed)
registersymbol(speed)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [speed],0 //Set speed to 1 to enable the cheat and 0 to disable
je normal
mov [rax+20],(float)25
jmp originalcode
normal:
mov [rax+20],(float)1
originalcode:
movups xmm0,[rax+20]
movups [rcx+20],xmm0
exit:
jmp returnhere
speed:
dd 0
INJECT+13:
jmp newmem
nop
nop
nop
returnhere:
registersymbol(INJECT)
[DISABLE]
INJECT+13:
db 0F 10 40 20 0F 11 41 20
unregistersymbol(INJECT)
dealloc(newmem)
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(INJECT,theHunterCotW_F.exe,80 00 00 00 00 0F 10 00 0F 11 01 0F 10 48 10 0F 11 49 10) // should be unique
alloc(newmem,$1000,"theHunterCotW_F.exe"+5B2CA6)
label(returnhere)
label(originalcode)
label(exit)
label(normal)
label(jumpp)
registersymbol(jumpp)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [jumpp],0 //Set speed to 1 to enable the cheat and 0 to disable
je normal
mov [rax+3C],(float)25
jmp originalcode
normal:
mov [rax+20],(float)2
originalcode:
movups xmm1,[rax+10]
movups [rcx+10],xmm1
exit:
jmp returnhere
jumpp:
dd 0
INJECT+0B:
jmp newmem
nop
nop
nop
returnhere:
registersymbol(INJECT)
[DISABLE]
INJECT+0B:
db 0F 10 48 10 0F 11 49 10
unregistersymbol(INJECT)
dealloc(newmem)