Page 1 of 1

registersymbol from rsi

Posted: Mon Nov 13, 2023 12:35 pm
by Cyo15092
the RSI value is the address that I want to register as a symbol and use in my trainer. I only know how to assign the RSI value to registeradress, but I don't know how to register it. I have tried various methods and the game keeps crashing. Registeradress is always the injection address, not the RSI value.

Code: Select all

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"SupremeRuler2030.exe"+4A7DF7)
alloc(registeredaddress,8)
registersymbol(registeredaddress)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

mov [registeredaddress], rsi
movsd xmm11,[rsi+00014B88]


originalcode:
movsd xmm11,[rsi+00014B88]

exit:
jmp returnhere

"SupremeRuler2030.exe"+4A7DF7:
jmp newmem
nop 4
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(registeredaddress)
"SupremeRuler2030.exe"+4A7DF7:
db F2 44 0F 10 9E 88 4B 01 00
//movsd xmm11,[rsi+00014B88]

Re: registersymbol from rsi

Posted: Mon Nov 13, 2023 4:36 pm
by BabyGroot
Is your cheat engine setting set to "Use VEH Debugger" or not?

Re: registersymbol from rsi

Posted: Mon Nov 13, 2023 6:56 pm
by Cyo15092
nope is set to windows debugger

Re: registersymbol from rsi

Posted: Mon Nov 13, 2023 8:08 pm
by Rhark

Code: Select all

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"SupremeRuler2030.exe"+4A7DF7)
alloc(registeredaddress,8)
registersymbol(registeredaddress)
label(returnhere)
label(originalcode)
label(exit)

registeredaddress:
  dq 0

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

mov [registeredaddress], rsi

originalcode:
movsd xmm11,[rsi+00014B88]

exit:
jmp returnhere

"SupremeRuler2030.exe"+4A7DF7:
jmp newmem
nop 4
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
unregistersymbol(registeredaddress)
dealloc(newmem)
dealloc(registeredaddress)
"SupremeRuler2030.exe"+4A7DF7:
db F2 44 0F 10 9E 88 4B 01 00
//movsd xmm11,[rsi+00014B88]
Try this.

Re: registersymbol from rsi

Posted: Mon Nov 13, 2023 8:51 pm
by Cyo15092
as you can see in the picture, in the debugger the register address received 0FA1A820 but in the trainer it was registered as 13FFE0800



Image

Re: registersymbol from rsi

Posted: Wed Nov 15, 2023 10:16 am
by PronKill
Cyo15092 wrote:
Mon Nov 13, 2023 8:51 pm
as you can see in the picture, in the debugger the register address received 0FA1A820 but in the trainer it was registered as 13FFE0800



Image
registeredaddress is an allocated address that holds the value of rsi. If you want to use rsi, you need either to type [registeredaddress] when adding an address, or use registeredaddress as a pointer.

Re: registersymbol from rsi

Posted: Wed Nov 15, 2023 10:22 am
by Rhark
PronKill wrote:
Wed Nov 15, 2023 10:16 am
Cyo15092 wrote:
Mon Nov 13, 2023 8:51 pm
as you can see in the picture, in the debugger the register address received 0FA1A820 but in the trainer it was registered as 13FFE0800



Image
registeredaddress is an allocated address that holds the value of rsi. If you want to use rsi, you need either to type [registeredaddress] when adding an address, or use registeredaddress as a pointer.
Yeah, you're not using the pointer correctly. [RSI]'s address is not the same as RSI