Function at 0x121d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x14004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x140], esi
lea edi, [ebp - 0x13c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
xor ebx, ebx
mov dword [ebp - 0x11c], esi
call fcn.00011f78
cmp eax, esi
mov dword [ebp - 0x118], eax
jl 0x12504
mov edi, 0x200
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x11c], eax
cmp eax, esi
je 0x12504
or dword [ebp - 0x134], 0xffffffff
push esi
lea eax, [ebp - 0x138]
push eax
push edi
push dword [ebp - 0x11c]
lea eax, [ebp - 0x130]
push eax
push esi
push esi
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x138], 0xfffffffe
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, esi
mov dword [ebp - 0x118], eax
jl 0x12504
push esi
lea eax, [ebp - 0x124]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push esi
push dword [eax]
push esi
push dword [ebp - 0x120]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, esi
mov dword [ebp - 0x118], eax
jl 0x12504
call fcn.00011714
mov edi, dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
test al, al
je 0x122f2
push 0xe
call fcn.00011006
mov ecx, dword [0x1422c]
cmp eax, ecx
jb 0x122dd
mov edx, dword [0x14230]
add edx, ecx
cmp eax, edx
jbe 0x122f2
push 0x100
push 0xcc
call edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edx, dword [ebp - 0x124]
push edx
call fcn.000117a4
mov dword [ebp - 0x128], eax
cmp eax, esi
jne 0x12317
mov dword [ebp - 0x118], 0xc0000001
jmp 0x12504
cmp dword [edx + 8], esi
je 0x12540
mov eax, dword [edx + 8]
mov eax, dword [eax + 8]
cmp eax, esi
je 0x12540
movzx eax, byte [eax + 0x30]
push esi
push eax
call dword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov ebx, eax
cmp ebx, esi
je 0x12504
push esi
push 1
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea eax, [ebp - 0x114]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x150]
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x130]
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0x800
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x20], 0
call dword [sym.imp.ntoskrnl.exe_KeGetCurrentThread]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x124]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x60]
sub eax, 0x24
mov byte [eax], 0xd
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x124]
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0x140]
mov dword [eax + 0xc], 0x90073
mov dword [eax + 8], 8
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 0x110
call fcn.00011714
test al, al
je 0x12409
push 3
call fcn.00011006
mov ecx, dword [0x1422c]
cmp eax, ecx
jb 0x123f4
mov edx, dword [0x14230]
add edx, ecx
cmp eax, edx
jbe 0x12409
push 0x100
push 0xcc
call edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
call fcn.00011714
test al, al
je 0x12444
push 0xe
call fcn.00011006
mov ecx, dword [0x1422c]
cmp eax, ecx
jb 0x1242f
mov edx, dword [0x14230]
add edx, ecx
cmp eax, edx
jbe 0x12444
push 0x100
push 0xcc
call edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebp - 0x128]
sub eax, 0x24
mov edx, ebx
mov dword [eax + 0x1c], 0x116f4
mov dword [eax + 0x20], esi
mov byte [eax + 3], 0xe0
call fcn.00011780
mov dword [ebp - 0x118], eax
cmp eax, 0x103
jne 0x1248f
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], esi
jl 0x12504
cmp dword [ebp - 0x114], esi
je 0x12308
mov eax, dword [ebp - 0x10c]
and eax, dword [ebp - 0x108]
cmp eax, 0xffffffff
je 0x12308
call fcn.0001202a
mov edi, eax
cmp edi, esi
je 0x12308
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
push esi
push dword [section..data]
call sub.ntoskrnl.exe__allmul
mov esi, dword [ebp - 0x11c]
xor ecx, ecx
add eax, edi
adc edx, ecx
mov ecx, 0x80
mov edi, 0x14028
mov dword [0x14250], eax
mov dword [0x14254], edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebp - 0x120], esi
je 0x12518
push dword [ebp - 0x120]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, esi
je 0x12523
push ebx
call dword [sym.imp.ntoskrnl.exe_IoFreeIrp]
cmp dword [ebp - 0x11c], esi
je 0x12538
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x118]
jmp 0x12545
mov eax, 0xc0000001
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001261c
leave
ret 8