Function at 0x10005417
Capabilities:
Read file on windows

Disassembly:
push 0xa4
mov eax, 0x10073027
call fcn.1004e336
mov dword [ebp - 0xb0], ecx
cmp dword [ecx + 0xc4], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x9c], ebx
jne 0x10005445
mov al, 1
jmp 0x100057b4
mov eax, dword [ecx + 0xc0]
xor dl, dl
mov edi, dword [ecx + 0xc0]
mov byte [ebp - 0x95], dl
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
cmp eax, edi
je 0x100057b2
add eax, 0x10
mov dword [ebp - 0xa4], eax
lea ecx, [eax + 0x18]
cmp dword [ecx + 0x14], 8
jb 0x1000547d
mov ecx, dword [ecx]
push ecx
call fcn.100053dc
mov esi, eax
pop ecx
mov dword [ebp - 0xac], esi
and dword [ebp - 4], 0
test esi, esi
je 0x1000549e
cmp esi, 0xffffffff
je 0x1000549e
xor eax, eax
inc eax
jmp 0x100054a0
xor eax, eax
test al, al
je 0x1000575e
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x7c]
add eax, 0x90
mov edx, 0x100893e8
push eax
call fcn.10007231
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
mov edx, eax
mov dword [esp], 0x100891e0
call fcn.100072a4
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.10003a4e
add esp, 0xc
lea ecx, [ebp - 0x64]
mov bl, al
neg bl
push 0
push 1
sbb bl, bl
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.10001805
add bl, 1
jne 0x100057bc
push str.Content_Type:_text_plain_r_n
lea ecx, [ebp - 0x64]
call fcn.100017d6
push dword [ebp - 0x9c]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
call fcn.10003a4e
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x64]
push 1
sbb bl, bl
call fcn.10001805
add bl, 1
jne 0x100057bc
push str.Content_Transfer_Encoding:_base64_r_n
lea ecx, [ebp - 0x64]
call fcn.100017d6
push dword [ebp - 0x9c]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
call fcn.10003a4e
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x64]
push 1
sbb bl, bl
call fcn.10001805
add bl, 1
jne 0x100057bc
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.10005230
push eax
mov edx, str.Content_Disposition:_attachment__filename_
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.100071fd
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7c]
mov edx, eax
mov dword [esp], str.__r_n_r_n
call fcn.100072a4
push dword [ebp - 0x9c]
mov byte [ebp - 4], 7
push eax
call fcn.10003a4e
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov bl, al
neg bl
push 0
push 1
sbb bl, bl
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.10001805
add bl, 1
jne 0x100057bc
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.10050900
add esp, 0xc
mov dword [ebp - 0xa0], ebx
jmp 0x100056f5
cmp dword [ebp - 0xa0], 0
jbe 0x10005712
push dword [ebp - 0xa0]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0xf
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.100018ee
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.1003510e
push dword [ebp - 0x9c]
mov byte [ebp - 4], 9
push eax
call fcn.10003a4e
pop ecx
pop ecx
mov bl, al
lea ecx, [ebp - 0x94]
push 0
neg bl
push 1
sbb bl, bl
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.10001805
add bl, 1
jne 0x100057bc
push 0x100891e0
lea ecx, [ebp - 0x64]
call fcn.100017d6
push dword [ebp - 0x9c]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xa
push eax
call fcn.10003a4e
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x64]
push 1
sbb bl, bl
call fcn.10001805
add bl, 1
jne 0x100057bc
xor ebx, ebx
push ebx
lea eax, [ebp - 0xa0]
push eax
push 0x3c
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005634
push 0x100891e0
lea ecx, [ebp - 0x64]
call fcn.100017d6
push dword [ebp - 0x9c]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xb
push eax
call fcn.10003a4e
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x64]
push 1
sbb bl, bl
call fcn.10001805
add bl, 1
jne 0x100057bc
mov ebx, dword [ebp - 0x9c]
mov byte [ebp - 0x95], 1
jmp 0x10005784
mov esi, dword [ebp - 0xa4]
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x1000576f
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.open_attachment_failed:__s__d
call fcn.1002f7ab
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.1000391f
lea ecx, [ebp - 0xa8]
call fcn.1000657a
mov eax, dword [ebp - 0xa8]
cmp eax, edi
jne 0x10005469
mov dl, byte [ebp - 0x95]
mov al, dl
call fcn.1004e2e0
ret 8
lea ecx, [ebp - 0xac]
call fcn.1000391f
xor al, al
jmp 0x100057b4