Function at 0x140005f50
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe8]
cmp qword [rsp + 0xe0], rax
jne 0x140005f8c
xor al, al
jmp 0x140006190
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov qword [rsp + 0x78], rax
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea rcx, [rsp + 0x78]
call fcn.140008720
mov byte [rsp + 0x30], al
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140005fd7
xor al, al
jmp 0x140006190
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov qword [rsp + 0x58], rax
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea rcx, [rsp + 0x58]
call fcn.140008720
movzx eax, al
test eax, eax
jne 0x14000601c
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
xor al, al
jmp 0x140006190
movzx eax, byte [rsp + 0x71]
test eax, eax
jne 0x140006144
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0xe8]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400060ea
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x1400060dc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x1400060dc
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 4
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x1400060dc
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
je 0x1400060dc
mov byte [rsp + 0x71], 1
lea rcx, [rsp + 0x58]
call fcn.140008c90
movzx eax, al
test eax, eax
jne 0x1400060dc
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140006140
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rsp + 0x50], rax
call fcn.140001aa0
movzx eax, al
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, [0x14000d790]
mov edx, 1
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor al, al
jmp 0x140006190
lea rcx, [0x140012340]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
movzx eax, byte [rsp + 0x68]
test eax, eax
jne 0x14000615e
xor al, al
jmp 0x140006190
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x14000616e
xor al, al
jmp 0x140006190
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x14000617e
xor al, al
jmp 0x140006190
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x14000618e
xor al, al
jmp 0x140006190
mov al, 1
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14000c150
add rsp, 0xd8
ret