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 


A noob question about auto assembly and it's possibilities

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

Joined: 13 Apr 2020
Posts: 8

PostPosted: Mon Apr 13, 2020 1:35 pm    Post subject: A noob question about auto assembly and it's possibilities Reply with quote

Hello, i am not good at english, sory for that. I have a question.

-I searched a value and find it.
-I used "what writes to this address" command and found "ESI+08"
-I added ESI adress manually to table.
-I used "what writes to this address" for ESI and pressed "Show Dissambler"
-On memory view, i see all adresses that i need to find when use "find out what adresses this instruction accesses"

i want to read values from "find out what adresses this instruction accesses" command gave me. is it possible with auto assembler ?

example:
-find out what adresses this instruction accesses give me ADRESS1, ADRESS2
-i want to read value from ADRESS1+4, ADRESS2+4 everytime when i do in game needed.

I hope it is clear, thank you
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Mon Apr 13, 2020 8:14 pm    Post subject: Reply with quote

tested with cheat engine tutorial 32-bit at step9, works perfectly.
change the requirements and keep in-mind, if the instruction is being used for many addresses you will get buffer overflow.

Code:
[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)

newmem:
push eax
push ecx
push edx
pushf
sub esp,02
mov eax,stored_addresses
mov ecx,[index]
lea edx,[ebx+04]
call check_existence
jc already_there
call update_address_list
already_there:
add esp,02
popf
pop edx
pop ecx
pop eax

originalcode:
mov [ebx+04],eax
fldz
jmp returnhere

check_existence:
cmp edx,[eax+ecx*4]
stc
jz exist
dec ecx
jns check_existence
clc
exist:
ret

update_address_list:
mov ecx,[index]
mov [eax+ecx*4],edx
inc [index]
ret

index:
dd 0
stored_addresses:

"Tutorial-i386.exe"+288D9:
jmp newmem
returnhere:





[DISABLE]
dealloc(newmem)
"Tutorial-i386.exe"+288D9:
mov [ebx+04],eax
fldz

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
ysfc3m
How do I cheat?
Reputation: 0

Joined: 13 Apr 2020
Posts: 8

PostPosted: Tue Apr 14, 2020 10:51 am    Post subject: Reply with quote

Thank you for answer and your time.

The code looks me really complicated. I will check more tutorials to better understanding.

Any chance to find paid help for this situation here or somewhere?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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