Function at 0x14000bee0
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe0
mov rdi, r8
mov r14, rdx
mov rsi, rcx
and qword [rsp + 0x58], 0
and qword [rsp + 0x48], 0
mov r12d, 8
mov dword [rsp + 0x40], r12d
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
movzx eax, word [rdx + 2]
lea r15d, [r12 + 8]
add eax, r15d
mov dword [r11 + 0x20], eax
test r8, r8
je 0x14000bf45
and qword [r8], 0
cmp qword [0x1400775f8], 0
jne 0x14000bf8c
lea rdx, [0x1400154d0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x1400775f8], rax
test rax, rax
jne 0x14000bf8c
lea rax, [0x1400101f0]
mov qword [0x1400775f8], rax
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000c199
mov rax, qword [0x1400775f8]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call qword [0x1400176c8]
mov esi, eax
mov dword [rsp + 0x50], eax
jmp 0x14000bfdd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test esi, esi
jns 0x14000bff3
mov eax, esi
jmp 0x14000c199
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x40]
mov edx, 6
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoQueryFileInformation]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x14000c135
mov dword [rsp + 0x80], 0x80008
lea rax, [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0xa0], 0x30
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb8], 0x200
lea rax, [rsp + 0x80]
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x28], 0x2040
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xa0]
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x14000c12a
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov r8, qword [r8]
mov edx, 0x81
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x14000c11f
mov rsi, qword [rsp + 0x70]
test rdi, rdi
je 0x14000c11f
mov rax, qword [rsp + 0x78]
mov qword [rdi], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r9, [rsp + 0x128]
mov r8d, dword [rsp + 0x128]
mov rdx, r14
mov rcx, rsi
call sub.ntoskrnl.exe_ObQueryNameString
mov edi, eax
cmp eax, 0x80000005
je 0x14000c167
cmp eax, 0xc0000023
je 0x14000c167
cmp eax, 0xc0000004
jne 0x14000c177
movzx ecx, word [rsp + 0x128]
sub cx, r15w
mov word [r14], cx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000c187
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000c197
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret