Function at 0x180004620
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov ecx, 0xc350
call fcn.180038c3c
mov qword [rbx + 0x6b0], rax
mov rcx, qword [0x1800599e8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000465d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x600
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi]
mov qword [rbx + 0x600], rax
mov rcx, qword [0x1800599e8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000468f
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [rdi + 0x180]
bt rax, 0xc
jae 0x1800046e6
xor eax, eax
lea r8, [0x1800042f0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x610], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x618], rax
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x180]
test al, 0x40
je 0x180004758
lea rcx, [rbx + 0x18]
test al, al
jns 0x18000472d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbx + 0x108]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180004751
lea rcx, str.function_not_present
call fcn.180002830
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180004751
lea rcx, str.module_not_present
call fcn.180002830
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
add qword [rbx + 0x600], rax
mov rcx, qword [rbx + 0x600]
lea r9, [0x180059a10]
mov edx, 0xa
lea r8d, [rdx + 0x36]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x600]
lea rdi, [rbx + 0x621]
mov rdx, rdi
lea r8, [rsp + 0x40]
call fcn.18002cb00
test eax, eax
je 0x1800047c4
cmp eax, 3
jne 0x180004885
mov rcx, qword [rbx + 0x600]
lea edx, [rax + 6]
call fcn.180003c90
mov rcx, qword [rbx + 0x600]
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.18002cb00
test eax, eax
jne 0x180004794
movsxd rax, dword [0x1800580a8]
lea rdx, [0x180058020]
lea rcx, [0x180004a50]
mov qword [rax + rdx], rbx
movsxd rax, dword [0x1800580ac]
mov qword [rax + rdx], rcx
movsxd rcx, dword [0x1800580b0]
mov rax, qword [rsp + 0x40]
mov qword [rcx + rdx], rax
movaps xmm0, xmmword [0x180058020]
mov rcx, qword [rbx + 0x600]
movups xmmword [rdi], xmm0
movaps xmm1, xmmword [0x180058030]
movups xmmword [rdi + 0x10], xmm1
movaps xmm0, xmmword [0x180058040]
movups xmmword [rdi + 0x20], xmm0
movaps xmm1, xmmword [0x180058050]
movups xmmword [rdi + 0x30], xmm1
movaps xmm0, xmmword [0x180058060]
movups xmmword [rdi + 0x40], xmm0
movaps xmm1, xmmword [0x180058070]
movups xmmword [rdi + 0x50], xmm1
movaps xmm0, xmmword [0x180058080]
movups xmmword [rdi + 0x60], xmm0
movaps xmm1, xmmword [0x180058090]
movups xmmword [rdi + 0x70], xmm1
mov eax, dword [0x1800580a0]
mov dword [rdi + 0x80], eax
movzx eax, word [0x1800580a4]
mov word [rdi + 0x84], ax
call fcn.18002cda0
test eax, eax
sete al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.18002d090
mov rcx, rax
call fcn.180002830
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret