Function at 0x140001b70
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x610
cmp dword [rsp + 0x620], 0
jbe 0x140001b9b
cmp qword [rsp + 0x628], 0
ja 0x140001ba5
mov eax, 0xc0000001
jmp 0x1400020bf
mov dword [rsp + 0x28], 0xc0000001
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x620]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x1400020bb
cmp qword [rsp + 0x38], 0
je 0x1400020bb
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x628]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x628]
call sub.ntoskrnl.exe_strlen
mov word [rsp + 0x5a], ax
movzx eax, word [rsp + 0x5a]
mov word [rsp + 0x58], ax
mov r8b, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140001c66
mov dword [rsp + 0x40], 1
jmp 0x140001c6e
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140001e7e
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r9d, 0x10
lea r8, [rsp + 0x90]
mov rdx, rax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140001e79
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x9c]
mov r9d, 0x28
lea r8, [rsp + 0xe0]
mov edx, eax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140001e79
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x24]
mov r9d, 8
lea r8, [rsp + 0x48]
mov edx, eax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140001e79
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x24]
sub rax, 8
mov r9d, 0x88
lea r8, [rsp + 0x160]
mov rdx, rax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140001d91
jmp 0x140001e79
mov eax, dword [0x140003af0]
mov dword [rsp + 0x2f0], eax
lea rax, [rsp + 0x2f4]
mov rdi, rax
xor eax, eax
mov ecx, 0x18c
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x18c]
mov ecx, dword [rsp + 0x190]
mov r9d, eax
lea r8, [rsp + 0x2f0]
mov edx, ecx
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140001de3
jmp 0x140001e79
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx eax, al
test eax, eax
je 0x140001e40
mov eax, dword [rsp + 0x178]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 0
jmp 0x140001e79
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov r9d, 8
lea r8, [rsp + 0x48]
mov edx, eax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140001e6b
jmp 0x140001e79
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x24], eax
jne 0x140001d4f
jmp 0x140002086
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r9d, 0x20
lea r8, [rsp + 0xc0]
mov rdx, rax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140002086
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov r9d, 0x48
lea r8, [rsp + 0x110]
mov rdx, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140002086
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov r9d, 0x10
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jl 0x140002086
lea rax, [rsp + 0x1f0]
mov rdi, rax
xor eax, eax
mov ecx, 0xf8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
sub rax, 0x10
mov r9d, 0xf8
lea r8, [rsp + 0x1f0]
mov rdx, rax
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140001f95
jmp 0x140002086
mov eax, dword [0x140003af0]
mov dword [rsp + 0x480], eax
lea rax, [rsp + 0x484]
mov rdi, rax
xor eax, eax
mov ecx, 0x18c
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x248]
mov r9d, eax
lea r8, [rsp + 0x480]
mov rdx, qword [rsp + 0x250]
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140001fe6
jmp 0x140002086
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx eax, al
test eax, eax
je 0x140002044
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 0
jmp 0x140002086
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x620]
call fcn.140002128
test eax, eax
jge 0x140002076
jmp 0x140002086
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x30], rax
jne 0x140001f52
cmp dword [rsp + 0x28], 0
jl 0x1400020a5
mov r8d, 8
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x630]
call fcn.140003700
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x28]
add rsp, 0x610
pop rdi
ret