B14CKS1D3 Cheater
Reputation: 0
Joined: 30 Jul 2014 Posts: 26
|
Posted: Wed Jun 15, 2016 3:47 pm Post subject: C+How can I convert that script to assembly(Multiple labels) |
|
|
I'm trying to convert the following script to assembly, but I can't get it to work. I tried to follow a tutorial to convert it but this script is more complex and I can't figure it out.
Here's the Assembly Script:
Code: | aobscanmodule(SetEntityDead,Game.exe,F3 41 0F 5C 70 10)
alloc(newmem,$1000,SetEntityDead)
label(code)
label(return)
label(is_player)
newmem:
push rcx
mov rcx,[some_ptr]
mov rcx,[rcx+3d8]
cmp rcx,rdx
je is_player
mov rcx,[some_ptr]
mov rcx,[rcx+3e0]
cmp rcx,rdx
je is_player
pop rcx
jmp code
is_player:
pop rcx
movaps xmm6,xmm8
jmp return
code:
subss xmm6,[r8+10]
jmp return
death:
jmp newmem
nop
return:
registersymbol(SetEntityDead)
[DISABLE]
death:
db F3 41 0F 5C 70 10
unregistersymbol(SetEntityDead)
dealloc(newmem)
</AssemblerScript> |
some_ptr
Code: |
[ENABLE]
aobscanmodule(get_ptr,Game.exe,48 8B 81 E0 03 00 00 48 8B)
alloc(newmem,$1000,get_ptr) // By Lobix300
alloc(some_ptr,8)
label(code)
label(return)
newmem:
code:
mov qword ptr [some_ptr],rcx
mov rax,[rcx+000003E0]
jmp return
get_ptr:
jmp code
nop
nop
return:
registersymbol(get_ptr)
registersymbol(some_ptr)
|
Can anyone help me convert this to c++?
|
|