Function at 0x16600
Capabilities:
Attach user process memory
Enumerate pe sections
Find process by pid
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov edx, dword [0x1143c]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [0x11438]
push ebp
push esi
mov dword [esp + 0x44], eax
mov eax, dword [0x11440]
mov dword [esp + 0x48], edx
mov edx, dword [0x11444]
xor esi, esi
cmp word [ecx], 7
push edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
jae 0x1667e
mov eax, 0xc000000d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov eax, dword [ecx + 4]
mov dx, word [eax + 8]
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x54], dx
lea edx, [esp + 0x4c]
push edx
push ecx
lea eax, [esp + 0x44]
call fcn.00016450
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, ebx
jne 0x166b2
mov esi, 0xc0000001
jmp 0x169da
movzx eax, word [edi]
add eax, 0xa
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x166d2
mov esi, 0xc000009a
jmp 0x169da
mov cx, word [edi]
add cx, 2
mov word [eax + 2], cx
call fcn.000163c0
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x166f4
mov esi, 0xc000009a
jmp 0x169da
lea ebp, [eax + 4]
mov eax, dword [eax]
xor ecx, ecx
mov edi, ebp
cmp eax, ebx
jbe 0x1671b
mov edx, dword [esp + 0x1c]
cmp dword [edi + 8], edx
je 0x16714
inc ecx
add edi, 0x10
cmp ecx, eax
jb 0x16705
jmp 0x1671b
mov dl, byte [edi + 4]
mov byte [esp + 0x13], dl
mov edi, ebp
mov dword [esp + 0x34], ebx
cmp eax, ebx
jbe 0x169d6
lea esp, [esp]
mov al, byte [esp + 0x13]
cmp al, byte [edi + 4]
jne 0x169be
mov ecx, dword [edi]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x48], ecx
push 0x1fffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], 0x40
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], ebx
call ebp
mov esi, eax
cmp esi, ebx
jl 0x169be
mov dword [esp + 0x58], 0x18
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], 0x40
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x5c]
push eax
push 0x1fffff
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x54], ebx
call ebp
mov esi, eax
cmp esi, ebx
jge 0x1680d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x169be
mov ecx, dword [esp + 0x1c]
movzx edx, word [edi + 6]
push 2
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
mov esi, eax
cmp esi, ebx
jl 0x169aa
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x169aa
mov edx, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edx]
push ebx
push ecx
push 0x80000000
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov esi, eax
cmp esi, ebx
jge 0x16881
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwClose]
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x169bc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x16985
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
cmp dword [eax + 0x2c], 7
jne 0x16989
test dword [ecx + 0x2c], 0x400000
jne 0x16989
mov edx, dword [esp + 0x24]
mov ax, word [edx]
mov ebp, dword [esp + 0x2c]
add ax, 2
mov word [ebp + 2], ax
movzx eax, ax
lea edx, [esp + 0x3c]
push edx
add eax, 8
push eax
push ebp
push ecx
call dword [sym.imp.ntoskrnl.exe_ObQueryNameString]
test eax, eax
jl 0x16985
mov ecx, dword [esp + 0x24]
push 1
push ecx
push ebp
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x16985
mov eax, dword [edi]
cmp eax, 4
je 0x16952
cmp eax, 8
je 0x16952
cmp eax, ebx
je 0x16952
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
cmp esi, ebx
jl 0x16985
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
movzx ecx, word [edi + 6]
call fcn.00016330
movzx edx, word [edi + 6]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwClose]
push edx
call ebp
mov esi, eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [esp + 0x18]
jmp 0x1698f
movzx eax, word [edi + 6]
or eax, 0x80000000
call fcn.00016380
mov ecx, dword [esp + 0x18]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwClose]
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
jmp 0x169bc
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwClose]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
jmp 0x169bc
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwClose]
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0x10
mov dword [esp + 0x34], eax
cmp eax, dword [ecx]
jb 0x16730
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x169e9
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebp, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [esp + 0x28], ebx
je 0x169fd
mov edx, dword [esp + 0x28]
push ebx
push edx
call ebp
cmp edi, ebx
je 0x16a05
push ebx
push edi
call ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x16a11
push ebx
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret