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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [section..data]
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 0x1400147ca
mov dword [rsp + 0x24], 1
jmp 0x1400147d2
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x140014800
xor r9d, r9d
mov r8d, 0x486
lea rdx, [0x140016470]
lea rcx, [0x1400164a0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x28], 0
jmp 0x140014808
mov dword [rsp + 0x28], 1
cmp qword [rsp + 0x90], 0
jne 0x140014818
jmp 0x140014a56
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx]
jne 0x140014835
mov dword [rsp + 0x20], 1
jmp 0x140014851
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx + 0x10]
jne 0x140014851
mov dword [rsp + 0x20], 2
cmp dword [rsp + 0x20], 1
je 0x140014876
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1400148f9
cmp dword [rsp + 0x20], 1
je 0x14001488e
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x1400148bc
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]
nop
mov rax, qword [rsp + 0x90]
add rax, 0x38
mov rdx, rax
mov cl, 1
call fcn.1400146a0
cmp dword [rsp + 0x20], 1
je 0x1400148e5
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
nop
cmp qword [rsp + 0x40], 0
je 0x1400148f9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
cmp dword [rsp + 0x20], 2
je 0x14001491f
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 0x1400149c3
cmp dword [rsp + 0x20], 2
je 0x140014937
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
cmp dword [rsp + 0x20], 2
jne 0x14001494b
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x30], rax
jmp 0x140014955
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.140014b00
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0
je 0x14001499c
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]
nop
cmp dword [rsp + 0x20], 2
je 0x1400149af
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
nop
cmp qword [rsp + 0x38], 0
je 0x1400149c3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
je 0x140014a2a
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x28], 0
je 0x140014a03
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, 0x4b555341
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.1400146a0
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140008980]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
nop
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001670
add rsp, 0x88
ret