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] understanding assembly code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
pharaon
Advanced Cheater
Reputation: 1

Joined: 29 Jun 2012
Posts: 68

PostPosted: Sun Apr 01, 2018 10:01 am    Post subject: [help] understanding assembly code Reply with quote

hope some one help me to understand this assembly code

Code:
RAX=E336871304
RBX=00000004
RCX=00000339
RDX=00000001
RSI=E336876F40
RDI=231B2642910
RBP=E33686DBF0
RSP=E33686DAF0
RIP=7FF6D68AF130

Probable base pointer =E336871304

7FF6D68AF124 - mov [rax-0C],r13
7FF6D68AF128 - mov [rax-04],r13
7FF6D68AF12C - mov [rax+04],r13d
7FF6D68AF130 - lea rax,[rax+1C]
7FF6D68AF134 - sub rcx,01
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 32

Joined: 09 Aug 2013
Posts: 809

PostPosted: Sun Apr 01, 2018 10:36 am    Post subject: Reply with quote

Sure, it does this:

Code:
mov [E3368712F8],r13
mov [E336871300],r13
mov [E336871308],r13d
// lea
mov rax,E336871320
// sub
mov rcx, 00000338


That's about all anyone can give you without more information

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
pharaon
Advanced Cheater
Reputation: 1

Joined: 29 Jun 2012
Posts: 68

PostPosted: Sun Apr 01, 2018 11:07 am    Post subject: Reply with quote

FreeER wrote:

That's about all anyone can give you without more information


i'm kinda noob thats' why i asked for help
like what more information is needed to get more understanding
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 32

Joined: 09 Aug 2013
Posts: 809

PostPosted: Sun Apr 01, 2018 11:35 am    Post subject: Reply with quote

Like what you want to know, how you found it, what you want to do, what the value of r13 is, etc.


I can tell you a line of code is moving a value into some address but why that value, what that value is intended to do, how to make it not do that etc. depends on much more than that single line of code (it depends on how all the other code uses that value)

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
pharaon
Advanced Cheater
Reputation: 1

Joined: 29 Jun 2012
Posts: 68

PostPosted: Sun Apr 01, 2018 4:46 pm    Post subject: Reply with quote

Like what you want to know
i have strategic game and i want to be able to select all same units across the map

how you found it
i select one units on the screen search for 1, then increase it to 2 and search for 2 and so on

what you want to do
find the code that make me able to select the same all units across the map

this is what i get when i find out what access the address"by the way the address is for displaying values only that show how many units i'm already selecting"

Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 32

Joined: 09 Aug 2013
Posts: 809

PostPosted: Sun Apr 01, 2018 4:56 pm    Post subject: Reply with quote

So you found the number of units you had selected and then found what accesses it and want to know how to select all entities?

Well, you'll have to do two things, find the list of all entities and find out how the game knows if they're selected. If you're lucky there'll just be a boolean on each entity that's set to true if they're selected and you just have to loop over the list setting it to true for all of them. Most likely however there's a separate list and you'll have to figure out how to add every unit that isn't in the selected list to it (or clear the selected list and just copy all units to it).... not something I've done so I'm really not sure.

The code using the number of selected entities should give you some idea of how selected entities are being handled but if you don't understand assembly code well enough to figure how the code you're looking at when you're the one who found it I seriously doubt you have enough reverse engineering experience to manage this (and no I'm not really interested in doing it for you), good luck though Smile

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
pharaon
Advanced Cheater
Reputation: 1

Joined: 29 Jun 2012
Posts: 68

PostPosted: Sun Apr 01, 2018 5:04 pm    Post subject: Reply with quote

thanks for the help
sure i'm not asking you or any one to do anything for me
i want to learn how to do things myself
i'll look in the disassembler for those opcodes with thew few counts because i think the ones with the high counts are just for the displaying not for the real clicking selecting units
hope to find something from there

will ask for more help when i'm stuck or don't understand something
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