Function at 0x16a20
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b1e8
push 0x18b7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0xc0000001
cmp dword [ebp + 0xc], 0
je 0x16a7c
cmp dword [ebp + 0x10], 0
jne 0x16a86
mov eax, 0xc0000001
jmp 0x16ca7
push 0x30
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x16aa3
mov eax, 0xc000009a
jmp 0x16ca7
mov eax, 0x16800
sub eax, 0x16810
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x16810
call dword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov dword [0x1cc34], eax
cmp dword [0x1cc34], 0
jne 0x16ae9
push 0
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000009a
jmp 0x16ca7
mov dword [ebp - 4], 0
push 1
push 0
mov eax, dword [0x1cc34]
push eax
call dword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [ebp - 4], 0xffffffff
jmp 0x16b48
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push 0x10
push 0
push 0
push 1
push 1
mov edx, dword [0x1cc34]
push edx
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x16ba3
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [0x1cc34]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
push 0
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x16ca7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x1cc4c]
mov dword [ebp - 0x20], ecx
push 0x12c
push 0
mov edx, dword [ebp - 0x4c]
add edx, 0x14
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 1], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx]
mov byte [ebp - 0x59], dl
add dword [ebp - 0x54], 1
cmp byte [ebp - 0x59], 0
jne 0x16be0
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 0x1e
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
add ecx, 9
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x48]
add edx, 0x1e
mov eax, dword [ebp - 0x24]
mov dword [eax], edx
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
push 0
push 1
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0x169d0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeInitializeApc]
push 0
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
movzx eax, al
test eax, eax
jne 0x16c93
mov ecx, dword [0x1cc34]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov edx, dword [0x1cc34]
push edx
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
push 0
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x16ca7
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x4a]
test edx, edx
jne 0x16ca5
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4a], 1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc