Function at 0x140002bf4
Capabilities:
Allocate or change rwx memory
Attach user process memory
Execute shellcode via indirect call
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
and qword [rbp - 0x21], 0
xorps xmm0, xmm0
and qword [rbp - 0x19], 0
mov rdi, rdx
and qword [rbp - 9], 0
mov esi, ecx
xor ecx, ecx
mov edx, r8d
movups xmmword [rbp + 7], xmm0
mov ebx, r8d
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r14, rax
test rax, rax
jne 0x140002c61
lea rcx, [0x1400040b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002e4a
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.1400039c0
mov rcx, rsi
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002c96
lea rcx, [0x1400040d0]
call sub.ntoskrnl.exe_DbgPrint
mov esi, 0xc0000001
jmp 0x140002e3d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp + 7]
test rax, rax
setne r15b
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rbp - 0x29], 0
lea r9, [rbp - 0x11]
and qword [rbp + 0x7f], 0
lea rdx, [rbp - 0x29]
mov r13d, 0x1000
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], r13d
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x11], rbx
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov esi, eax
test eax, eax
js 0x140002e29
mov r8, qword [rbp - 0x11]
mov rdx, r14
mov rcx, qword [rbp - 0x29]
call fcn.1400039c0
mov rcx, qword [rbp - 0x29]
test r15b, r15b
je 0x140002d15
call fcn.140002988
jmp 0x140002d1a
call fcn.140002798
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140002e29
mov rbx, qword gs:[0x188]
call fcn.140002b3c
and qword [rsp + 0x50], 0
or r9, 0xffffffffffffffff
and qword [rsp + 0x48], 0
xor r8d, r8d
and qword [rsp + 0x40], 0
mov edx, 0x1fffff
and qword [rsp + 0x38], 0
mov edi, eax
add rdi, rbx
mov dword [rsp + 0x30], 4
and qword [rsp + 0x28], 0
mov bl, byte [rdi]
mov byte [rdi], 0
mov rcx, qword [rbp + 0x7f]
mov rax, qword [0x14000a800]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x19]
call qword [0x140005230]
mov byte [rdi], bl
mov esi, eax
test eax, eax
js 0x140002db5
mov rcx, qword [rbp - 0x19]
lea r8, [rbp - 9]
mov dl, 1
mov qword [rbp - 9], 0xffffffffdc3cba00
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp + 0x7f]
xor edx, edx
mov r8, r13
mov rcx, qword [rax + 0x5e8]
test r15b, r15b
je 0x140002dce
mov ecx, dword [rcx]
jmp 0x140002dd1
mov rcx, qword [rcx]
call fcn.140003c80
mov rdx, qword [rbp + 0x7f]
mov ebx, 0x8000
or rdi, 0xffffffffffffffff
mov qword [rbp - 1], r13
mov r9d, ebx
mov rcx, rdi
lea r8, [rdx + 0x600]
add rdx, 0x5f8
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov r9d, ebx
lea r8, [rbp - 1]
lea rdx, [rbp + 0x7f]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov r9d, ebx
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret