 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
XenOvIa89 How do I cheat?
Reputation: 0
Joined: 23 Aug 2022 Posts: 1 Location: malaysia
|
Posted: Tue Aug 23, 2022 3:23 am Post subject: How to edit this code fst dword ptr [esi+0C] fld1 |
|
|
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(Health,AlanWake.exe,D9 56 0C D9 E8 DE) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
fst dword ptr [esi+0C]
fld1
jmp return
Health:
jmp newmem
return:
registersymbol(Health)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
Health:
db D9 56 0C D9 E8
unregistersymbol(Health)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: AlanWake.exe+D0021
AlanWake.exe+CFFFC: D9 EE - fldz
AlanWake.exe+CFFFE: D9 5C 24 04 - fstp dword ptr [esp+04]
AlanWake.exe+D0002: D9 46 0C - fld dword ptr [esi+0C]
AlanWake.exe+D0005: D8 44 24 28 - fadd dword ptr [esp+28]
AlanWake.exe+D0009: D9 5C 24 20 - fstp dword ptr [esp+20]
AlanWake.exe+D000D: D9 44 24 20 - fld dword ptr [esp+20]
AlanWake.exe+D0011: D9 1C 24 - fstp dword ptr [esp]
AlanWake.exe+D0014: E8 D7 82 F3 FF - call AlanWake.exe+82F0
AlanWake.exe+D0019: D9 5C 24 14 - fstp dword ptr [esp+14]
AlanWake.exe+D001D: D9 44 24 14 - fld dword ptr [esp+14]
// ---------- INJECTING HERE ----------
AlanWake.exe+D0021: D9 56 0C - fst dword ptr [esi+0C]
// ---------- DONE INJECTING ----------
AlanWake.exe+D0024: D9 E8 - fld1
AlanWake.exe+D0026: DE D9 - fcompp
AlanWake.exe+D0028: DF E0 - fnstsw ax
AlanWake.exe+D002A: F6 C4 41 - test ah,41
AlanWake.exe+D002D: 7A 6B - jp AlanWake.exe+D009A
AlanWake.exe+D002F: C7 46 2C 00 00 00 00 - mov [esi+2C],00000000
AlanWake.exe+D0036: EB 62 - jmp AlanWake.exe+D009A
AlanWake.exe+D0038: D8 59 40 - fcomp dword ptr [ecx+40]
AlanWake.exe+D003B: C7 46 2C 00 00 00 00 - mov [esi+2C],00000000
AlanWake.exe+D0042: DF E0 - fnstsw ax
}
_________________
learn |
|
| Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Tue Aug 23, 2022 8:20 pm Post subject: |
|
|
if the full health a value of 1, you can use this:
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(Health,AlanWake.exe,D9 56 0C D9 E8 DE) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
fstp st(0)
fld1
fst dword ptr [esi+0C]
fld1
jmp return
Health:
jmp newmem
return:
registersymbol(Health)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
Health:
db D9 56 0C D9 E8
unregistersymbol(Health)
dealloc(newmem)
|
if you want to edit to another custom value, you can use:
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(Health,AlanWake.exe,D9 56 0C D9 E8 DE) // should be unique
alloc(newmem,$1000)
label(CustomHealth)
label(code)
label(return)
newmem:
code:
fstp st(0)
fld dword ptr [CustomHealth]
fst dword ptr [esi+0C]
fld1
jmp return
CustomHealth:
dd (float)2 //write the custom health value here after the '(float)' text
Health:
jmp newmem
return:
registersymbol(Health)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
Health:
db D9 56 0C D9 E8
unregistersymbol(Health)
dealloc(newmem)
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|