Function at 0x100150a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x100a0c5c]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
jne 0x100150d2
push 0x6a
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100a0c5c], eax
je 0x100153b3
cmp dword [0x100a0c4c], ebx
jne 0x100150fb
push 0x6f
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100a0c4c], eax
je 0x100153b3
mov eax, dword [0x100a0c50]
cmp eax, ebx
jne 0x10015125
push 0x74
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100a0c50], eax
je 0x100153b3
mov ecx, dword [0x100a0c58]
cmp ecx, ebx
je 0x100151a5
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x10015168
mov edx, dword [0x100a0c54]
mov edi, dword [esp + 0x18]
lea esi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x100a0c58]
pop edi
pop esi
mov dword [0x100a0c58], ebx
mov dword [0x100a0c54], ebx
pop ebp
pop ebx
ret
mov esi, dword [0x100a0c54]
mov edi, dword [esp + 0x18]
mov ecx, edx
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x100a0c54]
mov eax, dword [0x100a0c58]
add ecx, edx
sub eax, edx
pop edi
pop esi
mov dword [0x100a0c58], eax
pop ebp
mov dword [0x100a0c54], ecx
mov eax, edx
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov edi, 0x4000
cmp eax, edi
jle 0x100151b6
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x14]
mov edx, dword [0x100a0c4c]
mov ecx, 4
sub ecx, esi
add edx, esi
push ecx
push edx
push ebp
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100151eb
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x1001528c
jmp 0x100151f5
cmp eax, ebx
jle 0x1001528c
add esi, eax
cmp esi, 4
jl 0x100151ba
mov ecx, dword [0x100a0c4c]
xor ebx, ebx
xor eax, eax
xor edx, edx
mov bl, byte [ecx]
mov al, byte [ecx + 1]
lea esi, [ecx + 1]
shl ebx, 0x18
mov dh, byte [esi + 1]
shl eax, 0x10
or ebx, eax
inc esi
xor eax, eax
or ebx, edx
mov al, byte [esi + 1]
or ebx, eax
cmp ebx, edi
jg 0x100153b3
test ebx, ebx
jl 0x100153b3
cmp ebx, 8
jge 0x1001523f
mov edi, 8
jmp 0x10015250
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
shl edi, 3
xor esi, esi
test edi, edi
jle 0x10015293
mov edx, edi
add ecx, esi
sub edx, esi
push edx
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1001527a
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x1001528c
jmp 0x10015280
test eax, eax
jle 0x1001528c
add esi, eax
mov ecx, dword [0x100a0c4c]
cmp esi, edi
jge 0x10015293
jmp 0x10015256
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
jge 0x10015309
mov al, byte [0x100985c0]
push 0
test al, 1
je 0x100152bf
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100a0c50]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32.dll_des_pcbc_encrypt
jmp 0x100152d7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100a0c50]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32.dll_des_cbc_encrypt
mov esi, dword [0x100a0c50]
mov edi, dword [esp + 0x30]
mov ecx, ebp
add esp, 0x18
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
sub ebx, ebp
rep movsb byte es:[edi], byte [esi]
mov dword [0x100a0c58], ebx
pop edi
mov dword [0x100a0c54], ebp
mov ebx, ebp
pop esi
pop ebp
pop ebx
ret
mov al, byte [0x100985c0]
cmp ebp, edi
jge 0x1001536d
test al, 1
push 0
je 0x10015332
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100a0c5c]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32.dll_des_pcbc_encrypt
jmp 0x10015349
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100a0c5c]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32.dll_des_cbc_encrypt
mov esi, dword [0x100a0c5c]
mov edi, dword [esp + 0x30]
mov ecx, ebx
add esp, 0x18
mov edx, ecx
mov eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 1
push 0
je 0x10015393
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32.dll_des_pcbc_encrypt
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32.dll_des_cbc_encrypt
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret