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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x90], 0
jne 0x14001112a
mov dword [rsp + 0x24], 1
jmp 0x140011132
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x140011160
xor r9d, r9d
mov r8d, 0x486
lea rdx, [0x140016b30]
lea rcx, [0x140017240]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x28], 0
jmp 0x140011168
mov dword [rsp + 0x28], 1
cmp qword [rsp + 0x90], 0
jne 0x140011178
jmp 0x1400113a9
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx]
jne 0x140011195
mov dword [rsp + 0x20], 1
jmp 0x1400111b1
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx + 0x10]
jne 0x1400111b1
mov dword [rsp + 0x20], 2
cmp dword [rsp + 0x20], 1
je 0x1400111d2
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x140011251
cmp dword [rsp + 0x20], 1
je 0x1400111e9
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x140011216
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.140011000
cmp dword [rsp + 0x20], 1
je 0x14001123e
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x40], 0
je 0x140011251
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x20], 2
je 0x140011277
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x140011317
cmp dword [rsp + 0x20], 2
je 0x14001128e
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp dword [rsp + 0x20], 2
jne 0x1400112a2
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x30], rax
jmp 0x1400112ac
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov r8b, 1
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
call fcn.140012ca0
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0
je 0x1400112f2
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 0x140011304
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x38], 0
je 0x140011317
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
je 0x14001137e
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x28], 0
je 0x140011357
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.140011000
mov rdx, qword [rsp + 0x90]
lea rcx, [0x1400064a0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x88
ret