Function at 0x180006da0
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 [0x180110c00]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rcx
xor ebp, ebp
test edx, edx
je 0x1800070fd
cmp edx, 1
jne 0x180007120
mov qword [0x180112fa0], 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 0x180006e00
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 0x180006e70
mov r8, rbp
jmp 0x180006e7d
mov r8, rdi
cmp qword [rax + 0x18], 7
jbe 0x180006e7d
mov r8, qword [rax]
xor edx, edx
lea rcx, [0x180112ef0]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov rcx, rdi
call fcn.180003d00
nop
mov rcx, qword [0x180112fb0]
mov qword [0x180112fb0], rbx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180006eb7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x180006ef9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006ef4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007154
call fcn.1800b78c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180006f0d
xor eax, eax
jmp 0x180007125
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, 0x694920
call fcn.1800b7c40
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180006f5f
mov rbx, rax
mov edi, 0x9c4
nop word [rax + rax]
xor edx, edx
mov r8d, 0xa08
mov rcx, rbx
call fcn.1800df830
add rbx, 0xac8
sub rdi, 1
jne 0x180006f40
jmp 0x180006f62
mov rsi, rbp
mov qword [0x180112fb8], rsi
lea r9, [0x180112fd0]
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.180006d10
nop
mov r8, rax
lea rdx, str.EMBED_SHARED_MEM
lea rcx, [rsp + 0x40]
call fcn.180002c00
cmp qword [rax + 0x18], 7
jbe 0x180006fb5
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa00
xor r9d, r9d
mov r8d, 0x40
lea rdx, [0x180112ef0]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop
mov rcx, qword [0x180110290]
mov qword [0x180110290], rax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x180007005
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x180110290]
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 [0x180112fa8], rax
xor edx, edx
mov r8d, 0xa00
mov rcx, rax
call fcn.1800df830
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x18000707b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007076
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000715a
call fcn.1800b78c8
movdqa xmm0, xmmword [0x1800e9bc0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bp
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1800070d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800070cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000714e
call fcn.1800b78c8
call fcn.180095000
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, [0x180004ca0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007120
call fcn.180095350
call fcn.180089780
mov rcx, qword [0x180112fb8]
call fcn.1800b78c8
mov rcx, qword [0x180112fa8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b7dc0
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.1800c6138
int3
call fcn.1800c6138
nop
call fcn.1800c6138
nop