View previous topic :: View next topic |
Author |
Message |
KalasDev Master Cheater
Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Tue Oct 18, 2016 4:12 pm Post subject: lea issue |
|
|
Code: | [ENABLE]
aobscanmodule(aobSkill,DOOMx64.exe,01 91 C0 3B 05 00) // should be unique
alloc(newmem,$1000,"DOOMx64.exe"+18CE1BB4)
label(code)
label(return)
globalalloc(Skill_ptr,8)
registersymbol(Skill_ptr)
newmem:
code:
push rax
lea rax,[rcx+00053BC0]
mov [Skill_ptr],rax
pop rax
add [rcx+00053BC0],edx
jmp return
aobSkill:
jmp newmem
nop
return:
registersymbol(aobSkill)
[DISABLE]
aobSkill:
db 01 91 C0 3B 05 00
unregistersymbol(aobSkill)
unregistersymbol(Skill_ptr)
dealloc(newmem) |
Does not work for some reason. saying Skill_ptr was suppose to be added to symbolist. why did I forgot something ?
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Oct 18, 2016 4:38 pm Post subject: |
|
|
Code: | [ENABLE]
aobscanmodule(aobSkill,DOOMx64.exe,01 91 C0 3B 05 00) // should be unique
alloc(newmem,$1000,"DOOMx64.exe"+18CE1BB4)
label(code)
label(return)
label(Skill_ptr)
registersymbol(Skill_ptr)
newmem:
code:
push rax
lea rax,[rcx+00053BC0]
mov [Skill_ptr],rax
pop rax
add [rcx+00053BC0],edx
jmp return
Skill_ptr:
dq 0
aobSkill:
jmp newmem
nop
return:
registersymbol(aobSkill)
[DISABLE]
aobSkill:
db 01 91 C0 3B 05 00
unregistersymbol(aobSkill)
unregistersymbol(Skill_ptr)
dealloc(newmem) |
|
|
Back to top |
|
 |
KalasDev Master Cheater
Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Wed Oct 19, 2016 1:12 am Post subject: |
|
|
Thx but I figured out I just had to do jmp newmem to jmp code, and added a new pointer with this Address: "Skill_ptr"
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Wed Oct 19, 2016 3:51 am Post subject: |
|
|
jmp newmem to jmp code has nothing to do with this error. You didn't define your symbol anywhere, that was the issue (look at what METHOS did differently and why - the dq bit is also important)
_________________
|
|
Back to top |
|
 |
KalasDev Master Cheater
Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Wed Oct 19, 2016 4:39 am Post subject: |
|
|
Yea I figured it out that the jmp "newmem" has nothing to do, I fixed it tho not using dq tho thank you anyways STN and METHOS.
|
|
Back to top |
|
 |
|