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 


Auto-assembler with pointers for cheat table.

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

Joined: 26 Jan 2015
Posts: 6

PostPosted: Fri Nov 13, 2015 5:54 am    Post subject: Auto-assembler with pointers for cheat table. Reply with quote

So, I have a pointer that contains the address of a structure start (program.exe+F19390) and four offsets that contain values that I'd like to change after every restart: F8, 100, 104, 108. I'm having a much harder time creating a script that updates the values after restart than I feel like I should be. Any help would be much appreciated!
Back to top
View user's profile Send private message
ParkourPenguin
Grandmaster Cheater Supreme
Reputation: 49

Joined: 06 Jul 2014
Posts: 1695
Location: Arcadian Suburbia

PostPosted: Fri Nov 13, 2015 9:31 am    Post subject: Reply with quote

Find some instruction that accesses that static address (program.exe+F19390) and do a code injection / AoB injection on that.

For example, let's assume lea esi,[ebx+24] accesses that address, and ebx stores the address program.exe+F19390. Then:

Code:
[ENABLE]
aobscan(DERP,68 65 72 70 20 64 65 72 70) // should be unique
alloc(newmem,512)

label(return)

registersymbol(DERP)

newmem:
  lea esi,[ebx+24]
  push eax
  mov eax,[ebx]
  mov [eax+F8],64
  mov [eax+100],64
  mov [eax+104],64
  mov [eax+108],64
  pop eax
  jmp return

DERP:
  jmp newmem
  nop
return:

[DISABLE]

DERP:
  db 68 65 72 70 20 64 65 72 70

dealloc(newmem)

I don't know if lea esi,[ebx+24] has enough bytes for a jump, but you should get the idea.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 Tutorials -> Auto Assembler tutorials 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