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 


Cheat Engine "gtutorial-x86_64.exe" Tutorial Step

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Auto Assembler tutorials
View previous topic :: View next topic  
Author Message
teks1
Cheater
Reputation: 0

Joined: 28 May 2013
Posts: 25

PostPosted: Wed Jun 27, 2018 11:34 am    Post subject: Cheat Engine "gtutorial-x86_64.exe" Tutorial Step Reply with quote

Hello to everyone,
I prepared a script for the new tutorial.
Step 1 and Step 2 are included.
I will examine Step 3 when I find time.

Step1
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscanmodule(INJECT,gtutorial-x86_64.exe,7F 11 48 8B 4B 30) // should be unique
alloc(newmem,$1000,"gtutorial-x86_64.exe"+3C463)

label(code)
label(return)

newmem:

code:
  nop //jg gtutorial-x86_64.exe+3C476
  mov rcx,[rbx+30]
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db 7F 11 48 8B 4B 30

unregistersymbol(INJECT)
dealloc(newmem)


Step2
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscanmodule(INJECT,gtutorial-x86_64.exe,48 89 C8 29 50 60) // should be unique
alloc(newmem,$1000,"gtutorial-x86_64.exe"+3EE50)

label(code)
label(me)
label(enemy)
label(return)

newmem:
mov rax,rcx
cmp rdx, 1
je me
cmp rdx, 2
je enemy
jmp code

me:
  mov edx, 20
  sub [rax+60],edx
  jmp return

enemy:
  mov edx, 0
  sub [rax+60],edx
  jmp return

code:
  mov edx, 0
  sub [rax+60],edx
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db 48 89 C8 29 50 60

unregistersymbol(INJECT)
dealloc(newmem)
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