Function at 0x10c78ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push 0xfffffffffffffffe
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
cmp esi, eax
jne 0x10c7901
call fcn.010b94d6
and dword [eax], 0
call fcn.010b94be
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x10c7e70
push edi
xor edi, edi
cmp esi, edi
jl 0x10c7910
cmp esi, dword [0x10f4d5c]
jb 0x10c7937
call fcn.010b94d6
mov dword [eax], edi
call fcn.010b94be
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 9
call fcn.010b7221
add esp, 0x14
or eax, 0xffffffff
jmp 0x10c7e6f
mov eax, esi
and esi, 0x1f
imul esi, esi, 0x24
sar eax, 5
push ebx
lea ebx, [eax*4 + 0x10f4d60]
mov eax, dword [ebx]
add eax, esi
mov cl, byte [eax + 4]
test cl, 1
jne 0x10c796d
call fcn.010b94d6
mov dword [eax], edi
call fcn.010b94be
mov dword [eax], 9
jmp 0x10c7ab0
mov dword [ebp - 0x10], edi
cmp edx, edi
je 0x10c7e6c
test cl, 2
jne 0x10c7e6c
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x10c7a9e
mov eax, dword [eax + 8]
and eax, 3
mov dword [ebp - 0x1c], eax
dec eax
je 0x10c7a96
dec eax
jne 0x10c79b1
mov eax, edx
not eax
test al, 1
je 0x10c7a9e
and edx, 0xfffffffe
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0xc]
lea edi, [esi + ecx]
test byte [edi + 4], 0x48
je 0x10c7a38
mov cl, byte [edi + 5]
cmp cl, 0xa
je 0x10c7a38
cmp dword [ebp + 0x10], 0
je 0x10c7a38
xor edx, edx
mov byte [eax], cl
mov ecx, dword [ebx]
inc edx
inc eax
dec dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], edx
mov byte [esi + ecx + 5], 0xa
je 0x10c7a38
mov ecx, dword [ebx]
mov cl, byte [esi + ecx + 6]
cmp cl, 0xa
je 0x10c7a38
cmp dword [ebp + 0x10], 0
je 0x10c7a38
mov byte [eax], cl
mov ecx, dword [ebx]
inc eax
dec dword [ebp + 0x10]
mov dword [ebp - 0x10], 2
mov byte [esi + ecx + 6], 0xa
cmp dword [ebp - 0x1c], edx
jne 0x10c7a38
mov ecx, dword [ebx]
mov cl, byte [esi + ecx + 7]
cmp cl, 0xa
je 0x10c7a38
cmp dword [ebp + 0x10], 0
je 0x10c7a38
mov byte [eax], cl
mov ecx, dword [ebx]
inc eax
dec dword [ebp + 0x10]
mov dword [ebp - 0x10], 3
mov byte [esi + ecx + 7], 0xa
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10c7e36
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jl 0x10c7e36
cmp ecx, dword [ebp + 0x10]
ja 0x10c7e36
mov eax, dword [ebx]
add dword [ebp - 0x10], ecx
lea eax, [esi + eax + 4]
test byte [eax], 0x80
je 0x10c7cdc
cmp dword [ebp - 0x1c], 2
je 0x10c7cff
test ecx, ecx
je 0x10c7b02
mov ecx, dword [ebp - 0xc]
cmp byte [ecx], 0xa
jne 0x10c7b02
or byte [eax], 4
jmp 0x10c7b05
mov eax, edx
not eax
test al, 1
jne 0x10c7abf
call fcn.010b94d6
mov dword [eax], edi
call fcn.010b94be
mov dword [eax], 0x16
push edi
push edi
push edi
push edi
push edi
call fcn.010b7221
add esp, 0x14
jmp 0x10c7afa
mov eax, edx
push 4
pop ecx
shr eax, 1
mov dword [ebp + 0x10], ecx
cmp eax, ecx
jb 0x10c7ad0
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
call fcn.010b8cbd
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x10c79b4
call fcn.010b94be
mov dword [eax], 0xc
call fcn.010b94d6
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x10c7e6e
and byte [eax], 0xfb
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10], eax
cmp edi, eax
jae 0x10c7beb
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x1a
je 0x10c7bd6
cmp al, 0xd
je 0x10c7b38
mov byte [edi], al
inc edi
inc ecx
mov dword [ebp + 0x10], ecx
jmp 0x10c7bc8
mov eax, dword [ebp - 0x10]
dec eax
cmp ecx, eax
jae 0x10c7b57
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x10c7b52
inc ecx
inc ecx
mov dword [ebp + 0x10], ecx
mov byte [edi], 0xa
jmp 0x10c7bc7
mov dword [ebp + 0x10], eax
jmp 0x10c7bc4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10c7b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10c7bc4
cmp dword [ebp - 0x18], 0
je 0x10c7bc4
mov eax, dword [ebx]
test byte [esi + eax + 4], 0x48
je 0x10c7ba2
cmp byte [ebp - 1], 0xa
je 0x10c7b4d
mov byte [edi], 0xd
mov eax, dword [ebx]
mov cl, byte [ebp - 1]
mov byte [esi + eax + 5], cl
jmp 0x10c7bc7
cmp edi, dword [ebp - 0xc]
jne 0x10c7bad
cmp byte [ebp - 1], 0xa
je 0x10c7b4d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.010c7f59
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10c7bc8
mov byte [edi], 0xd
inc edi
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], eax
jb 0x10c7b1b
jmp 0x10c7beb
mov eax, dword [ebx]
lea eax, [esi + eax + 4]
test byte [eax], 0x40
jne 0x10c7be6
or byte [eax], 2
jmp 0x10c7beb
mov al, byte [ecx]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
jne 0x10c7cdc
test eax, eax
je 0x10c7cdc
dec edi
mov cl, byte [edi]
test cl, cl
js 0x10c7c12
inc edi
jmp 0x10c7c9b
xor eax, eax
inc eax
movzx ecx, cl
jmp 0x10c7c29
cmp eax, 4
jg 0x10c7c32
cmp edi, dword [ebp - 0xc]
jb 0x10c7c32
dec edi
movzx ecx, byte [edi]
inc eax
cmp byte [ecx + 0x10f2690], 0
je 0x10c7c1a
mov dl, byte [edi]
movzx ecx, dl
movsx ecx, byte [ecx + 0x10f2690]
test ecx, ecx
jne 0x10c7c52
call fcn.010b94be
mov dword [eax], 0x2a
jmp 0x10c7cd8
inc ecx
cmp ecx, eax
jne 0x10c7c5b
add edi, eax
jmp 0x10c7c9b
mov ecx, dword [ebx]
add ecx, esi
test byte [ecx + 4], 0x48
je 0x10c7c89
inc edi
cmp eax, 2
mov byte [ecx + 5], dl
jl 0x10c7c77
mov dl, byte [edi]
mov ecx, dword [ebx]
mov byte [esi + ecx + 6], dl
inc edi
cmp eax, 3
jne 0x10c7c85
mov dl, byte [edi]
mov ecx, dword [ebx]
mov byte [esi + ecx + 7], dl
inc edi
sub edi, eax
jmp 0x10c7c9b
neg eax
cdq
push 1
push edx
push eax
push dword [ebp + 8]
call fcn.010c7f59
add esp, 0x10
mov eax, dword [ebp - 0x20]
sub edi, dword [ebp - 0xc]
shr eax, 1
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push edi
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10c7ccb
add eax, eax
cmp eax, dword [ebp - 0x20]
ja 0x10c7ccb
mov dword [ebp - 0x10], eax
jmp 0x10c7cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010b94ee
pop ecx
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x10c7ceb
push eax
call fcn.010b70e3
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x10c7e6e
mov eax, dword [ebp - 0x10]
jmp 0x10c7e6e
test ecx, ecx
je 0x10c7d11
mov ecx, dword [ebp - 0xc]
cmp word [ecx], 0xa
jne 0x10c7d11
or byte [eax], 4
jmp 0x10c7d14
and byte [eax], 0xfb
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 0x10], eax
dec eax
mov dword [ebp + 0x10], edi
cmp edi, eax
jae 0x10c7e2b
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp cx, 0x1a
je 0x10c7e13
cmp cx, 0xd
je 0x10c7d50
mov word [edi], cx
inc edi
inc edi
inc eax
inc eax
mov dword [ebp + 0x10], eax
jmp 0x10c7e04
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
cmp eax, ecx
jae 0x10c7d78
lea ecx, [eax + 2]
cmp word [ecx], 0xa
jne 0x10c7d70
add eax, 4
mov dword [ebp + 0x10], eax
push 0xa
jmp 0x10c7dfe
mov dword [ebp + 0x10], ecx
jmp 0x10c7dfc
add dword [ebp + 0x10], 2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10c7da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10c7dfc
cmp dword [ebp - 0x18], 0
je 0x10c7dfc
mov eax, dword [ebx]
test byte [esi + eax + 4], 0x48
je 0x10c7dd8
cmp word [ebp - 8], 0xa
je 0x10c7d69
push 0xd
pop eax
mov word [edi], ax
mov eax, dword [ebx]
mov cl, byte [ebp - 8]
mov byte [esi + eax + 5], cl
mov eax, dword [ebx]
mov cl, byte [ebp - 7]
mov byte [esi + eax + 6], cl
mov eax, dword [ebx]
mov byte [esi + eax + 7], 0xa
jmp 0x10c7e02
cmp edi, dword [ebp - 0xc]
jne 0x10c7de4
cmp word [ebp - 8], 0xa
je 0x10c7d69
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.010c7f59
add esp, 0x10
cmp word [ebp - 8], 0xa
je 0x10c7e04
push 0xd
pop eax
mov word [edi], ax
inc edi
inc edi
mov eax, dword [ebp - 0x10]
dec eax
cmp dword [ebp + 0x10], eax
jb 0x10c7d2b
jmp 0x10c7e2b
mov ecx, dword [ebx]
lea esi, [esi + ecx + 4]
test byte [esi], 0x40
jne 0x10c7e23
or byte [esi], 2
jmp 0x10c7e2b
mov ax, word [eax]
mov word [edi], ax
inc edi
inc edi
sub edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jmp 0x10c7cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10c7e5a
call fcn.010b94be
mov dword [eax], 9
call fcn.010b94d6
mov dword [eax], esi
jmp 0x10c7cd8
cmp eax, 0x6d
jne 0x10c7cd1
and dword [ebp - 0x14], 0
jmp 0x10c7cdc
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret