Function at 0x418e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], 1
cmp ecx, 0xa
je 0x418ea1
cmp ecx, 0xb
je 0x418ea1
mov eax, 0xfffffffb
jmp 0x418f1a
test eax, eax
je 0x418f15
cmp byte [eax], 0
je 0x418f15
push 0x4bc1b4
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x128], esi
test esi, esi
je 0x418f15
cmp ebx, 2
jne 0x418f36
push 0
push 0
push esi
call fcn.00438040
add esp, 0xc
test eax, eax
je 0x418ef9
jmp 0x418ee0
push eax
mov ecx, edi
call fcn.00430ef0
push 0
push 0
push esi
call fcn.00438040
add esp, 0xc
test eax, eax
jne 0x418ee0
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x4190a1
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x418f45
lea eax, [edi + 4]
mov dword [ebp - 0x110], eax
jmp 0x418f4e
lea ecx, [edi + 8]
mov dword [ebp - 0x110], ecx
cmp dword [ebp + 0x10], 0xa
jne 0x4190b6
push 2
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_rewind]
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x418f98
push ebx
mov ecx, eax
call fcn.004435d0
jmp 0x418f9a
xor eax, eax
mov edx, dword [ebp - 0x110]
push esi
push 1
push ebx
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edx], eax
call fcn.00443640
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x418f0b
mov ebx, dword [ebp - 0x120]
cmp ebx, 1
jne 0x4190a1
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4190a1
call fcn.00443620
mov ecx, dword [edi + 8]
push eax
call fcn.00443630
push eax
lea ecx, [ebp - 0x150]
call fcn.00418830
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xb
call fcn.00418950
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00451c40
cmp dword [ebp - 0x140], 0
je 0x41908b
mov ecx, dword [edi + 8]
call fcn.00443620
mov ecx, dword [edi + 8]
push eax
call fcn.00443630
push eax
lea ecx, [ebp - 0x24]
call fcn.00418830
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xd
call fcn.00418cb0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xe
call fcn.00450f00
cmp dword [ebp - 0x14], 0
je 0x419078
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x1b0]
call fcn.00418bd0
lea ecx, [ebp - 0x24]
call fcn.00418880
lea ecx, [ebp - 0x230]
call fcn.00418af0
lea ecx, [ebp - 0x150]
call fcn.00418880
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x11c]
add esp, 4
jmp 0x418f1a
lea eax, [ebp - 0x10c]
push eax
push ebx
push esi
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0x98], 0
call fcn.00438040
mov ecx, dword [ebp - 0x110]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
je 0x418f0b
cmp byte [ebp - 0x98], 0
je 0x418fcd
mov ecx, edi
call fcn.0042e220
mov ebx, eax
test ebx, ebx
je 0x418f0b
mov ecx, edi
call fcn.0042e240
push eax
push 0
lea edx, [ebp - 0x94]
push 0x50
push edx
call ebx
add esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00418830
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 1
call fcn.00418dd0
mov eax, dword [ebp - 0x138]
push eax
push 0x20
call fcn.00417e50
mov ecx, dword [ebp - 0x134]
push eax
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.0047322e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 1
push edi
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x10c]
push 0x4bc124
push ecx
call fcn.00418190
mov dword [ebp - 0x118], 0
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push 7
lea edx, [ebp - 0x10c]
push str.DES_CBC
mov bl, 3
push edx
mov byte [ebp - 4], bl
call edi
add esp, 0x40
test eax, eax
jne 0x4191f2
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4192e7
mov ecx, eax
call fcn.00435ff0
jmp 0x4192e9
push 0xd
lea eax, [ebp - 0x10c]
push str.DES_EDE3_CBC
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x419231
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4192e7
mov ecx, eax
call fcn.00436090
jmp 0x4192e9
push 0xd
lea ecx, [ebp - 0x10c]
push str.AES_128_CBC
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x41926f
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4192e7
push 0x10
mov ecx, eax
call fcn.004354d0
jmp 0x4192e9
push 0xd
lea edx, [ebp - 0x10c]
push str.AES_192_CBC
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x4192a9
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4192e7
push 0x18
mov ecx, eax
call fcn.004354d0
jmp 0x4192e9
push 0xd
lea eax, [ebp - 0x10c]
push str.AES_256_CBC
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4193d4
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4192e7
push 0x20
mov ecx, eax
call fcn.004354d0
jmp 0x4192e9
xor eax, eax
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call fcn.00418750
mov esi, dword [ebp - 0x118]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, esi
call edx
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x419345
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
call fcn.00443620
push eax
mov ecx, edi
call fcn.004435d0
mov edi, eax
jmp 0x419347
xor edi, edi
mov dword [ebp - 0x114], edi
mov ecx, dword [ebp - 0x110]
mov ecx, dword [ecx]
mov ebx, dword [esi]
mov byte [ebp - 4], 0xa
call fcn.00443620
mov edx, dword [ebp - 0x110]
mov ecx, dword [edx]
push eax
call fcn.00443630
push eax
mov ecx, edi
call fcn.00443640
push eax
mov eax, dword [ebx + 4]
mov ecx, esi
call eax
mov ebx, dword [ebp - 0x110]
mov ecx, dword [ebx]
push ecx
call fcn.004184d0
push 0
mov dword [ebx], edi
mov byte [ebp - 4], 3
call fcn.004184d0
push esi
mov byte [ebp - 4], 2
call fcn.00417ed0
add esp, 0xc
lea ecx, [ebp - 0x160]
call fcn.00418ad0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.00418880
mov esi, dword [ebp - 0x128]
mov edi, dword [ebp - 0x124]
jmp 0x418fc7
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
push 0
mov byte [ebp - 4], 2
call fcn.00417ed0
add esp, 8
lea ecx, [ebp - 0x160]
call fcn.00418ad0
lea ecx, [ebp - 0x13c]
call fcn.00418880
jmp 0x418f15