Function at 0x1010cf1
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 [0x106000c]
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 0x1010d2a
mov eax, ecx
mov dword [ebp - 0x10228], eax
jmp 0x1010d3b
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 0x1010f34
mov edi, dword [ebp - 0x10234]
push edi
push dword [ebp - 0x10208]
lea eax, [ebp - 0x1024c]
push dword [ebp - 0x1020c]
push eax
call fcn.0100e672
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.0100e6e6
test al, al
je 0x1010e15
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 0x1010e26
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 0x1010e83
shr dword [ebp - 0x10218], 1
mov eax, dword [ebp - 0x10218]
sub dword [ebp - 0x1020c], eax
sbb dword [ebp - 0x10208], esi
jmp 0x1010f08
mov esi, 0xc0000000
mov ecx, eax
and ecx, esi
cmp ecx, esi
je 0x1010fca
cmp dword [ebp - 0x1022c], edi
jne 0x1010fca
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 0x1010f85
cmp dword [ebp - 0x1022c], edi
jne 0x1010f85
mov esi, dword [ebp - 0x10228]
mov ecx, edi
mov edi, dword [ebp - 0x1021c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1010ef8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1010f52
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.01010036
test al, al
jne 0x1010d97
inc al
mov ecx, dword [ebp - 4]
call fcn.0105f135
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010f81
push dword [ebp - 0x10238]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x1001544
push 0x69a8
push ebx
call fcn.0100d8fc
add esp, 0x18
xor al, al
jmp 0x1010f43
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010f81
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
jne 0x1010fb1
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push eax
push 0x10014f8
push 0x69a6
jmp 0x1010ff9
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x1001538
jmp 0x1010ff4
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010f81
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
je 0x1010f98
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x10014ec
push 0x69a7
push ebx
call fcn.0100d8fc
add esp, 0x1c
jmp 0x1010f81