Function at 0x16320
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], 0
push 0x1bda0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x10
call fcn.00016280
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1635c
xor eax, eax
jmp 0x1656f
push 0x2000
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
jmp 0x1637e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
je 0x16555
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x163ba
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0x1bd90
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx]
mov byte [ebp - 0x5d], dl
mov eax, dword [ebp - 0x58]
cmp dl, byte [eax]
jne 0x16404
cmp byte [ebp - 0x5d], 0
je 0x163fb
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x5e], dl
mov eax, dword [ebp - 0x58]
cmp dl, byte [eax + 1]
jne 0x16404
add dword [ebp - 0x5c], 2
add dword [ebp - 0x58], 2
cmp byte [ebp - 0x5e], 0
jne 0x163c7
mov dword [ebp - 0x64], 0
jmp 0x1640c
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0
jne 0x16550
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x200
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x16543
push 2
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx + 0xa]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x16537
push 0
push 0x2000
mov edx, dword [ebp - 0x30]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.ntoskrnl.exe_ZwQueryObject
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x1652b
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 4], 0
je 0x16529
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x54], eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x54]
jmp 0x1656f
jmp 0x16535
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x16541
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x16550
push 0x1bd60
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
jmp 0x16375
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret