Function at 0x603ef5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x90]
add edx, 0x6c
mov dword [ebp - 0x20], edx
mov ebx, dword [edx + 0x4c]
test ebx, ebx
jne 0x603ef5ea
mov edi, dword [edx + 0x50]
test edi, edi
je 0x603efa56
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, dword [edx + 0x54]
add ebx, ecx
test esi, esi
je 0x603ef621
nop
lea esi, [esi]
test byte [esi + 0x14], 2
jne 0x603efa49
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x24]
cmp ebx, eax
jb 0x603ef61a
add eax, edi
cmp ebx, eax
jb 0x603ef642
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x603ef600
mov eax, dword [ebp + 0xc]
push eax
push 0x4c
push 1
push 0x603ef330
call sub.msvcrt.dll_fwrite
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x603ef621
push ebx
mov eax, dword [esi]
push eax
mov eax, dword [ebp + 0xc]
push 0x603ef390
push eax
call fcn.6041d180
add esp, 0xc
mov eax, dword [esi + 0x18]
sub ebx, eax
mov eax, dword [esi]
push eax
sub edi, ebx
mov eax, dword [ebp + 0xc]
push 0x603ef3d0
mov dword [ebp - 0x18], ebx
push eax
call fcn.6041d180
mov ebx, dword [ebp + 0xc]
push ebx
push 0x78
push 1
push 0x603ef410
call sub.msvcrt.dll_fwrite
add esp, 0x14
mov ebx, dword [ebp - 0x18]
add ebx, edi
push ebx
call sym.exchndl.dll_bfd_malloc
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x603ef638
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push 0
push eax
push esi
push ecx
call sym.exchndl.dll_bfd_get_section_contents
add esp, 0x20
xor edx, edx
test eax, eax
je 0x603ef638
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], 0
mov edx, dword [edx]
sub eax, edx
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
jae 0x603ef874
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov edx, dword [ebp - 0x18]
add eax, edx
push ebx
mov ebx, dword [ebp + 0xc]
push eax
push 0x603ef489
push ebx
call fcn.6041d180
mov edx, dword [ebp + 8]
pop ecx
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x54]
push edx
call dword [eax + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 4
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 8
mov dword [esp], eax
call dword [edx + 0x28]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 0xc
mov dword [esp], eax
call dword [edx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 0x10
mov dword [esp], eax
call dword [edx + 0x28]
add esp, 0xc
mov dword [ebp - 0x30], eax
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push ebx
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push 0x603ef4b0
push eax
call fcn.6041d180
mov eax, dword [ebp - 0x24]
add esp, 0x20
test eax, eax
jne 0x603ef79d
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x603ef874
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x2c]
add eax, ebx
mov ecx, dword [ebp - 0x14]
sub eax, ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
push 0x603ef4cf
push eax
call fcn.6041d180
mov eax, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
je 0x603ef9ca
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0
push ebx
push 0x25
push 1
push 0x603ef4f0
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x30], edx
je 0x603ef8e0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x54]
test ebx, ebx
je 0x603ef844
test byte [ebx + 0x14], 2
jne 0x603efa34
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x24]
cmp ecx, eax
jb 0x603ef83d
add eax, edx
cmp ecx, eax
jb 0x603ef885
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x603ef823
mov eax, dword [ebp + 0xc]
push eax
push 0x4a
push 1
push 0x603ef530
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
add eax, 0x14
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x54], eax
jb 0x603ef6e8
sub esp, 0xc
mov edi, dword [ebp - 0x10]
push edi
call sub.msvcrt.dll_free
jmp 0x603ef633
test ebx, ebx
je 0x603ef844
cmp ebx, esi
je 0x603efa1e
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x48]
sub esp, 0xc
sub eax, ecx
mov edx, dword [ebp - 0x30]
sub edx, eax
push edi
mov dword [ebp - 0x40], edx
call sym.exchndl.dll_bfd_malloc
add esp, 0x10
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x603ef859
sub esp, 0xc
mov edx, dword [ebp - 0x40]
push edi
push edx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call sym.exchndl.dll_bfd_get_section_contents
add esp, 0x20
test eax, eax
je 0x603efa0d
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], edi
jae 0x603ef9c3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
add eax, edx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
sub esp, 0xc
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x50]
add eax, ecx
push eax
call dword [edx + 0x28]
add esp, 0x10
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x603ef9c3
test eax, eax
js 0x603ef9ed
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x10]
sub esp, 0xc
mov eax, dword [edx + 4]
add ebx, ecx
mov edx, dword [ebp - 0x14]
sub ebx, edx
push ebx
add ebx, 2
call dword [eax + 0x34]
mov dword [esp], ebx
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
push 0x603ef57b
push eax
call fcn.6041d180
add esp, 0x20
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x603ef9a1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x603ef9a1
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x30], eax
je 0x603ef9a1
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x40]
sub esp, 0xc
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x3c]
add edx, ebx
add edx, ecx
push edx
call dword [eax + 0x28]
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
push 0x603ef58b
push eax
call fcn.6041d180
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push ecx
push 0xa
call sub.msvcrt.dll_fputc
mov edx, dword [ebp - 0x38]
add edx, 4
add esp, 0x10
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], edi
jb 0x603ef8fb
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x603ef9dc
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0xa
call sub.msvcrt.dll_fputc
jmp 0x603ef856
sub esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
jmp 0x603ef9ca
and eax, 0x7fffffff
mov ebx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 0x603ef592
push ebx
call fcn.6041d180
add esp, 0x10
jmp 0x603ef95c
sub esp, 0xc
mov ebx, dword [ebp - 0x3c]
push ebx
call sub.msvcrt.dll_free
jmp 0x603ef856
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub eax, ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], eax
jmp 0x603ef8e0
push eax
push 0x603ef5a7
push 0x4b9
push 0x603ef5b6
call sym.exchndl.dll__bfd_abort
push edx
push 0x603ef5a7
push 0x428
jmp 0x603efa3f
push esi
push esi
push 0x603ee4de
push eax
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
mov edx, 1
mov esi, eax
test eax, eax
je 0x603ef638
mov ebx, dword [eax + 0x18]
test byte [eax + 0x14], 2
jne 0x603efa93
mov edi, dword [eax + 0x24]
mov edx, 1
test edi, edi
je 0x603ef638
jmp 0x603ef646
push ebx
push 0x603ef5a7
push 0x41f
jmp 0x603efa3f