View previous topic :: View next topic |
Author |
Message |
mrgorungo Newbie cheater Reputation: 0
Joined: 20 May 2019 Posts: 12
|
Posted: Mon May 20, 2019 12:59 am Post subject: Why this auto assembler script crash process? |
|
|
Im trying to copy memory region 00400000 - 00900000 to allocated dump space.
but it crashes entire game process and i found some memory data is not propery copied.
need you help!
Code: |
[enable]
alloc(createdump,128)
alloc(dump,20000000)
registersymbol(dump)
createthread(createdump)
createdump:
cld
mov esi,00400000
mov edi,dump
mov ecx,00500000
rep movsb
ret
[disable]
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Mon May 20, 2019 1:04 am Post subject: |
|
|
is all the memory between 00400000 and 00900000 readable?
Does it show any no-access blocks in "memory regions" ?
Thy this code instead and check out error afterwards
Code: |
alloc(createdump,128)
alloc(error,4)
alloc(dump,20000000)
registersymbol(dump)
registersymbol(error)
createthread(createdump)
createdump:
cld
mov esi,00400000
mov edi,dump
mov ecx,00500000
{$try}
rep movsb
jmp noerror
{$except}
mov [error],esi
noerror:
ret
|
_________________
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 |
|
|
mrgorungo Newbie cheater Reputation: 0
Joined: 20 May 2019 Posts: 12
|
Posted: Mon May 20, 2019 1:14 am Post subject: |
|
|
Dark Byte wrote: | is all the memory between 00400000 and 00900000 readable?
Does it show any no-access blocks in "memory regions" ? |
Hey! thanks for the quick reply.
I picked up some memory address and checked.
I see Protect:Excute/Write copy in memory viewer but how do you check if every address is accessable?
btw,
I change ecx to 500 it seems to be fine, no crash.
but i need it to be 500000....
edit: I see your code and confirmed it works like a charm!!! no crashes.
but i wonder why I dont see any address in [error] ?
if there is no error, my original code should also work without crash... i think
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Mon May 20, 2019 1:29 am Post subject: |
|
|
it should have worked yes, unless for some messed up reason esi became 0
try
instead
_________________
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 |
|
|
mrgorungo Newbie cheater Reputation: 0
Joined: 20 May 2019 Posts: 12
|
Posted: Mon May 20, 2019 1:47 am Post subject: |
|
|
Dark Byte wrote: | it should have worked yes, unless for some messed up reason esi became 0
try
instead |
fianly everything worked fine, youare real hero
love u!!!!!!
|
|
Back to top |
|
|
|