Function at 0x10d10
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
and byte [ebp - 1], 0
and byte [ebp - 2], 0
or dword [ebp - 8], 0xffffffff
push edi
lea eax, [ebp - 0x18]
push eax
push dword [0x15628]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x10f1d
mov ecx, dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
push dword [ebp + 0xc]
movzx ebx, word [ebp + 8]
push ebx
lea eax, [ebp - 0x250]
push 0x10ce8
push eax
call sub.ntoskrnl.exe_swprintf
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0001087c
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x10da9
mov byte [ebp - 1], 1
jmp 0x10ea7
cmp eax, 0xc0000043
jne 0x10ea7
push ebx
lea eax, [ebp - 0x250]
push 0x10d00
push eax
call sub.ntoskrnl.exe_swprintf
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x50]
push eax
call esi
push 0x400
lea eax, [ebp - 0x14]
push eax
call fcn.00010830
mov esi, dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
push 0x40
pop ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov edi, 0x80000000
push edi
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 2], 1
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x28], ebx
call esi
test eax, eax
mov dword [ebp + 8], eax
jl 0x10f19
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
jmp 0x10e4a
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], eax
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
test eax, eax
mov dword [ebp + 8], eax
jl 0x10f19
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], 0x18
call esi
test eax, eax
mov dword [ebp + 8], eax
jge 0x10e32
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea eax, [ebp - 0x14]
push eax
call fcn.0001079a
and byte [ebp - 1], 0
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [ebp - 8], 0xffffffff
je 0x10f1b
push dword [ebp - 8]
call fcn.00010690
mov ebx, eax
cmp ebx, edi
je 0x10f1b
cmp dword [ebx], edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp + 0xc], edi
jbe 0x10f11
lea esi, [ebx + 0x10]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
sub eax, ecx
je 0x10efa
mov dword [ebp - 0x38], eax
push 1
push dword [ebp - 0x44]
push edi
push dword [ebp + 0x10]
call fcn.00010582
add edi, 1
adc dword [ebp - 0x44], 0
dec dword [ebp - 0x38]
jne 0x10ee0
mov eax, dword [esi + 4]
inc dword [ebp + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
add esi, 0x10
cmp eax, dword [ebx]
jb 0x10ece
xor edi, edi
push ebx
call fcn.00015256
jmp 0x10f1b
xor edi, edi
pop esi
pop ebx
cmp dword [ebp - 0xc], edi
je 0x10f2b
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 1], 0
je 0x10f40
cmp dword [ebp - 8], 0xffffffff
je 0x10f40
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 2], 0
je 0x10f53
cmp dword [ebp - 0x10], edi
je 0x10f53
push dword [ebp - 0x10]
call fcn.00015256
cmp dword [ebp - 0x18], edi
pop edi
je 0x10f5f
call dword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov eax, dword [ebp + 8]
leave
ret 0xc