Function at 0x10011e60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x100c4108]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
jne 0x10011e92
push 0x6a
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100c4108], eax
je 0x10012164
cmp dword [0x100c40f8], ebx
jne 0x10011ebb
push 0x6f
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100c40f8], eax
je 0x10012164
mov eax, dword [0x100c40fc]
cmp eax, ebx
jne 0x10011ee5
push 0x74
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100c40fc], eax
je 0x10012164
mov ecx, dword [0x100c4104]
cmp ecx, ebx
je 0x10011f61
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp ecx, edx
jge 0x10011f28
mov edx, dword [0x100c4100]
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 [0x100c4104]
pop edi
pop esi
mov dword [0x100c4104], ebx
mov dword [0x100c4100], ebx
pop ebp
pop ebx
ret
mov esi, dword [0x100c4100]
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 [0x100c4100]
mov eax, dword [0x100c4104]
add ecx, edx
sub eax, edx
pop edi
pop esi
mov dword [0x100c4104], eax
pop ebp
mov dword [0x100c4100], ecx
mov eax, edx
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov edi, 0x4000
cmp eax, edi
jle 0x10011f72
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x14]
mov edx, dword [0x100c40f8]
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 0x10011fa8
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
je 0x10011fae
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, ebx
jle 0x10011fa1
add esi, eax
cmp esi, 4
jl 0x10011f76
mov ecx, dword [0x100c40f8]
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 0x10012164
test ebx, ebx
jl 0x10012164
cmp ebx, 8
jge 0x10011ff8
mov edi, 8
jmp 0x10012009
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 0x1001204d
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 0x10012037
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x10011fa1
jmp 0x10012041
test eax, eax
jle 0x10011fa1
add esi, eax
mov ecx, dword [0x100c40f8]
cmp esi, edi
jge 0x1001204d
jmp 0x1001200f
mov ebp, dword [esp + 0x1c]
mov al, byte [0x100b8634]
cmp ebp, ebx
push 0
jge 0x100120c3
test al, 1
je 0x10012079
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100c40fc]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32.dll_DES_pcbc_encrypt
jmp 0x10012091
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100c40fc]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32.dll_DES_cbc_encrypt
mov esi, dword [0x100c40fc]
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 [0x100c4104], ebx
pop edi
mov dword [0x100c4100], ebp
mov ebx, ebp
pop esi
pop ebp
pop ebx
ret
cmp ebp, edi
jge 0x10012120
test al, 1
je 0x100120e5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100c4108]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32.dll_DES_pcbc_encrypt
jmp 0x100120fc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100c4108]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32.dll_DES_cbc_encrypt
mov esi, dword [0x100c4108]
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
je 0x10012144
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