Function at 0x100f4cb
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1024c
call sub.ntdll.dll__chkstk
mov eax, dword [0x105e004]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x100]
push esi
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x10204]
test ecx, eax
push edi
jne 0x100f504
mov eax, ecx
mov dword [ebp - 0x10228], eax
jmp 0x100f515
lea ecx, [ebp + eax - 0x10204]
not eax
and ecx, eax
mov dword [ebp - 0x10228], ecx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10234], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add eax, dword [ebp + 8]
mov dword [ebp - 0x1021c], esi
adc ecx, edi
mov dword [ebp - 0x10224], eax
mov eax, 0x10000
xor edx, edx
div dword [ebp - 0x10234]
push ecx
push dword [ebp - 0x10224]
mov dword [ebp - 0x10220], ecx
push edi
mov dword [ebp - 0x10208], edi
mov dword [ebp - 0x10218], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1020c], eax
push eax
jmp 0x100f70e
mov edi, dword [ebp - 0x10234]
push edi
push dword [ebp - 0x10208]
lea eax, [ebp - 0x1024c]
push dword [ebp - 0x1020c]
push eax
call fcn.0100e7b8
mov esi, dword [eax]
mov eax, dword [eax + 4]
push dword [ebp - 0x10220]
mov dword [ebp - 0x10240], eax
mov eax, dword [ebp - 0x10218]
push dword [ebp - 0x10224]
xor ecx, ecx
add eax, dword [ebp - 0x1020c]
adc ecx, dword [ebp - 0x10208]
push ecx
push eax
call fcn.0100e878
test al, al
je 0x100f5ef
mov eax, dword [ebp - 0x10224]
sub eax, dword [ebp - 0x1020c]
mov ecx, dword [ebp - 0x10220]
sbb ecx, dword [ebp - 0x10208]
imul edi, eax
mov dword [ebp - 0x10238], ecx
mov dword [ebp - 0x10238], edi
jmp 0x100f600
mov eax, dword [ebp - 0x10218]
imul eax, edi
mov dword [ebp - 0x10238], eax
mov edi, eax
mov eax, dword [ebp - 0x10240]
mov dword [ebp - 0x10214], esi
xor esi, esi
push esi
mov dword [ebp - 0x10210], eax
lea eax, [ebp - 0x10214]
push eax
push edi
push dword [ebp - 0x1021c]
lea eax, [ebp - 0x10230]
push eax
push esi
push esi
push esi
push dword [ebx + 0x24]
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0xc0000017
mov dword [ebx + 0x34], eax
jne 0x100f65d
shr dword [ebp - 0x10218], 1
mov eax, dword [ebp - 0x10218]
sub dword [ebp - 0x1020c], eax
sbb dword [ebp - 0x10208], esi
jmp 0x100f6e2
mov esi, 0xc0000000
mov ecx, eax
and ecx, esi
cmp ecx, esi
je 0x100f7a4
cmp dword [ebp - 0x1022c], edi
jne 0x100f7a4
xor eax, eax
push eax
lea ecx, [ebp - 0x10214]
push ecx
push edi
push dword [ebp - 0x10228]
lea ecx, [ebp - 0x10230]
push ecx
push eax
push eax
push eax
push dword [ebx + 0x24]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, eax
and ecx, esi
cmp ecx, esi
mov dword [ebx + 0x34], eax
je 0x100f75f
cmp dword [ebp - 0x1022c], edi
jne 0x100f75f
mov esi, dword [ebp - 0x10228]
mov ecx, edi
mov edi, dword [ebp - 0x1021c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f6d2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100f72c
mov eax, dword [ebp - 0x10238]
add dword [ebp - 0x1021c], eax
push dword [ebp - 0x10220]
mov eax, dword [ebp - 0x10218]
push dword [ebp - 0x10224]
xor ecx, ecx
add dword [ebp - 0x1020c], eax
adc dword [ebp - 0x10208], ecx
push dword [ebp - 0x10208]
push dword [ebp - 0x1020c]
call fcn.0100e82c
test al, al
jne 0x100f571
inc al
mov ecx, dword [ebp - 4]
call fcn.0100d6cf
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x100f75b
push dword [ebp - 0x10238]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x1001498
push 0x69a8
push ebx
call fcn.0100e21b
add esp, 0x18
xor al, al
jmp 0x100f71d
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x100f75b
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
jne 0x100f78b
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push eax
push 0x1001480
push 0x69a6
jmp 0x100f7d3
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x100148c
jmp 0x100f7ce
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x100f75b
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
je 0x100f772
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x1001474
push 0x69a7
push ebx
call fcn.0100e21b
add esp, 0x1c
jmp 0x100f75b