 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
aizen415 !BEWARE! Deletes post on answer
Reputation: 0
Joined: 11 Apr 2020 Posts: 7 Location: Chinchón, 28370, Madrid, Spanien
|
Posted: Wed Aug 05, 2020 1:45 pm Post subject: I'm having problem solving fstp dword ptr, any help. |
|
|
Hi, I'm doing infinite Stamina but i'm having problem this fstp dword ptr [eax] and mov eax,[esi+10] i do not know which one is the correct value for stamina.
{ Game : Graveyard Keeper.exe
Version:
Date : 2020-08-06
Author : Jordan
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT,D9 18 8B 46 10 40 89 46 10 8D 65 FC) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
fstp dword ptr [eax]
mov eax,[esi+10]
jmp return
INJECT:
jmp newmem
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db D9 18 8B 46 10
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 2ABBBF78
2ABBBF57: 8B 75 08 - mov esi,[ebp+08]
2ABBBF5A: 8B 46 0C - mov eax,[esi+0C]
2ABBBF5D: 39 45 0C - cmp [ebp+0C],eax
2ABBBF60: 73 28 - jae 2ABBBF8A
2ABBBF62: 8B 46 08 - mov eax,[esi+08]
2ABBBF65: D9 45 10 - fld dword ptr [ebp+10]
2ABBBF68: 8B 4D 0C - mov ecx,[ebp+0C]
2ABBBF6B: 39 48 0C - cmp [eax+0C],ecx
2ABBBF6E: 0F 86 1E 00 00 00 - jbe 2ABBBF92
2ABBBF74: 8D 44 88 10 - lea eax,[eax+ecx*4+10]
// ---------- INJECTING HERE ----------
2ABBBF78: D9 18 - fstp dword ptr [eax]
2ABBBF7A: 8B 46 10 - mov eax,[esi+10]
// ---------- DONE INJECTING ----------
2ABBBF7D: 40 - inc eax
2ABBBF7E: 89 46 10 - mov [esi+10],eax
2ABBBF81: 8D 65 FC - lea esp,[ebp-04]
2ABBBF84: 8D 65 FC - lea esp,[ebp-04]
2ABBBF87: 5E - pop esi
2ABBBF88: C9 - leave
2ABBBF89: C3 - ret
2ABBBF8A: 90 - nop
2ABBBF8B: E8 AC A4 60 E6 - call 111C643C
2ABBBF90: EB D0 - jmp 2ABBBF62
}
_________________
Aizen Wong |
|
Back to top |
|
 |
Betcha Expert Cheater
Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Wed Aug 05, 2020 2:41 pm Post subject: Re: I'm having problem solving fstp dword ptr, any help. |
|
|
Try and see what happens, it may affect other stuff as well.
Code: | [ENABLE]
aobscan(INJECT,D9 18 8B 46 10 40 89 46 10 8D 65 FC)
alloc(newmem,$100)
label(NewHealth)
newmem:
code:
fld dword ptr [NewHealth]
fstp dword ptr [eax]
mov eax,[esi+10]
jmp return
NewHealth:
dd (float)222
INJECT:
jmp newmem
return:
registersymbol(NewHealth)
registersymbol(INJECT)
[DISABLE]
INJECT:
db D9 18 8B 46 10
unregistersymbol(NewHealth)
unregistersymbol(INJECT)
dealloc(newmem) |
|
|
Back to top |
|
 |
aizen415 !BEWARE! Deletes post on answer
Reputation: 0
Joined: 11 Apr 2020 Posts: 7 Location: Chinchón, 28370, Madrid, Spanien
|
Posted: Wed Aug 05, 2020 2:58 pm Post subject: |
|
|
The screen went blank. Also i tried adding numbers inside eax like [eax+10] and [eax], (float)100 still didnt work.
{ Game : Graveyard Keeper.exe
Version:
Date : 2020-08-06
Author : Jordan
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT,D9 18 8B 46 10 40 89 46 10 8D 65 FC)
alloc(newmem,$100)
label(NewStamina)
newmem:
code:
fld dword ptr [NewStamina]
fstp dword ptr [eax]
mov eax,[esi+10]
jmp return
NewStamina:
dd (float)222
INJECT:
jmp newmem
return:
registersymbol(NewStamina)
registersymbol(INJECT)
[DISABLE]
INJECT:
db D9 18 8B 46 10
unregistersymbol(NewStamina)
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 2ABBBF78
2ABBBF57: 8B 75 08 - mov esi,[ebp+08]
2ABBBF5A: 8B 46 0C - mov eax,[esi+0C]
2ABBBF5D: 39 45 0C - cmp [ebp+0C],eax
2ABBBF60: 73 28 - jae 2ABBBF8A
2ABBBF62: 8B 46 08 - mov eax,[esi+08]
2ABBBF65: D9 45 10 - fld dword ptr [ebp+10]
2ABBBF68: 8B 4D 0C - mov ecx,[ebp+0C]
2ABBBF6B: 39 48 0C - cmp [eax+0C],ecx
2ABBBF6E: 0F 86 1E 00 00 00 - jbe 2ABBBF92
2ABBBF74: 8D 44 88 10 - lea eax,[eax+ecx*4+10]
// ---------- INJECTING HERE ----------
2ABBBF78: D9 18 - fstp dword ptr [eax]
2ABBBF7A: 8B 46 10 - mov eax,[esi+10]
// ---------- DONE INJECTING ----------
2ABBBF7D: 40 - inc eax
2ABBBF7E: 89 46 10 - mov [esi+10],eax
2ABBBF81: 8D 65 FC - lea esp,[ebp-04]
2ABBBF84: 8D 65 FC - lea esp,[ebp-04]
2ABBBF87: 5E - pop esi
2ABBBF88: C9 - leave
2ABBBF89: C3 - ret
2ABBBF8A: 90 - nop
2ABBBF8B: E8 AC A4 60 E6 - call 111C643C
2ABBBF90: EB D0 - jmp 2ABBBF62
}
_________________
Aizen Wong |
|
Back to top |
|
 |
