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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14002a380]
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 0x14003e5ca
mov dword [rsp + 0x24], 1
jmp 0x14003e5d2
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
je 0x14003e600
xor r9d, r9d
mov r8d, 0x486
lea rdx, [0x140046990]
lea rcx, [0x140046a30]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x28], 0
jmp 0x14003e608
mov dword [rsp + 0x28], 1
cmp qword [rsp + 0x90], 0
jne 0x14003e618
jmp 0x14003e849
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx]
jne 0x14003e635
mov dword [rsp + 0x20], 1
jmp 0x14003e651
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
cmp rax, qword [rcx + 0x10]
jne 0x14003e651
mov dword [rsp + 0x20], 2
cmp dword [rsp + 0x20], 1
je 0x14003e672
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x14003e6f1
cmp dword [rsp + 0x20], 1
je 0x14003e689
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 0x14003e6b6
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.14003e4a0
cmp dword [rsp + 0x20], 1
je 0x14003e6de
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x40], 0
je 0x14003e6f1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x20], 2
je 0x14003e717
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 0x14003e7b7
cmp dword [rsp + 0x20], 2
je 0x14003e72e
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp dword [rsp + 0x20], 2
jne 0x14003e742
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x30], rax
jmp 0x14003e74c
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.14003e940
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x18], 0
je 0x14003e792
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 0x14003e7a4
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x38], 0
je 0x14003e7b7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
je 0x14003e81e
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x28], 0
je 0x14003e7f7
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.14003e4a0
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140039340]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140021990
add rsp, 0x88
ret