View previous topic :: View next topic |
Author |
Message |
Froschkopf How do I cheat?
Reputation: 0
Joined: 02 Nov 2021 Posts: 3
|
Posted: Mon Nov 08, 2021 7:11 am Post subject: Assembly code change |
|
|
Hi there!
I am really bad with assembly.. but maybe someone of you can help me real quick here.
I have a method that's called "get_Strength". I am guessing it returns the current strength value to use it for further calculations and stuff..
I want to change the code so that it returns 8 instead of the real value.
Problem is I have no clue what to change here..
My Memory Viewer shows this:
push ebp
mov ebp,esp
sub esp,18
mov eax,[ebp+08]
mov [esp],eax
lea ebp,[ebp+00]
call get_HeroCardSideDefinition
mov ecx,eax
cmp [ecx],ecx
mov eax,[eax+20]
leave
ret
Can someone give me some directions please?
Thanks for the help!
|
|
Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Mon Nov 08, 2021 10:46 am Post subject: |
|
|
Please use code tags when posting code. [ code ] ... [ /code ] (without spaces).
The value you want to change will probably be held in [eax+20]. Although I would start with the basics to grasp the concept.
Cheat Engine Auto Assembler Basics
|
|
Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3325
|
Posted: Tue Nov 09, 2021 5:36 am Post subject: Re: Assembly code change |
|
|
Froschkopf wrote: |
I am really bad with assembly...
|
Then I guess it's time for you to learn.
According to the Microsoft x86 calling convention, the return value will be most likely be in EAX.
What do you make of that?
|
|
Back to top |
|
 |
|