hju How do I cheat? Reputation: 0
Joined: 29 Jan 2023 Posts: 2
|
Posted: Sun Jan 29, 2023 5:10 am Post subject: Making Auto Assembler Code Permanent |
|
|
I want to make my code permanent by modifying the assembly code with cheat engine. To change the value of xmm register, it must come from another address and i don't know how to create a new address and assign a value to it. I just simply want have fixed value(500) of XMM12 register.
My plan is to find a code cave jump there, set 500 to [x], set xmm12 to [x] and jump back.
Thank you.
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"a.exe"+2EA6B)
label(returnhere)
label(originalcode)
label(exit)
alloc(hr,4,"a.exe"+2EA65)
x:
dd (float)500
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
addss xmm12,[x]
exit:
jmp returnhere
"a.exe"+2EA6B:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(x)
"a.exe"+2EA6B:
addss xmm12,xmm8
//Alt: db F3 45 0F 58 E0
|
|
|