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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140007620]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x90], 0
jne 0x14000a2ea
mov dword [rsp + 0x24], 1
jmp 0x14000a2f2
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x14000a320
xor r9d, r9d
mov r8d, 0x486
lea rdx, [0x14000be20]
lea rcx, [0x14000be70]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x38], 0
jmp 0x14000a328
mov dword [rsp + 0x38], 1
cmp qword [rsp + 0x90], 0
jne 0x14000a338
jmp 0x14000a569
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx]
jne 0x14000a355
mov dword [rsp + 0x20], 1
jmp 0x14000a371
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx + 0x10]
jne 0x14000a371
mov dword [rsp + 0x20], 2
cmp dword [rsp + 0x20], 1
je 0x14000a392
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x14000a411
cmp dword [rsp + 0x20], 1
je 0x14000a3a9
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x14000a3d6
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rax, qword [rsp + 0x90]
add rax, 0x38
mov rdx, rax
mov cl, 1
call fcn.14000a1c0
cmp dword [rsp + 0x20], 1
je 0x14000a3fe
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x30], 0
je 0x14000a411
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x20], 2
je 0x14000a437
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x14000a4d7
cmp dword [rsp + 0x20], 2
je 0x14000a44e
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp dword [rsp + 0x20], 2
jne 0x14000a462
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x40], rax
jmp 0x14000a46c
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov r8b, 1
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14000a630
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0
je 0x14000a4b2
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp dword [rsp + 0x20], 2
je 0x14000a4c4
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x28], 0
je 0x14000a4d7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
je 0x14000a53e
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x28], 0
je 0x14000a517
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x28], 0
mov edx, 0x656e6f42
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x90]
add rax, 0x38
mov rdx, rax
xor ecx, ecx
call fcn.14000a1c0
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140007bc0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004d00
add rsp, 0x88
ret