View previous topic :: View next topic |
Author |
Message |
sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Fri Jan 24, 2025 11:51 pm Post subject: assembler code crashing. help |
|
|
Code: |
[ENABLE]
aobscanmodule(freeeeeeze,game.EXE,D9 5E F0 D9 84 24 4C 02 00 00) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
push edx
push ebx
lea edx,[[[game.EXE+0049CDA8]+14]+6C]
lea ebx,[esi-10]
cmp edx,ebx
pop ebx
pop edx
je code
mov [esi-10],(float)0.0
mov [esi-C],(float)0.0
mov [esi-8],(float)0.0
jmp code
code:
fstp dword ptr [esi-10]
fld dword ptr [esp+0000024C]
jmp return
freeeeeeze:
jmp newmem
nop 5
return:
registersymbol(freeeeeeze)
[DISABLE]
freeeeeeze:
db D9 5E F0 D9 84 24 4C 02 00 00
unregistersymbol(freeeeeeze)
dealloc(newmem)
|
See the newmem block.
|
|
Back to top |
|
 |
Game Hacking Dojo Master Cheater
Reputation: 1
Joined: 17 Sep 2023 Posts: 250
|
Posted: Sat Jan 25, 2025 2:41 am Post subject: |
|
|
replace:
Code: | lea edx,[[[game.EXE+0049CDA8]+14]+6C] |
with:
Code: | mov edx,[game.exe+0049CDA8]
mov edx,[edx+14]
add edx,6C |
|
|
Back to top |
|
 |
sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Sat Jan 25, 2025 5:39 am Post subject: |
|
|
Replaced both lea instruxtions with mov but still crashing
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25781 Location: The netherlands
|
Posted: Sat Jan 25, 2025 3:00 pm Post subject: |
|
|
it sets esi-10 till esi-5 to 0 no matter if the cmp occurs. is that what you want?
anyhow, in memview go to the debug->break on unexpected exceptions->only in specified regions
then debug->break on unexpected exceptions->Automatically add allocated ....
then inject your script and see if it breaks. The caption may give some info
alternatively, try using {$try}/{$except}
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Sun Jan 26, 2025 12:05 am Post subject: |
|
|
If you mean that if cmp is success then do i want to set those to zero? yes.
Thanks. Will try this debug break method.
I tried using try and except but read that somewhere that you have to handle all register or memory related dirt(that try is responsible for) on your own in except so i didn't use it because i don't know how the crash is happening hence not sure how to do the cleanup in except.
|
|
Back to top |
|
 |
|