Function at 0x11510
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
mov dword [ebp - 0x178], 0x18
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x16c], 0x40
lea eax, [ebp + 8]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
push 0
push 0
push 0x40
push 1
push 1
push 0x80
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x178]
push edx
push 1
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jge 0x115a3
push str.CreateFile_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x11964
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0x40
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jge 0x11610
push str.Read_ImageDosHeader_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x11964
mov eax, dword [ebp - 0x10c]
cdq
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push 0
lea eax, [ebp - 0x158]
push eax
push 0xf8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jge 0x1167f
push str.Read_ImageNtHeaders_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x11964
movzx edx, word [ebp - 0x102]
imul edx, edx, 0x28
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x116c2
push str.ExAllocatePool_lpImageSectionHeader_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x11964
mov ecx, dword [ebp - 0x158]
add ecx, 0xf8
mov edx, dword [ebp - 0x154]
adc edx, 0
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], edx
push 0
lea eax, [ebp - 0x158]
push eax
movzx ecx, word [ebp - 0x102]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [ebp - 0x15c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jge 0x11754
push str.Read_ImageSectionHeader_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x11964
mov ecx, dword [ebp - 0xb8]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [0x13790], eax
cmp dword [0x13790], 0
jne 0x1179f
push str.lpVirtualPointer_Alloc_space_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x11964
mov ecx, dword [ebp - 0xb8]
push ecx
push 0
mov edx, dword [0x13790]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [0x13790]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0xf8
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x13790]
add eax, dword [ebp - 0x10c]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx ecx, word [ebp - 0x102]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [0x13790]
lea edx, [ecx + eax + 0xf8]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x1182f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
movzx ecx, word [ebp - 0x102]
cmp dword [ebp - 4], ecx
jae 0x11946
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x15c]
mov edx, dword [ecx + edx + 8]
cmp edx, dword [esi + eax + 0x10]
jbe 0x1188f
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x180], edx
jmp 0x118a5
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + eax + 0x14]
xor eax, eax
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], eax
push 0
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [0x13790]
add eax, dword [ebp - 0x160]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jge 0x11941
push str.SectionData_Read_Failed_
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
mov ecx, dword [0x13790]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x11964
jmp 0x11826
push 0
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8