Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(INJECT,eurotrucks2.exe,89 43 30 EB 69) // should be unique
alloc(newmem,$1000,"eurotrucks2.exe"+5ACEC6)
label(code)
label(return)
newmem:
code:
nop
jmp eurotrucks2.exe+5ACF34
jmp return
INJECT:
jmp newmem
return:
registersymbol(INJECT)
aobscanmodule(INJECT2,eurotrucks2.exe,F3 0F 11 41 30 C3 CC) // should be unique
alloc(newmem,$1000,"eurotrucks2.exe"+5EE81B)
label(code2)
label(return2)
newmem2:
code2:
nop
jmp return2
INJECT2:
jmp newmem2
return2:
registersymbol(INJECT2)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
db 89 43 30 EB 69
unregistersymbol(INJECT)
dealloc(newmem)
INJECT2:
db F3 0F 11 41 30 C3 CC
unregistersymbol(INJECT2)
dealloc(newmem2)