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 


[Help] Increase value (mov[...)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Matherz
Newbie cheater
Reputation: 0

Joined: 25 Aug 2012
Posts: 15

PostPosted: Mon Sep 03, 2012 11:56 am    Post subject: [Help] Increase value (mov[...) Reply with quote

Hi,

In Cheat Engine tutorial step 7 was code like this when I auto assemble app with code injection.
Code:

....
newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
dec [rbx+00000760]
....


So I easily finish TUT when I do this
Code:
add [rbx+00000760], 3


But in many apps there are code like this with move command and I don't know how add some value. Example:

Code:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [ecx+00004214],eax



I tried sone like add[ecx+00004214], 1 but with no success.

Sorry for ma eng and thax for help.
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 84

PostPosted: Tue Sep 04, 2012 7:57 am    Post subject: Reply with quote

mov [x], eax means that he writes the value in eax (its a register, like a generally used variable) into the variable located at x. In your code, eax contains the value that will be written into your variable (maybe because more calculations then a simple add were applied to it), so you have to increase eax before he does so.

Code:
newmem: //this is allocated memory, you have read,write,execute access
add eax, 3 //adds 3 to the value that will be written soon

originalcode:
mov [ecx+00004214],eax
Back to top
View user's profile Send private message
Matherz
Newbie cheater
Reputation: 0

Joined: 25 Aug 2012
Posts: 15

PostPosted: Tue Sep 04, 2012 12:28 pm    Post subject: Reply with quote

Ok dude I will try It I'am noobie in ASM and memory stuff. I read some tutorials but I'am still uncertain with some thing. Thanx lot of.
Back to top
View user's profile Send private message
Studio80
Advanced Cheater
Reputation: 2

Joined: 12 Sep 2012
Posts: 83

PostPosted: Wed Sep 12, 2012 12:19 pm    Post subject: Reply with quote

If you want to have a permanent value into a adress just use the MOV command.

Code:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [ecx+00004214],eax


Stuff like that ^^ would be very easy. EAX holds the value of the pointer ecx+00004214. What you want to do is to write a new value which is EAX. So:

Code:
mov eax,63


I'm just using 63 as a value example. But with this code the value will ALWAYS be 63.

About the CheatEngine tut:

Code:
....
newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
dec [rbx+00000760]
....


You can do the same, you have to write it a little bit different. You need to force the value into the pointer adress in this case. So:

Code:
MOV [rbx+00000760],63


I'm planning to make a very detailed Code Injection video tutorial, its not so hard as it looks. I hope this helped you out.
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