Function at 0x14000d84c
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
mov r15, rdx
mov rbx, rcx
lea rdx, [0x1400163e0]
lea rcx, [0x140016420]
call fcn.14000fa24
mov rcx, rax
call fcn.140010264
mov qword [0x14003ce18], rax
test rax, rax
jne 0x14000d8d5
call fcn.1400102a0
test eax, eax
jns 0x14000d8b6
lea rcx, [0x140016450]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000dac4
lea rcx, [0x140016480]
call fcn.14000fe18
mov qword [0x14003ce18], rax
test rax, rax
jne 0x14000d8d5
call fcn.14000f95c
jmp 0x14000d8ac
and qword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
and qword [rbp - 0x21], 0
xorps xmm0, xmm0
and qword [rbp - 0x11], 0
mov rcx, rbx
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000d90d
lea rcx, [0x1400164a0]
jmp 0x14000d8a7
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 1]
test rax, rax
setne sil
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rbp + 0x7f], 0
lea r9, [rbp - 0x19]
and qword [rbp + 0x77], 0
lea rdx, [rbp + 0x7f]
mov r13d, 0x1000
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], r13d
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x19], 0x19a00
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r14d, eax
test eax, eax
js 0x14000daad
mov r8, qword [rbp - 0x19]
lea rdx, [0x140018110]
mov rcx, qword [rbp + 0x7f]
call fcn.140013a00
mov rcx, qword [rbp + 0x7f]
test sil, sil
je 0x14000d995
call fcn.14000d118
jmp 0x14000d99a
call fcn.14000cf28
mov qword [rbp + 0x77], rax
test rax, rax
je 0x14000daad
mov rbx, qword gs:[0x188]
call fcn.14000d2cc
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 + 0x77]
mov rax, qword [0x14003ce18]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x21]
call qword [0x1400172c8]
mov byte [rdi], bl
mov r14d, eax
test eax, eax
js 0x14000da36
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x11]
mov dl, 1
mov qword [rbp - 0x11], 0xffffffffdc3cba00
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp + 0x77]
xor edx, edx
mov r8, r13
mov rcx, qword [rax + 0x5e8]
test sil, sil
je 0x14000da4f
mov ecx, dword [rcx]
jmp 0x14000da52
mov rcx, qword [rcx]
mov qword [r15], rcx
call fcn.140013900
mov rdx, qword [rbp + 0x77]
mov ebx, 0x8000
or rdi, 0xffffffffffffffff
mov qword [rbp - 9], 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 - 9]
lea rdx, [rbp + 0x77]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov r9d, ebx
lea r8, [rbp - 0x19]
lea rdx, [rbp + 0x7f]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
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