View previous topic :: View next topic |
Author |
Message |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
Posted: Sat Jan 31, 2015 5:57 pm Post subject: Assembler x64 and symbols. |
|
|
I want to get pointer address to my registered symbol and work from there but usuall way Code: | mov [BaseVariables_],rcx | does not work (this instruction cant be compiled). What is the way to do this in 64 bit?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Sat Jan 31, 2015 6:32 pm Post subject: |
|
|
mov rax,basevariables_
mov [rax], rcx
alternatively, if your code is allocated nearby basevariables (nearby as within 2gb) then mov [basevariables], rcx will work too
you can specify near what location memory gets allocated with the 3th alloc parameter
tip: use the code injection template for an example
of course, if you do need to target different modules at the same time, then you will need to use the complex method
and remember, if you do not specify the address for a codecave nearby the origin, the jmp instruction can be 15 bytes long
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
Posted: Sat Jan 31, 2015 7:38 pm Post subject: |
|
|
When i tried your solution i still got error about code not being injectable and instructions not being able to compile. Im starting to hate 64bit games -_- Also its just simple code created automaticly by Auto Assemble so nothing fancy. It compiles fine without mov rax,base_ line.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Sat Jan 31, 2015 8:53 pm Post subject: |
|
|
what is the error?
mov rax,base_ should work, assuming base_ is an actual defined symbol
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Sun Feb 01, 2015 7:44 am Post subject: |
|
|
You're not defining base
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
Posted: Sun Feb 01, 2015 10:50 am Post subject: |
|
|
Shit, I'm dumb ... thx for help.
|
|
Back to top |
|
 |
|