Function at 0x140007028
Capabilities:
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
and qword [rbp + 0x6f], 0
lea r9, [0x140006fe0]
and qword [rbp - 0x69], 0
lea r8, [0x140006fa0]
and qword [rsp + 0x20], 0
lea rdx, [0x140006fc0]
mov r12, rcx
lea rcx, [0x140013160]
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTableAvl]
lea r8, [rbp - 0x69]
mov ecx, 5
lea rdx, [rbp + 0x6f]
call fcn.140004604
mov esi, eax
test eax, eax
jns 0x1400070d0
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
xor edx, edx
mov dword [rsp + 0x30], esi
movzx r9d, al
lea r8, [0x14000d900]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000746a
mov r15, qword [rbp + 0x6f]
xor ecx, ecx
lea r14d, [rcx + 0x4d]
mov rax, qword [rbp + 0x6f]
and qword [rbp + 0x7f], 0
add rax, rcx
mov qword [rbp + 0x6f], rax
cmp qword [rax + 0x50], 0
je 0x140007418
and qword [rbp - 1], 0
lea r9, [rbp - 0x59]
and qword [rbp + 7], 0
lea r8, [rbp - 9]
xorps xmm0, xmm0
mov dword [rbp - 9], 0x30
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0xf], 0x200
lea rcx, [rbp - 0x61]
mov rax, qword [rax + 0x50]
mov edx, 0x1000
and qword [rbp - 0x51], 0
mov qword [rbp - 0x59], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov esi, eax
test eax, eax
jns 0x140007193
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
lea r8, [0x14000d990]
mov rcx, qword [rbp + 0x6f]
mov dword [rsp + 0x38], esi
movzx r9d, al
mov rdx, qword [rcx + 0x50]
mov ecx, r14d
mov qword [rsp + 0x30], rdx
mov edx, 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007418
mov rdx, qword [rbp - 0x61]
lea r9, [rbp - 0x69]
lea r8, [rbp + 0x77]
mov ecx, 0x1b
call fcn.140004508
mov rcx, qword [rbp - 0x61]
mov esi, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
jns 0x1400071dd
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
lea r8, [0x14000da10]
jmp 0x140007161
xor edx, edx
lea rcx, [rbp - 0x49]
lea r8d, [rdx + 0x40]
call fcn.14000a600
mov rcx, qword [rbp + 0x6f]
lea rdx, [rbp + 0x7f]
mov rax, qword [rcx + 0x50]
mov qword [rbp - 0x49], rax
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
jns 0x140007260
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp + 0x6f]
lea r8, [0x14000daa0]
mov dword [rsp + 0x38], esi
movzx r9d, al
mov rdx, qword [rcx + 0x50]
mov ecx, r14d
mov qword [rsp + 0x30], rdx
mov edx, 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000740f
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x31], rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp + 0x77]
lea r8, [0x14000db20]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbp + 0x6f]
movzx r9d, al
mov rdx, qword [rcx + 0x50]
mov ecx, r14d
mov qword [rsp + 0x30], rdx
mov edx, 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r8, qword [rbp + 0x6f]
lea rcx, [rbp - 0x49]
mov rdx, qword [rbp + 0x77]
mov rax, r12
mov r8, qword [r8 + 0x58]
call qword [0x140010370]
lea rcx, [rbp - 0x49]
call fcn.140006f3c
test al, al
jne 0x140007327
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp + 0x6f]
lea r8, [0x14000db80]
movzx r9d, al
mov rdx, qword [rcx + 0x50]
mov ecx, r14d
mov qword [rsp + 0x30], rdx
mov edx, 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp byte [rbp - 0x41], 0
je 0x14000737b
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp - 0x49]
lea r8, [0x14000dc00]
mov qword [rsp + 0x30], rcx
mov edx, 2
mov qword [rsp + 0x28], rdi
mov ecx, r14d
movzx r9d, al
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp byte [rbp - 0x39], 0
je 0x1400073c5
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp - 0x49]
lea r8, [0x14000dc60]
mov qword [rsp + 0x30], rcx
mov edx, 2
mov qword [rsp + 0x28], rdi
mov ecx, r14d
movzx r9d, al
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp byte [rbp - 0x11], 0
je 0x14000740f
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov rcx, qword [rbp - 0x49]
lea r8, [0x14000dcc0]
mov qword [rsp + 0x30], rcx
mov edx, 2
mov qword [rsp + 0x28], rdi
mov ecx, r14d
movzx r9d, al
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp + 0x77]
call fcn.1400041fc
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test rcx, rcx
jne 0x1400070da
mov rcx, r15
call fcn.1400041fc
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov qword [rsp + 0x28], rdi
lea r8, [0x14000dd20]
movzx r9d, al
mov edx, 2
mov ecx, r14d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret