Function at 0x180048f00
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
mov qword [r11 + 0x20], rbp
push r12
push r13
push r14
sub rsp, 0x530
mov rax, qword [0x18009c600]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor r14d, r14d
mov r12, r9
mov r13, r8
mov rbx, r14
lea edx, [r14 + 0xc]
lea r9d, [r14 + 0x40]
xor ecx, ecx
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 rbp, rax
test rax, rax
je 0x1800491a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x550], rsi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
test rax, rax
je 0x18004917e
cmp rax, 0xffffffffffffffff
je 0x18004917e
lea rcx, [rsp + 0x510]
lea rax, [0x180048e30]
mov qword [rsp + 0x558], rdi
mov qword [rsp + 0x512], rax
mov rax, qword [rcx]
mov qword [rbp], rax
mov eax, dword [rcx + 8]
lea ecx, [r14 + 0x38]
mov dword [rbp + 8], eax
call fcn.180052a04
mov rdi, rax
test rax, rax
je 0x180049022
mov eax, 0xafaffafa
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], rax
mov eax, 0xfafaafaf
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], r14
mov dword [rdi + 0x28], r14d
mov dword [rdi + 0x2c], r14d
mov qword [rdi + 0x30], rax
jmp 0x180049025
mov rdi, r14
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], r14
mov dword [rdi + 0x28], r14d
mov dword [rdi + 0x2c], r14d
lea rcx, str.NTDLL.DLL
mov dword [rsp + 0x30], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
call fcn.180048b90
test rax, rax
jne 0x180049082
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 0x180049165
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 0x180049165
cmp rax, 0xffffffffffffffff
je 0x180049165
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x4c8
mov qword [rsp + 0x40], r14
call fcn.180054ba0
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x70], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18004914e
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x138], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18004914e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jg 0x180049105
test eax, eax
js 0x18004914e
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], rsi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [rdi + 0x2c], r14d
jne 0x180049165
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, r14
mov rcx, rdi
call fcn.1800520c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x558]
xor eax, eax
xor edx, edx
mov r8d, 0x8000
mov qword [rbp], rax
mov rcx, rbp
mov dword [rbp + 8], eax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x550]
mov rax, rbx
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1800520e0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret