Function at 0x180006d90
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 0x1800070ed
cmp edx, 1
jne 0x180007110
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 0x180006df0
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 0x180006e60
mov r8, rbp
jmp 0x180006e6d
mov r8, rdi
cmp qword [rax + 0x18], 7
jbe 0x180006e6d
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 0x180006ea7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x180006ee9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007144
call fcn.1800b75a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180006efd
xor eax, eax
jmp 0x180007115
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, 0x694920
call fcn.1800b7920
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180006f4f
mov rbx, rax
mov edi, 0x9c4
nop word [rax + rax]
xor edx, edx
mov r8d, 0xa08
mov rcx, rbx
call fcn.1800df510
add rbx, 0xac8
sub rdi, 1
jne 0x180006f30
jmp 0x180006f52
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.180006d00
nop
mov r8, rax
lea rdx, str.EMBED_SHARED_MEM
lea rcx, [rsp + 0x40]
call fcn.180002c00
cmp qword [rax + 0x18], 7
jbe 0x180006fa5
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 0x180006ff5
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.1800df510
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x18000706b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007066
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000714a
call fcn.1800b75a8
movdqa xmm0, xmmword [0x1800e9bc0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bp
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1800070c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800070bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000713e
call fcn.1800b75a8
call fcn.180094d30
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, [0x180004c90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007110
call fcn.180095080
call fcn.1800894a0
mov rcx, qword [0x180112fb8]
call fcn.1800b75a8
mov rcx, qword [0x180112fa8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b7aa0
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.1800c5e18
int3
call fcn.1800c5e18
nop
call fcn.1800c5e18
nop