Function at 0x4a09b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea553
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x8307c0]
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 edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 1
cmp edi, 0xa
je 0x4a0a11
cmp edi, 0xb
je 0x4a0a11
mov eax, 0xfffffffb
jmp 0x4a0a8a
test eax, eax
je 0x4a0a85
cmp byte [eax], 0
je 0x4a0a85
push 0x4ff160
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a0a85
mov ecx, dword [ebp - 0x120]
cmp ecx, 2
jne 0x4a0aa6
push 0
push 0
push ebx
call fcn.004c0a40
add esp, 0xc
test eax, eax
je 0x4a0a69
nop dword [eax + eax]
push eax
mov ecx, esi
call fcn.004b3180
push 0
push 0
push ebx
call fcn.004c0a40
add esp, 0xc
test eax, eax
jne 0x4a0a50
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x4a0c0f
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.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.004e7e02
mov esp, ebp
pop ebp
ret
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax*4 + 4]
add eax, esi
mov dword [ebp - 0x118], eax
cmp edi, 0xa
jne 0x4a0c24
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebx
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
push 8
call fcn.004e7e10
add esp, 0x18
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4a0b05
push edi
mov ecx, eax
call fcn.004c4e20
jmp 0x4a0b07
xor eax, eax
mov ecx, dword [ebp - 0x118]
push ebx
push 1
push edi
mov dword [ecx], eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004b3510
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4a0a7b
cmp dword [ebp - 0x120], 1
jne 0x4a0c0f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a0c0f
call fcn.004b3530
mov ecx, dword [esi + 8]
push eax
call fcn.004b3510
push eax
lea ecx, [ebp - 0x150]
call fcn.004a05c0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xb
call fcn.004a0520
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x230]
call fcn.004cdc20
cmp dword [ebp - 0x140], 0
je 0x4a0bf9
mov ecx, dword [esi + 8]
call fcn.004b3530
mov ecx, dword [esi + 8]
push eax
call fcn.004b3510
push eax
lea ecx, [ebp - 0x24]
call fcn.004a05c0
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xd
call fcn.004a0440
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x1b0]
call fcn.004ce210
xor ecx, ecx
mov eax, 1
cmp dword [ebp - 0x14], ecx
cmovne eax, ecx
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x124], eax
call fcn.004a0660
lea ecx, [ebp - 0x24]
call fcn.004a0610
lea ecx, [ebp - 0x230]
call fcn.004a0740
lea ecx, [ebp - 0x150]
call fcn.004a0610
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x124]
add esp, 4
jmp 0x4a0a8a
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x9c], 0
push eax
push ecx
push ebx
mov byte [ebp - 0x98], 0
call fcn.004c0a40
mov edi, dword [ebp - 0x118]
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x4a0a7b
cmp byte [ebp - 0x98], 0
je 0x4a0b34
mov ecx, esi
call fcn.004b3540
mov dword [ebp - 0x110], eax
test eax, eax
je 0x4a0a7b
mov ecx, esi
call fcn.004b3600
push eax
push 0
lea eax, [ebp - 0x94]
push 0x50
push eax
call dword [ebp - 0x110]
add esp, 0x10
lea ecx, [ebp - 0x13c]
mov esi, eax
lea eax, [ebp - 0xbc]
push dword [ebp - 0x9c]
push eax
call fcn.004a05c0
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x160]
call fcn.004a04c0
mov eax, dword [ebp - 0x138]
mov ecx, 0x20
cmp eax, ecx
cmova eax, ecx
push eax
push dword [ebp - 0x134]
lea eax, [ebp - 0xbc]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x10c]
push 0x4ff164
push eax
call fcn.004a11b0
mov dword [ebp - 0x114], 0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea eax, [ebp - 0x10c]
push 7
push str.DES_CBC
push eax
mov byte [ebp - 4], 3
call esi
add esp, 0x38
test eax, eax
jne 0x4a0d67
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4a0e5c
mov ecx, eax
call fcn.004befa0
jmp 0x4a0e5e
push 0xd
lea eax, [ebp - 0x10c]
push str.DES_EDE3_CBC
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4a0da6
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4a0e5c
mov ecx, eax
call fcn.004bf090
jmp 0x4a0e5e
push 0xd
lea eax, [ebp - 0x10c]
push str.AES_128_CBC
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4a0de4
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4a0e5c
push 0x10
mov ecx, eax
call fcn.004beea0
jmp 0x4a0e5e
push 0xd
lea eax, [ebp - 0x10c]
push str.AES_192_CBC
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4a0e1e
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4a0e5c
push 0x18
mov ecx, eax
call fcn.004beea0
jmp 0x4a0e5e
push 0xd
lea eax, [ebp - 0x10c]
push str.AES_256_CBC
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4a0f52
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4a0e5c
push 0x20
mov ecx, eax
call fcn.004beea0
jmp 0x4a0e5e
xor eax, eax
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.004a0f80
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
push 8
call fcn.004e7e10
add esp, 4
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x4a0eb3
mov ecx, dword [edi]
call fcn.004b3530
mov ecx, dword [ebp - 0x110]
push eax
call fcn.004c4e20
jmp 0x4a0eb5
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x118]
mov edi, dword [esi]
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
call fcn.004b3530
push eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
call fcn.004b3510
mov ecx, dword [ebp - 0x11c]
push eax
call fcn.004b3510
push eax
mov ecx, esi
call dword [edi + 4]
mov edi, dword [ebp - 0x118]
push dword [edi]
call fcn.004a0420
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x110], 0
mov dword [edi], eax
call fcn.004a0640
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x1c]
lea ecx, [ebp - 0x160]
call fcn.004a0610
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a0610
mov esi, dword [ebp - 0x128]
jmp 0x4a0b34
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x160]
call fcn.004a0610
lea ecx, [ebp - 0x13c]
call fcn.004a0610
jmp 0x4a0a85