Betcha Expert Cheater
Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Wed Aug 05, 2020 5:37 pm Post subject: |
|
|
Check what access fstp dword ptr [eax] instruction and you'll see whats there,
|
|
Back to top |
|
 |
aizen415 !BEWARE! Deletes post on answer
Reputation: 0
Joined: 11 Apr 2020 Posts: 7 Location: Chinchón, 28370, Madrid, Spanien
|
Posted: Wed Aug 05, 2020 11:10 pm Post subject: |
|
|
I found Tree things the
The two address are continuously rising and the other one is stable
everytime my stamina decrease the last address counts in.
Description: |
|
Filesize: |
135.28 KB |
Viewed: |
6249 Time(s) |

|
_________________
Aizen Wong |
|
Back to top |
|
 |
sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Wed Aug 05, 2020 11:22 pm Post subject: |
|
|
do "what address this instruction accesses" on the fstp instruction and see if those addresses behave like your stamina.
|
|
Back to top |
|
 |
aizen415 !BEWARE! Deletes post on answer
Reputation: 0
Joined: 11 Apr 2020 Posts: 7 Location: Chinchón, 28370, Madrid, Spanien
|
Posted: Wed Aug 05, 2020 11:44 pm Post subject: |
|
|
i dissect to see what access and i found one that is my stamina which is 0000 float
Description: |
|
Filesize: |
799.33 KB |
Viewed: |
6238 Time(s) |

|
_________________
Aizen Wong |
|
Back to top |
|
 |
sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Wed Aug 05, 2020 11:50 pm Post subject: |
|
|
so what is happening is that instruction (fstp one ) does not just handle your stamina it also handles other stuff (these other stuffs can be dangerous to handle if you are trying to modify them just like your stamina).So you need to seperate the stamina address from the rest of these "other stuff" and for that you need to learn how to handle shared instructions.
You can find info about this in other forums and sone youtube tutorials also.
Go to youtube search "cheat the game shared instructions" and watch and learn.
|
|
Back to top |
|
 |
aizen415 !BEWARE! Deletes post on answer
Reputation: 0
Joined: 11 Apr 2020 Posts: 7 Location: Chinchón, 28370, Madrid, Spanien
|
Posted: Wed Aug 05, 2020 11:58 pm Post subject: |
|
|
Thansk a lot but so it works, but there are still two error which is the red points and green points everytime i activate the cheat those two also increase, but i only wanted the stamina to be stable. Also i can't find anymore tutorial on youtube relating to my problem any help.
[ENABLE]
aobscan(stamina,D9 18 8B 46 10 40 89 46 10 8D 65 FC) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
fstp dword ptr [eax]
mov [eax],(float)100
//mov eax,[esi+10]
jmp return
stamina:
jmp newmem
return:
registersymbol(stamina)
[DISABLE]
stamina:
db D9 18 8B 46 10
unregistersymbol(stamina)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 326F9E58
326F9E37: 8B 75 08 - mov esi,[ebp+08]
326F9E3A: 8B 46 0C - mov eax,[esi+0C]
326F9E3D: 39 45 0C - cmp [ebp+0C],eax
326F9E40: 73 28 - jae 326F9E6A
326F9E42: 8B 46 08 - mov eax,[esi+08]
326F9E45: D9 45 10 - fld dword ptr [ebp+10]
326F9E48: 8B 4D 0C - mov ecx,[ebp+0C]
326F9E4B: 39 48 0C - cmp [eax+0C],ecx
326F9E4E: 0F 86 1E 00 00 00 - jbe 326F9E72
326F9E54: 8D 44 88 10 - lea eax,[eax+ecx*4+10]
// ---------- INJECTING HERE ----------
326F9E58: D9 18 - fstp dword ptr [eax]
326F9E5A: 8B 46 10 - mov eax,[esi+10]
// ---------- DONE INJECTING ----------
326F9E5D: 40 - inc eax
326F9E5E: 89 46 10 - mov [esi+10],eax
326F9E61: 8D 65 FC - lea esp,[ebp-04]
326F9E64: 8D 65 FC - lea esp,[ebp-04]
326F9E67: 5E - pop esi
326F9E68: C9 - leave
326F9E69: C3 - ret
326F9E6A: 90 - nop
326F9E6B: E8 CC C5 4A DE - call 10BA643C
326F9E70: EB D0 - jmp 326F9E42
}
_________________
Aizen Wong |
|
Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3321
|
Posted: Thu Aug 06, 2020 6:45 am Post subject: |
|
|
Are you sure that code does not access anything else?
|
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Thu Aug 06, 2020 1:03 pm Post subject: |
|
|
aizen415 wrote: | Thansk a lot but so it works, but there are still two error which is the red points and green points everytime i activate the cheat those two also increase, but i only wanted the stamina to be stable. Also i can't find anymore tutorial on youtube relating to my problem any help.
|
Probably a shared opcode, you need to identify the stamina address, you should go back to cheat engine tutorial (step 9)
You could collect which addresses are being access by that opcode, and compare structures between them, so you could distinguish between the other addresses and your stamina, youtube may help you with this case (not for your game, the general idea, search for cheat engine tutorial step 9)
_________________
I'm rusty and getting older, help me re-learn lua. |
|
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
|
|