Function at 0x1001da40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x100ffcc8]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
jne 0x1001da72
push 0x6a
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100ffcc8], eax
je 0x1001dd53
cmp dword [0x100ffcb8], ebx
jne 0x1001da9b
push 0x6f
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100ffcb8], eax
je 0x1001dd53
mov eax, dword [0x100ffcbc]
cmp eax, ebx
jne 0x1001dac5
push 0x74
push str..cryptodesenc_read.c
push 0x4004
call sym.LIBEAY32_smt.dll_CRYPTO_malloc
add esp, 0xc
cmp eax, ebx
mov dword [0x100ffcbc], eax
je 0x1001dd53
mov ecx, dword [0x100ffcc4]
cmp ecx, ebx
je 0x1001db45
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x1001db08
mov edx, dword [0x100ffcc0]
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 [0x100ffcc4]
pop edi
pop esi
mov dword [0x100ffcc4], ebx
mov dword [0x100ffcc0], ebx
pop ebp
pop ebx
ret
mov esi, dword [0x100ffcc0]
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 [0x100ffcc0]
mov eax, dword [0x100ffcc4]
add ecx, edx
sub eax, edx
pop edi
pop esi
mov dword [0x100ffcc4], eax
pop ebp
mov dword [0x100ffcc0], ecx
mov eax, edx
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov edi, 0x4000
cmp eax, edi
jle 0x1001db56
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x14]
mov edx, dword [0x100ffcb8]
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 0x1001db8b
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x1001dc2c
jmp 0x1001db95
cmp eax, ebx
jle 0x1001dc2c
add esi, eax
cmp esi, 4
jl 0x1001db5a
mov ecx, dword [0x100ffcb8]
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 0x1001dd53
test ebx, ebx
jl 0x1001dd53
cmp ebx, 8
jge 0x1001dbdf
mov edi, 8
jmp 0x1001dbf0
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 0x1001dc33
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 0x1001dc1a
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x1001dc2c
jmp 0x1001dc20
test eax, eax
jle 0x1001dc2c
add esi, eax
mov ecx, dword [0x100ffcb8]
cmp esi, edi
jge 0x1001dc33
jmp 0x1001dbf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
jge 0x1001dca9
mov al, byte [0x100f25e4]
push 0
test al, 1
je 0x1001dc5f
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100ffcbc]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32_smt.dll_DES_pcbc_encrypt
jmp 0x1001dc77
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100ffcbc]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32_smt.dll_DES_cbc_encrypt
mov esi, dword [0x100ffcbc]
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 [0x100ffcc4], ebx
pop edi
mov dword [0x100ffcc0], ebp
mov ebx, ebp
pop esi
pop ebp
pop ebx
ret
mov al, byte [0x100f25e4]
cmp ebp, edi
jge 0x1001dd0d
test al, 1
push 0
je 0x1001dcd2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [0x100ffcc8]
push eax
push ebx
push edx
push ecx
call sym.LIBEAY32_smt.dll_DES_pcbc_encrypt
jmp 0x1001dce9
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [0x100ffcc8]
push edx
push ebx
push eax
push ecx
call sym.LIBEAY32_smt.dll_DES_cbc_encrypt
mov esi, dword [0x100ffcc8]
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 0x1001dd33
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_smt.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_smt.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