Function at 0x1905c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1f108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
mov esi, 0x1cc2a
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x26]
rep stosd dword es:[edi], eax
xor esi, esi
cmp byte [0x1f1ec], 0
stosw word es:[edi], ax
mov eax, dword [0x1f1d8]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x58], esi
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x70], 0x18
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 0x240
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], 0x214c0
jne 0x190cf
mov dword [ebp - 0x68], 0x21298
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x190e3
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
push dword [edi + 8]
lea eax, [ebp - 0x78]
push esi
push esi
push esi
push esi
push esi
push 0x40
push 1
push esi
push 0x80
push esi
push eax
lea eax, [ebp - 0x70]
push eax
push 0xc0000000
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
jl 0x19495
push ebx
mov edi, 0x1000
push edi
call fcn.00015866
mov ebx, eax
cmp ebx, esi
je 0x1948b
push edi
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x98]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x1000
push edi
push ebx
push 8
lea eax, [ebp - 0x98]
push eax
push 0x90073
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ZwFsControlFile]
push dword [ebp - 0x48]
test eax, eax
jge 0x19177
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x19214
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [0x1f1ec], 0
mov dword [ebp - 0x48], esi
mov eax, dword [ebx + 0x18]
mov dword [0x212a0], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x212a4], eax
mov eax, dword [ebx + 0x10]
mov dword [0x21288], eax
mov eax, dword [ebx + 0x14]
mov dword [0x2128c], eax
mov eax, dword [0x214dc]
jne 0x191b3
mov eax, dword [0x214d4]
mov ax, word [eax]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push esi
push 0x60
push 1
push 3
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 0x68], eax
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0xc0000000
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x70], 0x18
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 0x240
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x1921f
push ebx
call fcn.00015880
jmp 0x19494
push edi
push esi
push ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x54]
push eax
push edi
push ebx
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x19485
mov ecx, dword [ebx + 3]
mov eax, 0x1cc24
cmp ecx, dword [eax]
jne 0x192a5
movzx ecx, word [ebx + 0xb]
movzx eax, byte [ebx + 0xd]
push dword [0x212a4]
imul ecx
push dword [0x212a0]
push edx
push eax
call sub.ntoskrnl.exe__allmul
push dword [0x2128c]
mov dword [0x212a0], eax
push dword [0x21288]
mov dword [0x212a4], edx
movzx ecx, word [ebx + 0xb]
movzx eax, byte [ebx + 0xd]
imul ecx
push edx
push eax
call sub.ntoskrnl.exe__allmul
jmp 0x19357
push 2
pop ecx
mov edi, 0x1cc1a
lea esi, [ebx + 0x52]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x19485
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x192c5
movzx eax, word [ebx + 0x16]
and dword [ebp - 0x50], 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
movzx eax, byte [ebx + 0x10]
push dword [ebp - 0x54]
cdq
push edx
push eax
call sub.ntoskrnl.exe__allmul
push dword [0x212a4]
mov esi, eax
movzx eax, word [ebx + 0xe]
push dword [0x212a0]
mov edi, edx
cdq
add esi, eax
adc edi, edx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
movzx ecx, word [ebx + 0xb]
movzx eax, byte [ebx + 0xd]
imul ecx
push edx
push eax
call sub.ntoskrnl.exe__allmul
mov dword [0x212a0], eax
mov dword [0x212a4], edx
movzx eax, word [ebx + 0xb]
push edi
cdq
push esi
push edx
push eax
call sub.ntoskrnl.exe__allmul
add dword [0x212a0], eax
push dword [0x2128c]
adc dword [0x212a4], edx
movzx ecx, word [ebx + 0xb]
movzx eax, byte [ebx + 0xd]
push dword [0x21288]
imul ecx
push edx
push eax
call sub.ntoskrnl.exe__allmul
xor esi, esi
mov edi, 0x1000
push edi
push esi
push ebx
mov dword [0x2128c], edx
mov dword [0x21288], eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push edi
push ebx
push 8
lea eax, [ebp - 0x88]
push eax
push 0x560020
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ZwDeviceIoControlFile]
test eax, eax
jl 0x19485
mov eax, dword [ebx + 0x10]
add dword [0x212a0], eax
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.ntoskrnl.exe_swprintf]
adc dword [0x212a4], eax
push dword [ebx + 8]
lea eax, [ebp - 0x44]
push 0x1cbe6
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x80
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
test eax, eax
jge 0x1942d
push dword [ebx + 8]
lea eax, [ebp - 0x44]
push 0x1cbbe
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x80
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
test eax, eax
jl 0x19485
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x19485
cmp dword [0x1f1e4], esi
jne 0x19485
mov eax, dword [eax + 4]
push 3
pop ecx
jmp 0x1944c
cmp ecx, esi
jbe 0x19454
mov eax, dword [eax + 0x10]
dec ecx
mov dword [ebp - 0x4c], eax
cmp dword [eax + 0x10], esi
jne 0x19444
mov ecx, dword [eax + 8]
mov dword [0x1f1e0], ecx
mov dword [0x1f1dc], eax
mov eax, dword [ecx + 0x44]
mov dword [0x1f1e4], eax
mov eax, dword [ecx + 0x48]
mov dword [0x1f1e8], eax
mov dword [ecx + 0x44], 0x18f2e
mov eax, dword [0x1f1e0]
mov dword [eax + 0x48], 0x18fc2
push ebx
call fcn.00015880
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0001b175
leave
ret