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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp + 0x1f], rax
and qword [rbp - 0x39], 0
xorps xmm0, xmm0
and qword [rbp - 0x31], 0
mov rsi, rdx
and qword [rbp - 0x21], 0
mov edi, ecx
xor ecx, ecx
mov edx, r8d
movups xmmword [rbp - 0x11], xmm0
mov ebx, r8d
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r14, rax
test rax, rax
jne 0x140001d68
lea rcx, [0x140003030]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140001f4d
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140002a00
mov rcx, rdi
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001d9d
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
mov esi, 0xc0000001
jmp 0x140001f40
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x39]
lea rdx, [rbp - 0x11]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rbp - 0x41], 0
lea r9, [rbp - 0x29]
and qword [rbp - 0x49], 0
lea rdx, [rbp - 0x41]
mov r13d, 0x1000
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], r13d
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x29], rbx
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov esi, eax
test eax, eax
js 0x140001f2c
mov r8, qword [rbp - 0x29]
mov rdx, r14
mov rcx, qword [rbp - 0x41]
call fcn.140002a00
mov rcx, qword [rbp - 0x41]
test r15, r15
je 0x140001e18
call fcn.140001a64
jmp 0x140001e1d
call fcn.140001874
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140001f2c
mov rbx, qword gs:[0x188]
call fcn.140001c18
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 - 0x49]
mov rax, qword [0x140008850]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x31]
call qword [0x140004148]
mov byte [rdi], bl
mov esi, eax
test eax, eax
js 0x140001eb8
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 0x21]
mov dl, 1
mov qword [rbp - 0x21], 0xffffffffdc3cba00
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp - 0x49]
xor edx, edx
mov r8, r13
mov rcx, qword [rax + 0x5e8]
test r15, r15
je 0x140001ed1
mov ecx, dword [rcx]
jmp 0x140001ed4
mov rcx, qword [rcx]
call fcn.140002cc0
mov rdx, qword [rbp - 0x49]
mov ebx, 0x8000
or rdi, 0xffffffffffffffff
mov qword [rbp - 0x19], 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 - 0x19]
lea rdx, [rbp - 0x49]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov r9d, ebx
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x41]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret