Function at 0x180002fa0
Capabilities:
Allocate or change rwx memory
Create thread
Resume thread
Spawn thread to rwx shellcode
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push r12
push r13
sub rsp, 0x530
mov rax, qword [0x18001b068]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor r13d, r13d
mov r12, r9
xor ecx, ecx
mov rbx, r13
lea edx, [r13 + 0xc]
lea r9d, [r13 + 0x40]
mov r8d, 0x3000
mov byte [r11 - 0x38], 0x48
mov byte [r11 - 0x37], 0xb8
mov byte [r11 - 0x36], bl
mov byte [r11 - 0x35], bl
mov byte [r11 - 0x34], bl
mov byte [r11 - 0x33], bl
mov byte [r11 - 0x32], bl
mov byte [r11 - 0x31], bl
mov byte [r11 - 0x30], bl
mov byte [r11 - 0x2f], bl
mov byte [r11 - 0x2e], 0xff
mov byte [r11 - 0x2d], 0xe0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x18000323d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x550], rbp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbp, rax
test rax, rax
je 0x18000321c
cmp rax, 0xffffffffffffffff
je 0x18000321c
lea rcx, [rsp + 0x510]
lea rax, [0x180002eb0]
mov qword [rsp + 0x558], rdi
mov qword [rsp + 0x512], rax
mov rax, qword [rcx]
mov qword [rsi], rax
mov eax, dword [rcx + 8]
lea ecx, [r13 + 0x38]
mov dword [rsi + 8], eax
call fcn.180006afc
mov rdi, rax
test rax, rax
je 0x1800030b9
mov eax, 0xafaffafa
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi], rax
mov eax, 0xfafaafaf
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], r13
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r13d
mov qword [rdi + 0x30], rax
jmp 0x1800030bc
mov rdi, r13
lea rax, [0x180001370]
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x20], r13
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r13d
mov qword [rdi + 8], rax
lea rcx, str.NTDLL.DLL
mov dword [rsp + 0x30], r13d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
call fcn.180002d00
test rax, rax
jne 0x180003120
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlExitUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003203
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0x40000004
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x180003203
cmp rax, 0xffffffffffffffff
je 0x180003203
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x4c8
mov qword [rsp + 0x40], r13
call fcn.180009650
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x70], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800031ec
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x138], rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800031ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jg 0x1800031a3
test eax, eax
js 0x1800031ec
xor eax, eax
lea rdx, [rsp + 0x510]
or r9d, 0xffffffff
mov qword [rsp + 0x518], rax
lea ecx, [rax + 2]
xor r8d, r8d
mov qword [rsp + 0x510], rbx
mov qword [rsp + 0x518], rbp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [rdi + 0x2c], r13d
jne 0x180003203
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, r13
mov rcx, rdi
call fcn.180006a5c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x558]
xor eax, eax
xor edx, edx
mov r8d, 0x8000
mov qword [rsi], rax
mov rcx, rsi
mov dword [rsi + 8], eax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x550]
mov rax, rbx
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180006a80
mov rbx, qword [rsp + 0x560]
add rsp, 0x530
pop r13
pop r12
pop rsi
ret