Function at 0x10004906
Capabilities:
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x1005cf71
call fcn.100420aa
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebp - 0x84], ebx
test eax, eax
jne 0x10004934
mov al, 1
jmp 0x10004ca2
lea eax, [ebx + 0xe0]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov byte [ebp - 0x4d], 0
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], eax
jmp 0x10004c89
lea esi, [ebp - 0x64]
call fcn.10016265
cmp dword [eax + 0x34], 8
jb 0x10004974
mov eax, dword [eax + 0x20]
jmp 0x10004977
add eax, 0x20
push eax
call fcn.100048cc
mov edi, eax
pop ecx
mov dword [ebp - 0x54], edi
and dword [ebp - 4], 0
test edi, edi
je 0x10004c4a
cmp edi, 0xffffffff
je 0x10004c4a
add ebx, 0xa8
push ebx
lea eax, [ebp - 0xa8]
push 0x10063bac
push eax
call fcn.10007764
add esp, 0xc
push 0x100639e8
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.100077af
add esp, 0xc
push dword [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.10003097
mov bl, al
pop ecx
neg bl
pop ecx
sbb bl, bl
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x80]
inc bl
call fcn.10001e5b
push esi
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
push str.Content_Type:_text_plain_r_n
lea ecx, [ebp - 0x80]
call fcn.10001976
push dword [ebp - 0x58]
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 3
call fcn.10003097
pop ecx
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x80]
inc bl
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
push str.Content_Transfer_Encoding:_base64_r_n
lea ecx, [ebp - 0x80]
call fcn.10001976
push dword [ebp - 0x58]
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 4
call fcn.10003097
pop ecx
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x80]
inc bl
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
lea esi, [ebp - 0x64]
call fcn.10016265
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10004716
push eax
lea eax, [ebp - 0x80]
push str.Content_Disposition:_attachment__filename_
push eax
mov byte [ebp - 4], 5
call fcn.10007764
add esp, 0xc
push str.__r_n_r_n
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 6
call fcn.100077af
add esp, 0xc
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
call fcn.10003097
mov bl, al
pop ecx
neg bl
pop ecx
sbb bl, bl
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0xa8]
inc bl
call fcn.10001e5b
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.10001e5b
push esi
push 1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
push 0x3b
lea eax, [ebp - 0x4b]
push esi
push eax
mov byte [ebp - 0x4c], bl
call fcn.10045640
add esp, 0xc
push esi
lea eax, [ebp - 0x5c]
push eax
push 0x3c
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x10004bfc
cmp dword [ebp - 0x5c], esi
jbe 0x10004c04
push dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0xa8]
call fcn.10001952
lea ecx, [ebp - 0xc4]
push ecx
mov byte [ebp - 4], 8
call fcn.1002a099
pop ecx
push dword [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
call fcn.10003097
mov bl, al
pop ecx
neg bl
pop ecx
sbb bl, bl
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0xc4]
inc bl
call fcn.10001e5b
push esi
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
push 0x100639e8
lea ecx, [ebp - 0x80]
call fcn.10001976
push dword [ebp - 0x58]
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xa
call fcn.10003097
pop ecx
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x80]
inc bl
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
push esi
lea eax, [ebp - 0x5c]
push eax
push 0x3c
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10004b3f
push 0x100639e8
lea ecx, [ebp - 0x80]
call fcn.10001976
push dword [ebp - 0x58]
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xb
call fcn.10003097
pop ecx
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x80]
inc bl
mov byte [ebp - 4], 0
call fcn.10001e5b
test bl, bl
jne 0x10004caa
mov ebx, dword [ebp - 0x84]
mov byte [ebp - 0x4d], 1
jmp 0x10004c75
lea esi, [ebp - 0x64]
call fcn.10016265
cmp dword [eax + 0x34], 8
jb 0x10004c5d
mov esi, dword [eax + 0x20]
jmp 0x10004c60
lea esi, [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.open_attachment_failed:__s__d
call fcn.10029b5d
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
call fcn.10002f69
lea esi, [ebp - 0x64]
call fcn.10006a20
lea edi, [ebp - 0x8c]
lea esi, [ebp - 0x64]
call fcn.1001a3e4
test al, al
je 0x10004961
mov al, byte [ebp - 0x4d]
call fcn.1004212d
ret 4
lea eax, [ebp - 0x54]
call fcn.10002f69
xor al, al
jmp 0x10004ca2