Page 1 of 1

Help with auto assemble

Posted: Tue Dec 26, 2017 4:40 am
by badmotorfinger
Image

Tried hacking the pc port of resident evil 2 and got this error message. Can anyone help me out with this please?

Re: Help with auto assemble

Posted: Tue Dec 26, 2017 5:58 am
by Blayde
badmotorfinger wrote:
Tue Dec 26, 2017 4:40 am
Can anyone help me out with this please?
Few lines up you have:
mov cl,[esi+02]

You can make something like:
mov ecx,YourValue


CL = lower 8 bits of ECX

Re: Help with auto assemble

Posted: Tue Dec 26, 2017 8:43 am
by badmotorfinger
nevermind, did some more google search and turned out I only need to put quotation marks around the process name

from:
add [eax*4+bio2cs.exe+58ECD5],cl
to:
add [eax*4+"bio2cs.exe"+58ECD5],cl

it was weird to me but it works

thanks anyway Blayde

Re: Help with auto assemble

Posted: Tue Dec 26, 2017 9:08 am
by Blayde
badmotorfinger wrote:
Tue Dec 26, 2017 8:43 am
nevermind, did some more google search and turned out I only need to put quotation marks around the process name

from:
add [eax*4+bio2cs.exe+58ECD5],cl
to:
add [eax*4+"bio2cs.exe"+58ECD5],cl

it was weird to me but it works

thanks anyway Blayde
With this:
mov ecx,YourValue
you can change pick up values

Re: Help with auto assemble

Posted: Tue Dec 26, 2017 9:52 am
by badmotorfinger
that works, too. Thank you very much!

Help with auto assemble

Posted: Tue May 01, 2018 7:32 am
by Sol.CT
I ran into this recently as well and was quite confused. Thanks for posting your answer instead of just deleting it! :D



I would also suggest specifying these pointers. like;

[B]add byteptr [eax*4+bio2cs.exe+58ECD5],cl[/B]



Otherwise it may over-write some of your intended changes, since it defaults to dword. (4byte)