Function at 0x140051d60
Capabilities:
Create thread
Enumerate process modules
Get system information on windows
Inject thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x4e8]
sub rsp, 0x5c0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rbp + 0x4a8], rax
mov r15, rdx
mov qword [rbp - 0x70], rdx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov r8d, ecx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rbp - 0x78], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14005276f
mov dword [rsp + 0x48], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x58]
cmp ax, 9
je 0x140051e03
cmp ax, 6
je 0x140051e03
mov eax, dword [rsp + 0x48]
jmp 0x140051e24
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140051e1f
cmp dword [rsp + 0x48], 0
mov eax, r12d
jne 0x140051e24
mov eax, 1
test eax, eax
setne sil
mov byte [rsp + 0x40], sil
lea rcx, str.LunaHook64
lea rdi, str.LunaHook32
test eax, eax
cmovne rdi, rcx
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x140051f04
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x1400527c2
mov r9, r15
cmp qword [r15 + 0x18], 7
jbe 0x140051e74
mov r9, qword [r15]
mov qword [rsp + 0x30], 1
lea rax, [0x1400ac904]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, r15
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x448]
call fcn.14004dcc0
nop
mov dword [rsp + 0x50], 0x401
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140051eb2
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x448]
call fcn.1400345e0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x468], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x478], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rax, [rbp + 0x468]
mov ebx, 0xc03
jmp 0x1400520ff
mov ecx, 0x208
call fcn.140076d5c
mov rsi, rax
mov qword [rbp + 0x468], rax
lea rbx, [rax + 0x208]
mov qword [rbp + 0x478], rbx
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call fcn.1400a1080
mov qword [rbp + 0x470], rbx
mov r8d, 0x104
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140051f8f
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140051f70
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140014a20
mov byte [rsp + 0x78], 1
jmp 0x140051f94
mov byte [rsp + 0x78], 0
test rsi, rsi
je 0x140051fa7
mov edx, 0x208
mov rcx, rsi
call fcn.140076d98
nop
mov dword [rsp + 0x50], 0x44
cmp byte [rsp + 0x78], 0
je 0x1400527c8
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x428], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x438], xmm1
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov dword [rsp + 0x50], 0x4c
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140051ff0
xorps xmm0, xmm0
movups xmmword [rbp + 0x488], xmm0
mov qword [rbp + 0x498], r12
mov qword [rbp + 0x4a0], r12
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x488]
call fcn.140014a20
nop
mov dword [rsp + 0x50], 0x1dc
lea rdi, [rbp + 0x428]
mov r12, qword [rbp + 0x428]
cmp qword [rbp + 0x440], 7
cmova rdi, r12
mov rsi, qword [rbp + 0x438]
lea rbx, [rdi + rsi*2]
mov rdx, rbx
mov rcx, rdi
call fcn.14000cfa0
cmp rax, rbx
je 0x14005209b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140052071
cmp cx, 0x2f
jne 0x14005207a
add rax, 2
cmp rax, rbx
jne 0x140052062
cmp rax, rbx
je 0x14005209b
nop
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14005209b
cmp cx, 0x2f
je 0x14005209b
mov rbx, rdx
cmp rax, rdx
jne 0x140052080
sub rbx, rdi
sar rbx, 1
cmp rsi, rbx
jb 0x1400527ce
mov qword [rbp + 0x438], rbx
lea rax, [rbp + 0x428]
cmp qword [rbp + 0x440], 7
cmova rax, r12
xor r12d, r12d
mov word [rax + rbx*2], r12w
lea rdx, [rbp + 0x488]
lea rcx, [rbp + 0x428]
call fcn.14000c510
mov rdx, rax
lea rcx, [rbp + 0x400]
call fcn.14000a2d0
lea rax, [rbp + 0x400]
mov ebx, 0x3fc
movzx esi, byte [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x3e0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
test bl, 0x20
je 0x140052173
and ebx, 0xffffffdf
mov rdx, qword [rbp + 0x418]
cmp rdx, 7
jbe 0x140052173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x400]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005216d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527d4
call fcn.140076d98
nop
movdqa xmm6, xmmword [0x1400a9d40]
test bl, 0x10
je 0x1400521d9
and ebx, 0xffffffef
mov rdx, qword [rbp + 0x4a0]
cmp rdx, 7
jbe 0x1400521c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x488]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400521c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527da
call fcn.140076d98
movdqu xmmword [rbp + 0x498], xmm6
mov word [rbp + 0x488], r12w
test bl, 8
je 0x14005223f
and ebx, 0xfffffff7
mov rdx, qword [rbp + 0x440]
cmp rdx, 7
jbe 0x14005222f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x428]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527e0
call fcn.140076d98
movdqa xmm6, xmmword [0x1400a9d40]
movdqu xmmword [rbp + 0x438], xmm6
mov word [rbp + 0x428], r12w
test bl, 4
je 0x1400522a4
and ebx, 0xfffffffb
cmp byte [rsp + 0x78], 0
je 0x1400522a4
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140052298
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005228b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527e6
call fcn.140076d98
movdqa xmm6, xmmword [0x1400a9d40]
movdqu xmmword [rsp + 0x68], xmm6
mov word [rsp + 0x58], r12w
test bl, 2
je 0x1400522fa
and ebx, 0xfffffffd
mov rdx, qword [rbp + 0x480]
cmp rdx, 7
jbe 0x1400522fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x468]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400522ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527ec
call fcn.140076d98
movdqa xmm6, xmmword [0x1400a9d40]
test bl, 1
je 0x14005235d
mov rdx, qword [rbp + 0x460]
cmp rdx, 7
jbe 0x14005234d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x448]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052340
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527f2
call fcn.140076d98
movdqa xmm6, xmmword [0x1400a9d40]
movdqu xmmword [rbp + 0x458], xmm6
mov word [rbp + 0x448], r12w
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x400]
call fcn.14000a2d0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rbp + 0x468]
call fcn.14000a2d0
mov rdx, rax
xor ecx, ecx
call fcn.1400519d0
nop
mov rcx, rbx
call fcn.14000d7d0
mov rcx, r14
cmp sil, 1
jne 0x14005254b
xor dil, dil
mov r8, qword [rbp + 0x3f0]
lea r8, [r8*2 + 2]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x1400524d0
mov rcx, qword [rbp + 0x3f0]
lea r9, [rcx*2 + 2]
lea r8, [rbp + 0x3e0]
cmp qword [rbp + 0x3f8], 7
cmova r8, qword [rbp + 0x3e0]
mov qword [rsp + 0x20], r12
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14005245b
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dil, 1
jmp 0x1400524a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400524a6
xorps xmm0, xmm0
movups xmmword [rbp + 0x448], xmm0
mov qword [rbp + 0x458], r12
mov qword [rbp + 0x460], r12
mov r8d, 0x37
lea rdx, str.architecture_mismatch:_only_x64_can_inject_this_process
lea rcx, [rbp + 0x448]
call fcn.140014a20
lea rcx, [rbp + 0x448]
call fcn.14004fbe0
xor dil, dil
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400524ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rdx, qword [rbp + 0x3f8]
cmp rdx, 7
jbe 0x140052516
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052511
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527bc
call fcn.140076d98
mov qword [rbp + 0x3f0], r12
mov qword [rbp + 0x3f8], 7
mov word [rbp + 0x3e0], r12w
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r15
call fcn.14000d7d0
movzx eax, dil
jmp 0x14005278c
mov qword [rbp + 0x400], r14
mov qword [rbp + 0x408], r12
lea rdx, str.kernel32.dll
call fcn.140050b90
mov rdx, rax
lea r8, [0x1400ac8b0]
mov rcx, r14
call fcn.140050f10
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x418], r12d
mov dword [rbp + 0x41c], 0xffffffff
mov ecx, dword [0x1400d9da0]
mov dword [rbp + 0x420], ecx
test rax, rax
jne 0x140052641
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140052621
mov dword [rbp - 0x60], 0x438
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x5c]
call fcn.1400a1080
lea rdx, [rbp - 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x140052618
nop word [rax + rax]
lea rdx, str.kernel32.dll
lea rcx, [rbp - 0x30]
call fcn.14008a168
mov rcx, rbx
test eax, eax
je 0x1400526b3
lea rdx, [rbp - 0x60]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1400525f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r12
lea r8, [0x1400ac8b0]
mov rcx, r14
call fcn.140051380
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x420], r12d
mov dword [rbp + 0x418], 1
lea rdx, [rbp + 0x3e0]
cmp qword [rbp + 0x3f8], 7
cmova rdx, qword [rbp + 0x3e0]
lea rcx, [rbp + 0x400]
call fcn.14004c0e0
nop
mov rbx, qword [rbp + 0x408]
test rax, rax
je 0x1400526c2
test rbx, rbx
je 0x1400526af
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1400526a2
cmp dword [rbx], 0
je 0x1400526a2
mov r9d, 0x4000
mov r8, qword [rbx + 0x18]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 0x20
mov rcx, rbx
call fcn.140076d98
mov bl, 1
jmp 0x1400526f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x38]
jmp 0x140052624
test rbx, rbx
je 0x1400526f6
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1400526e9
cmp dword [rbx], 0
je 0x1400526e9
mov r9d, 0x4000
mov r8, qword [rbx + 0x18]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 0x20
mov rcx, rbx
call fcn.140076d98
xor bl, bl
mov rdx, qword [rbp + 0x3f8]
cmp rdx, 7
jbe 0x14005273e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400527bc
call fcn.140076d98
mov qword [rbp + 0x3f0], r12
mov qword [rbp + 0x3f8], 7
mov word [rbp + 0x3e0], r12w
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r15
call fcn.14000d7d0
movzx eax, bl
jmp 0x14005278c
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140052782
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r15
call fcn.14000d7d0
xor al, al
mov rcx, qword [rbp + 0x4a8]
xor rcx, rsp
call fcn.140076eb0
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14007d5c8
nop
call fcn.14000d860
nop
call fcn.140033f10
nop
call fcn.14000d8a0
nop
call fcn.14007d5c8
nop
call fcn.14007d5c8
nop
call fcn.14007d5c8
nop
call fcn.14007d5c8
nop
call fcn.14007d5c8
nop
call fcn.14007d5c8
int3