Function at 0x10107a2
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 [0x105b00c]
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 0x10107db
mov eax, ecx
mov dword [ebp - 0x10228], eax
jmp 0x10107ec
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 0x10109e5
mov edi, dword [ebp - 0x10234]
push edi
push dword [ebp - 0x10208]
lea eax, [ebp - 0x1024c]
push dword [ebp - 0x1020c]
push eax
call fcn.0100bced
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.0100ddc7
test al, al
je 0x10108c6
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 0x10108d7
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 0x1010934
shr dword [ebp - 0x10218], 1
mov eax, dword [ebp - 0x10218]
sub dword [ebp - 0x1020c], eax
sbb dword [ebp - 0x10208], esi
jmp 0x10109b9
mov esi, 0xc0000000
mov ecx, eax
and ecx, esi
cmp ecx, esi
je 0x1010a7b
cmp dword [ebp - 0x1022c], edi
jne 0x1010a7b
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 0x1010a36
cmp dword [ebp - 0x1022c], edi
jne 0x1010a36
mov esi, dword [ebp - 0x10228]
mov ecx, edi
mov edi, dword [ebp - 0x1021c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10109a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1010a03
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.0100f04a
test al, al
jne 0x1010848
inc al
mov ecx, dword [ebp - 4]
call fcn.01059e06
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010a32
push dword [ebp - 0x10238]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x10013dc
push 0x69a8
push ebx
call fcn.0100d309
add esp, 0x18
xor al, al
jmp 0x10109f4
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010a32
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
jne 0x1010a62
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push eax
push 0x100139c
push 0x69a6
jmp 0x1010aaa
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x10013d0
jmp 0x1010aa5
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x1010a32
mov ecx, eax
and ecx, esi
cmp ecx, esi
push edi
je 0x1010a49
push dword [ebp - 0x1022c]
push dword [ebp - 0x10210]
push dword [ebp - 0x10214]
push 0x1001390
push 0x69a7
push ebx
call fcn.0100d309
add esp, 0x1c
jmp 0x1010a32