Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Assembly code change

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Froschkopf
How do I cheat?
Reputation: 0

Joined: 02 Nov 2021
Posts: 3

PostPosted: Mon Nov 08, 2021 7:11 am    Post subject: Assembly code change Reply with quote

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? Smile
Thanks for the help!
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Mon Nov 08, 2021 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3325

PostPosted: Tue Nov 09, 2021 5:36 am    Post subject: Re: Assembly code change This post has 1 review(s) Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites