|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
noyuw Newbie cheater Reputation: 0
Joined: 26 Oct 2015 Posts: 12
|
Posted: Fri Apr 21, 2017 5:11 pm Post subject: AOB script, multiply fstp dword ptr [eax+20] |
|
|
Hello,
I have a float value that i want to multiply by let's say 5.4, i tried several time now with "imul" but didn't find out so here i am
Here is my AOB code:
Code: |
[ENABLE]
aobscan(INJECT,D9 58 20 C9 C3) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
fstp dword ptr [eax+20]
leave
ret
jmp return
INJECT:
jmp newmem
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db D9 58 20 C9 C3
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 068BE08F
""+68BE072: 00 00 - add [eax],al
""+68BE074: 00 00 - add [eax],al
""+68BE076: 00 00 - add [eax],al
""+68BE078: 55 - push ebp
""+68BE079: 8B EC - mov ebp,esp
""+68BE07B: 83 EC 08 - sub esp,08
""+68BE07E: 8B 45 08 - mov eax,[ebp+08]
""+68BE081: C7 40 38 00 00 00 00 - mov [eax+38],00000000
""+68BE088: C6 40 44 00 - mov byte ptr [eax+44],00
""+68BE08C: D9 45 0C - fld dword ptr [ebp+0C]
// ---------- INJECTING HERE ----------
""+68BE08F: D9 58 20 - fstp dword ptr [eax+20]
""+68BE092: C9 - leave
""+68BE093: C3 - ret
// ---------- DONE INJECTING ----------
""+68BE094: 00 00 - add [eax],al
""+68BE096: 00 00 - add [eax],al
""+68BE098: 55 - push ebp
""+68BE099: 8B EC - mov ebp,esp
""+68BE09B: 83 EC 28 - sub esp,28
""+68BE09E: D9 45 0C - fld dword ptr [ebp+0C]
""+68BE0A1: D9 45 10 - fld dword ptr [ebp+10]
""+68BE0A4: D9 45 14 - fld dword ptr [ebp+14]
""+68BE0A7: D9 45 18 - fld dword ptr [ebp+18]
""+68BE0AA: C7 45 E0 00 00 00 00 - mov [ebp-20],00000000
} |
Thanks for the help
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Apr 21, 2017 9:57 pm Post subject: |
|
|
Code: | aobscan(INJECT,D9 58 20 C9 C3) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
label(myvar)
newmem:
code:
fmul [myvar]
fstp dword ptr [eax+20]
leave
ret
jmp return
myvar:
dd (float)5.4
INJECT:
jmp newmem
return:
registersymbol(INJECT) |
|
|
Back to top |
|
|
noyuw Newbie cheater Reputation: 0
Joined: 26 Oct 2015 Posts: 12
|
Posted: Sat Apr 22, 2017 2:40 am Post subject: |
|
|
Wooo works like a charm, thanks you very much
|
|
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
|
|