Function at 0x140003df0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1400102d0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x68], 0
mov rax, qword [0x140011b68]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov ecx, 5
mov rax, qword [rsp + 0x88]
call qword [0x14000f208]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc0000004
jne 0x140003f37
cmp qword [rsp + 0x40], 0
je 0x140003ebf
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x48]
mov r8d, 0x6864694e
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140003eed
mov rax, qword [rsp + 0x70]
jmp 0x140004135
mov rax, qword [0x140011b68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov ecx, 5
mov rax, qword [rsp + 0x98]
call qword [0x14000f208]
mov dword [rsp + 0x34], eax
jmp 0x140003e90
cmp dword [rsp + 0x34], 0
jl 0x140003f46
cmp qword [rsp + 0x40], 0
jne 0x140003f50
jmp 0x1400040fc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
je 0x140003fbf
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
je 0x140003fa6
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x38]
test eax, eax
jle 0x140003fa6
lea rdx, [0x14000d840]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
call sub.ntoskrnl.exe__wcsicmp
test eax, eax
jne 0x140003fa6
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x68], rax
jmp 0x140003fbf
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x140003f5a
cmp qword [rsp + 0x68], 0
jne 0x140003fd1
jmp 0x1400040fc
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140003ff6
jmp 0x1400040fc
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rdx, [0x14000d860]
mov rcx, qword [rsp + 0x58]
call fcn.140003640
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14000403f
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400040fc
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x78]
call fcn.1400033a0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140004076
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400040fc
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
cmp eax, 0xc3
je 0x1400040bf
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
cmp eax, 0xb8
jne 0x1400040b3
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x140004076
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400040fc
movzx eax, byte [rsp + 0x30]
mov rcx, qword [0x140011b78]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*4]
sar eax, 4
cdqe
mov rcx, qword [0x140011b78]
add rax, qword [rcx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x58], 0
je 0x14000410f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x40], 0
je 0x140004130
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14000d060
add rsp, 0xe8
ret