Function at 0x111b2
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, 0xc0000000
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
mov edi, 0x80000000
push edi
push ebx
push 0x200
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x1b
push dword [ebp - 0xc]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov dword [ebp + 8], eax
cmp eax, 0xc0000004
jne 0x113a5
push 0x6a6a6a6b
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x113a5
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
push eax
push 0x1b
push dword [ebp - 0xc]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
mov dword [ebp - 0x3c], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x240
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
cmp dword [ebp - 8], ebx
je 0x113a5
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.ntoskrnl.exe_IoVolumeDeviceToDosName]
mov dword [ebp + 8], eax
and eax, esi
cmp eax, esi
je 0x113a5
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x30]
add ax, word [ebp - 0x24]
push 0x6a6a6a6b
movzx edi, ax
movzx eax, di
add eax, 0xa
push eax
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, ebx
jne 0x11355
mov dword [ebp + 8], 0xc0000001
jmp 0x113a5
push dword [ebp - 0x1c]
push ebx
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [esi]
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi]
add edi, 2
mov word [eax + 2], di
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov esi, dword [esi]
movzx eax, word [esi]
shr eax, 1
push eax
push dword [esi + 4]
call fcn.0001117c
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x113b5
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x20], ebx
je 0x113c9
push ebx
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 8], ebx
je 0x113dc
push dword [ebp - 8]
call edi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x14], ebx
je 0x113eb
push 0x6a6a6a6b
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0xc], ebx
je 0x113f8
push dword [ebp - 0xc]
call edi
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x11408
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp + 8]
leave
ret 8