Function at 0x180006dd0
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x180115a80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rcx
xor ebp, ebp
test edx, edx
je 0x180007128
cmp edx, 1
jne 0x18000714b
mov qword [0x180117e00], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea r10, [rsp + 0xaa]
nop word [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r10], r8w
mov r8d, edx
test edx, edx
jne 0x180006e30
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xaa]
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.180002aa0
nop
lea r8, [rsp + 0x40]
lea rdx, str.LUNA_VNR_HOOKMAN_
lea rcx, [rsp + 0x60]
call fcn.180002c00
mov rdi, rax
cmp qword [rax + 0x10], 0
jne 0x180006ea0
mov r8, rbp
jmp 0x180006ead
mov r8, rdi
cmp qword [rax + 0x18], 7
jbe 0x180006ead
mov r8, qword [rax]
xor edx, edx
lea rcx, [0x180117d50]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov rcx, rdi
call fcn.180003d60
nop
mov rcx, qword [0x180117e10]
mov qword [0x180117e10], rbx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180006ee7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x180006f29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006f24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000717f
call fcn.1800babcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180006f3d
xor eax, eax
jmp 0x180007150
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, 0x694920
call fcn.1800baf44
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180006f8f
mov rbx, rax
mov edi, 0x9c4
nop word [rax + rax]
xor edx, edx
mov r8d, 0xa08
mov rcx, rbx
call fcn.1800e3ab0
add rbx, 0xac8
sub rdi, 1
jne 0x180006f70
jmp 0x180006f92
mov rsi, rbp
mov qword [0x180117ec0], rsi
lea r9, [0x180117ed0]
mov edx, 0x694920
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.180006d40
nop
mov r8, rax
lea rdx, str.EMBED_SHARED_MEM
lea rcx, [rsp + 0x40]
call fcn.180002c00
cmp qword [rax + 0x18], 7
jbe 0x180006fe5
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa00
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [0x180117d50]
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop
mov rcx, qword [0x180115288]
mov qword [0x180115288], rax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x180007030
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x180115288]
mov qword [rsp + 0x20], 0xa00
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf003f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x180117e08], rax
xor edx, edx
mov r8d, 0xa00
mov rcx, rax
call fcn.1800e3ab0
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1800070a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800070a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007185
call fcn.1800babcc
movdqa xmm0, xmmword [0x1800edbc0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bp
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1800070fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800070f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007179
call fcn.1800babcc
call fcn.180098460
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, [0x180004ce0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000714b
call fcn.1800987b0
call fcn.18008cd00
mov rcx, qword [0x180117ec0]
call fcn.1800babcc
mov rcx, qword [0x180117e08]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800bb0c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1800ca310
int3
call fcn.1800ca310
nop
call fcn.1800ca310
nop
int3