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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1400aa140]
xor rax, rsp
mov qword [rbp + 0x4b8], rax
mov r13, rdx
mov qword [rbp - 0x58], rdx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov r8d, ecx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rbp - 0x78], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14005150b
mov dword [rsp + 0x48], r15d
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 0x140050c1e
cmp ax, 6
je 0x140050c1e
mov eax, dword [rsp + 0x48]
jmp 0x140050c3f
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140050c3a
cmp dword [rsp + 0x48], 0
mov eax, r15d
jne 0x140050c3f
mov eax, 1
test eax, eax
setne dil
mov byte [rsp + 0x40], dil
lea rcx, str.LunaHook64
lea rsi, str.LunaHook32
test eax, eax
cmovne rsi, rcx
cmp qword [r13 + 0x10], 0
je 0x140050cde
lea r8, [0x14008b514]
mov rdx, r13
lea rcx, [rbp + 0x498]
call fcn.14004ab20
nop
mov dword [rsp + 0x50], 1
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140050c90
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140034cb0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x478], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x488], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rax, [rbp + 0x478]
mov ebx, 0x403
jmp 0x140050ecf
mov ecx, 0x208
call fcn.140074874
mov rdi, rax
mov qword [rbp - 0x70], rax
lea rbx, [rax + 0x208]
mov qword [rbp - 0x60], rbx
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbp - 0x68], rbx
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140050d5f
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8, rbx
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x140050d40
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140014200
mov byte [rsp + 0x78], 1
jmp 0x140050d64
mov byte [rsp + 0x78], 0
test rdi, rdi
je 0x140050d77
mov edx, 0x208
mov rcx, rdi
call fcn.1400748b0
nop
mov dword [rsp + 0x50], 0x44
cmp byte [rsp + 0x78], 0
je 0x14005155a
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x458], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x468], xmm1
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov dword [rsp + 0x50], 0x4c
nop
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140050dc0
xorps xmm0, xmm0
movups xmmword [rbp + 0x410], xmm0
mov qword [rbp + 0x420], r15
mov qword [rbp + 0x428], r15
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x410]
call fcn.140014200
nop
mov dword [rsp + 0x50], 0x1dc
lea rdi, [rbp + 0x458]
mov r15, qword [rbp + 0x458]
cmp qword [rbp + 0x470], 7
cmova rdi, r15
mov rsi, qword [rbp + 0x468]
lea rbx, [rdi + rsi*2]
mov rdx, rbx
mov rcx, rdi
call fcn.14000c930
cmp rax, rbx
je 0x140050e6b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140050e41
cmp cx, 0x2f
jne 0x140050e4a
add rax, 2
cmp rax, rbx
jne 0x140050e32
cmp rax, rbx
je 0x140050e6b
nop
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140050e6b
cmp cx, 0x2f
je 0x140050e6b
mov rbx, rdx
cmp rax, rdx
jne 0x140050e50
sub rbx, rdi
sar rbx, 1
cmp rsi, rbx
jb 0x140051560
lea rax, [rbp + 0x458]
cmp qword [rbp + 0x470], 7
cmova rax, r15
mov qword [rbp + 0x468], rbx
xor r15d, r15d
mov word [rax + rbx*2], r15w
lea rdx, [rbp + 0x410]
lea rcx, [rbp + 0x458]
call fcn.14000bea0
mov rdx, rax
lea rcx, [rbp + 0x430]
call fcn.140009df0
lea rax, [rbp + 0x430]
mov ebx, 0x3fc
movzx edi, byte [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x3f0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x400], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
test bl, 0x20
je 0x140050f43
and ebx, 0xffffffdf
mov rdx, qword [rbp + 0x448]
cmp rdx, 7
jbe 0x140050f43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x430]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050f3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051566
call fcn.1400748b0
nop
test bl, 0x10
je 0x140050fa9
and ebx, 0xffffffef
mov rdx, qword [rbp + 0x428]
cmp rdx, 7
jbe 0x140050f91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x410]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050f8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005156c
call fcn.1400748b0
movdqa xmm0, xmmword [0x14008ae60]
movdqu xmmword [rbp + 0x420], xmm0
mov word [rbp + 0x410], r15w
test bl, 8
je 0x14005100f
and ebx, 0xfffffff7
mov rdx, qword [rbp + 0x470]
cmp rdx, 7
jbe 0x140050ff7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x458]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050ff2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051572
call fcn.1400748b0
movdqa xmm0, xmmword [0x14008ae60]
movdqu xmmword [rbp + 0x468], xmm0
mov word [rbp + 0x458], r15w
test bl, 4
je 0x140051074
and ebx, 0xfffffffb
cmp byte [rsp + 0x78], 0
je 0x140051074
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140051060
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005105b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051578
call fcn.1400748b0
movdqa xmm0, xmmword [0x14008ae60]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r15w
test bl, 2
je 0x1400510c3
and ebx, 0xfffffffd
mov rdx, qword [rbp + 0x490]
cmp rdx, 7
jbe 0x1400510c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x478]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400510bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005157e
call fcn.1400748b0
nop
test bl, 1
je 0x140051126
mov rdx, qword [rbp + 0x4b0]
cmp rdx, 7
jbe 0x14005110e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x498]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051109
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051584
call fcn.1400748b0
movdqa xmm0, xmmword [0x14008ae60]
movdqu xmmword [rbp + 0x4a8], xmm0
mov word [rbp + 0x498], r15w
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0x430]
call fcn.140009df0
mov rcx, rax
call fcn.14004ebe0
mov rcx, r14
cmp dil, 1
jne 0x1400512f0
xor dil, dil
mov r8, qword [rbp + 0x400]
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 0x140051275
mov rcx, qword [rbp + 0x400]
lea r9, [rcx*2 + 2]
lea r8, [rbp + 0x3f0]
cmp qword [rbp + 0x408], 7
cmova r8, qword [rbp + 0x3f0]
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
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 0x140051202
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dil, 1
jmp 0x14005124b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14005124b
xorps xmm0, xmm0
movups xmmword [rbp + 0x410], xmm0
mov qword [rbp + 0x420], r15
mov qword [rbp + 0x428], r15
lea r8d, [rax + 0x32]
lea rdx, str.architecture_mismatch:_only_x64_can_inject_this_process
lea rcx, [rbp + 0x410]
call fcn.140014200
lea rcx, [rbp + 0x410]
call fcn.14004ebe0
xor dil, dil
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005125f
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 + 0x408]
cmp rdx, 7
jbe 0x1400512bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400512b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051554
call fcn.1400748b0
mov qword [rbp + 0x400], r15
mov qword [rbp + 0x408], 7
mov word [rbp + 0x3f0], r15w
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r13
call fcn.14000b270
movzx eax, dil
jmp 0x140051529
mov qword [rbp + 0x430], r14
mov qword [rbp + 0x438], r15
lea rdx, str.kernel32.dll
call fcn.14004fbc0
mov rdx, rax
lea r8, [0x14008d770]
mov rcx, r14
call fcn.14004ff50
mov qword [rbp + 0x440], rax
mov dword [rbp + 0x448], r15d
mov dword [rbp + 0x44c], 0xffffffff
mov ecx, dword [0x1400af480]
mov dword [rbp + 0x450], ecx
test rax, rax
jne 0x1400513e1
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 0x1400513c1
mov dword [rbp - 0x50], 0x438
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x4c]
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1400513b8
nop
lea rdx, str.kernel32.dll
lea rcx, [rbp - 0x20]
call sub.msvcrt.dll__wcsicmp
mov rcx, rbx
test eax, eax
je 0x140051453
lea rdx, [rbp - 0x50]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x140051390
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r15
lea r8, [0x14008d770]
mov rcx, r14
call fcn.1400503e0
mov qword [rbp + 0x440], rax
mov dword [rbp + 0x450], r15d
mov dword [rbp + 0x448], 1
lea rdx, [rbp + 0x3f0]
cmp qword [rbp + 0x408], 7
cmova rdx, qword [rbp + 0x3f0]
lea rcx, [rbp + 0x430]
call fcn.14004ade0
nop
mov rbx, qword [rbp + 0x438]
test rax, rax
je 0x140051462
test rbx, rbx
je 0x14005144f
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140051442
cmp dword [rbx], 0
je 0x140051442
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.1400748b0
mov bl, 1
jmp 0x140051498
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x28]
jmp 0x1400513c4
test rbx, rbx
je 0x140051496
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140051489
cmp dword [rbx], 0
je 0x140051489
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.1400748b0
xor bl, bl
mov rdx, qword [rbp + 0x408]
cmp rdx, 7
jbe 0x1400514da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051554
call fcn.1400748b0
mov qword [rbp + 0x400], r15
mov qword [rbp + 0x408], 7
mov word [rbp + 0x3f0], r15w
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r13
call fcn.14000b270
movzx eax, bl
jmp 0x140051529
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005151f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r13
call fcn.14000b270
xor al, al
mov rcx, qword [rbp + 0x4b8]
xor rcx, rsp
call fcn.1400749d0
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.140078a60
nop
call fcn.1400345f0
nop
call fcn.14000d1f0
nop
call fcn.140078a60
nop
call fcn.140078a60
nop
call fcn.140078a60
nop
call fcn.140078a60
nop
call fcn.140078a60
nop
call fcn.140078a60
int3