Function at 0x603ff8c0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x64], 0
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [edx + 0x90]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x603ffaa2
push edi
push 0x11
push 1
push 0x603ff59a
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x90]
mov dword [ebp - 0x68], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x64], eax
jae 0x603ffaa2
mov eax, dword [esi]
mov edx, 0x603ff5ac
cmp eax, 4
je 0x603ff970
cmp eax, 4
ja 0x604001d0
mov edx, 0x603ff5b1
cmp eax, 1
je 0x603ff970
mov edx, 0x603ff5b6
cmp eax, 1
jb 0x603ff970
mov edx, 0x603ff5bb
cmp eax, 2
je 0x603ff970
mov edx, 0x603ff5c3
cmp eax, 3
je 0x603ff970
lea ebx, [ebp - 0x38]
push eax
mov eax, dword [esi]
push eax
push 0x603ff5ca
push ebx
call fcn.6041d130
mov edx, ebx
add esp, 0x10
lea esi, [esi]
push eax
push edx
push 0x603ff5d0
push edi
call fcn.6041d180
add esp, 0xc
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 8]
push eax
push edi
push ebx
call sym.exchndl.dll_bfd_fprintf_vma
push edi
push 9
push 1
push 0x603ff5de
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp + 8]
add esp, 0x1c
mov ecx, dword [esi + 0xc]
push ecx
push edi
push edx
call sym.exchndl.dll_bfd_fprintf_vma
push edi
push 9
push 1
push 0x603ff5e8
call sub.msvcrt.dll_fwrite
mov eax, dword [esi + 0x10]
add esp, 0x1c
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call sym.exchndl.dll_bfd_fprintf_vma
pop eax
mov eax, dword [esi + 0x1c]
push eax
call sym.exchndl.dll_bfd_log2
add esp, 0xc
push eax
push 0x603ff5f2
push edi
call fcn.6041d180
push edi
push 0x12
push 1
push 0x603ff600
call sub.msvcrt.dll_fwrite
mov eax, dword [esi + 0x14]
add esp, 0x1c
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call sym.exchndl.dll_bfd_fprintf_vma
push edi
push 9
push 1
push 0x603ff613
call sub.msvcrt.dll_fwrite
add esp, 0x1c
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
push ebx
push edi
push ecx
call sym.exchndl.dll_bfd_fprintf_vma
mov edx, dword [esi + 4]
test dl, 1
setne al
and eax, 0xff
dec eax
and eax, 0xffffffb5
add eax, 0x78
mov dword [esp], eax
test dl, 2
setne al
and eax, 0xff
dec eax
and eax, 0xffffffb6
add eax, 0x77
and edx, 4
push eax
setne al
and eax, 0xff
dec eax
and eax, 0xffffffbb
add eax, 0x72
push eax
push 0x603ff61d
push edi
call fcn.6041d180
mov eax, dword [esi + 4]
add esp, 0x20
and eax, 0xfffffff8
jne 0x604001b4
add esi, 0x20
push eax
push eax
push edi
push 0xa
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0x68]
inc eax
add esp, 0x10
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x68], eax
jb 0x603ff918
push eax
push eax
mov eax, dword [ebp + 8]
push 0x603ff62b
push eax
call sym.exchndl.dll_bfd_get_section_by_name
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x603ffc55
push edi
push 0x12
push 1
push 0x603ff634
call sub.msvcrt.dll_fwrite
mov esi, dword [ebx + 0x24]
pop eax
push esi
call sym.exchndl.dll_bfd_malloc
add esp, 0x10
test eax, eax
mov dword [ebp - 0x64], eax
je 0x603ffe46
sub esp, 0xc
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebp + 8]
push ecx
push 0
push eax
push ebx
push edx
call sym.exchndl.dll_bfd_get_section_contents
add esp, 0x20
test eax, eax
je 0x603ffe30
push eax
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call sym.exchndl.dll__bfd_elf_section_from_bfd_section
add esp, 0x10
mov edx, eax
cmp eax, 0xffffffff
je 0x603ffe30
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x64]
mov eax, dword [ecx + 0x90]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + edx*4]
xor edx, edx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov eax, dword [eax + 0x178]
mov eax, dword [eax + 0xd0]
mov dl, byte [eax + 6]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
mov eax, dword [ebx + 0x24]
add ecx, eax
mov dword [ebp - 0x74], ecx
cmp esi, ecx
jae 0x603ffc46
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [ebp - 0x7c]
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
je 0x603ffc46
mov dword [ebp - 0x80], 0
cmp eax, 0x1d
je 0x604001aa
cmp eax, 0x1d
ja 0x603fffaa
cmp eax, 0xe
je 0x603fffa0
cmp eax, 0xe
ja 0x603ffed8
mov edx, 0x603ff647
cmp eax, 7
je 0x603ffc00
cmp eax, 7
ja 0x603ffe84
mov edx, 0x603ff64c
cmp eax, 3
je 0x603ffc00
cmp eax, 3
ja 0x603ffe5e
cmp eax, 1
je 0x603ffe4d
mov edx, 0x603ff653
cmp eax, 2
je 0x603ffc00
mov ebx, dword [ebp - 0x60]
push eax
push ebx
lea ebx, [ebp - 0x58]
push 0x603ff5ca
push ebx
call fcn.6041d130
mov edx, ebx
add esp, 0x10
lea esi, [esi]
push ecx
push edx
push 0x603ff65c
push edi
call fcn.6041d180
mov eax, dword [ebp - 0x80]
add esp, 0x10
test eax, eax
jne 0x603ffe09
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 0x603ff5ca
push edi
call fcn.6041d180
pop eax
pop edx
push edi
push 0xa
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0x78]
add esi, eax
add esp, 0x10
cmp esi, dword [ebp - 0x74]
jb 0x603ffb66
sub esp, 0xc
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x90]
mov esi, dword [eax + 0x22c]
test esi, esi
je 0x603ffc72
mov ebx, dword [eax + 0x2a0]
test ebx, ebx
je 0x603ffc86
mov ecx, dword [eax + 0x230]
test ecx, ecx
je 0x603ffca4
mov edx, dword [eax + 0x2a4]
test edx, edx
jne 0x603ffca4
sub esp, 0xc
mov esi, dword [ebp + 8]
push esi
call sym.exchndl.dll__bfd_elf_slurp_version_tables
add esp, 0x10
xor edx, edx
test eax, eax
je 0x603ffcc1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + 0x22c]
test ebx, ebx
jne 0x603ffd4e
mov esi, dword [eax + 0x230]
test esi, esi
jne 0x603ffccb
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
push 0x15
push 1
push 0x603ff665
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x90]
mov esi, dword [eax + 0x2a4]
test esi, esi
je 0x603ffcbc
push ebx
mov ecx, dword [esi + 0x14]
push ecx
push 0x603ff67b
push edi
call fcn.6041d180
mov ebx, dword [esi + 0x18]
add esp, 0x10
test ebx, ebx
je 0x603ffd42
lea esi, [esi]
push edx
push edx
mov eax, dword [ebx + 0x10]
push eax
mov ax, word [ebx + 6]
and eax, 0xffff
push eax
mov ax, word [ebx + 4]
and eax, 0xffff
push eax
mov eax, dword [ebx]
push eax
push 0x603ff690
push edi
call fcn.6041d180
mov ebx, dword [ebx + 0x14]
add esp, 0x20
test ebx, ebx
jne 0x603ffd10
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x603ffcf0
jmp 0x603ffcbc
push edi
push 0x16
push 1
push 0x603ff6af
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x90]
mov esi, dword [eax + 0x2a0]
test esi, esi
je 0x603ffcb2
push ecx
push ecx
mov edx, dword [esi + 0x18]
push edx
mov eax, dword [esi + 8]
push eax
mov ax, word [esi + 2]
and eax, 0xffff
push eax
mov ax, word [esi + 4]
and eax, 0xffff
push eax
push 0x603ff6c6
push edi
call fcn.6041d180
mov eax, dword [esi + 0x20]
add esp, 0x20
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x603ffdc2
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x603ffd77
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x90]
jmp 0x603ffcb2
push eax
push eax
push edi
push 9
call sub.msvcrt.dll_fputc
mov eax, dword [esi + 0x20]
add esp, 0x10
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x603ffdfa
lea esi, [esi]
push eax
mov eax, dword [ebx + 8]
push eax
push 0x603ff6de
push edi
call fcn.6041d180
mov ebx, dword [ebx + 0xc]
add esp, 0x10
test ebx, ebx
jne 0x603ffde0
push eax
push eax
push edi
push 0xa
call sub.msvcrt.dll_fputc
add esp, 0x10
jmp 0x603ffdad
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x70]
push eax
push ebx
call sym.exchndl.dll_bfd_elf_string_from_elf_section
add esp, 0x10
test eax, eax
je 0x603ffe30
push ecx
push ecx
push edi
push eax
call fcn.6041d2a0
jmp 0x603ffc2b
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x603ffe46
sub esp, 0xc
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
xor edx, edx
jmp 0x603ffcc1
mov edx, 0x603ff6e2
mov dword [ebp - 0x80], 1
jmp 0x603ffc00
mov edx, 0x603ff6e9
cmp eax, 5
je 0x603ffc00
mov edx, 0x603ff6f0
cmp eax, 5
ja 0x603ffc00
mov edx, 0x603ff6f7
jmp 0x603ffc00
mov edx, 0x603ff6fc
cmp eax, 0xa
je 0x603ffc00
cmp eax, 0xa
ja 0x603ffeb2
mov edx, 0x603ff702
cmp eax, 8
je 0x603ffc00
mov edx, 0x603ff709
cmp eax, 9
jmp 0x603ffbe3
mov edx, 0x603ff711
cmp eax, 0xc
je 0x603ffc00
mov edx, 0x603ff716
cmp eax, 0xc
ja 0x603ffc00
mov edx, 0x603ff71b
jmp 0x603ffc00
mov edx, 0x603ff722
cmp eax, 0x15
je 0x603ffc00
cmp eax, 0x15
ja 0x603fff40
mov edx, 0x603ff728
cmp eax, 0x11
je 0x603ffc00
cmp eax, 0x11
ja 0x603fff1a
cmp eax, 0xf
je 0x603fff10
mov edx, 0x603ff72c
cmp eax, 0x10
jmp 0x603ffbe3
mov edx, 0x603ff735
jmp 0x603ffe52
mov edx, 0x603ff73b
cmp eax, 0x13
je 0x603ffc00
mov edx, 0x603ff742
cmp eax, 0x13
ja 0x603ffc00
mov edx, 0x603ff749
jmp 0x603ffc00
mov edx, 0x603ff74f
cmp eax, 0x19
je 0x603ffc00
cmp eax, 0x19
ja 0x603fff79
mov edx, 0x603ff75a
cmp eax, 0x17
je 0x603ffc00
mov edx, 0x603ff761
cmp eax, 0x17
ja 0x603ffc00
mov edx, 0x603ff76a
jmp 0x603ffc00
mov edx, 0x603ff772
cmp eax, 0x1b
je 0x603ffc00
mov edx, 0x603ff77f
cmp eax, 0x1b
ja 0x603ffc00
mov edx, 0x603ff78c
jmp 0x603ffc00
mov edx, 0x603ff797
jmp 0x603ffe52
cmp eax, 0x6ffffefc
je 0x604001a0
cmp eax, 0x6ffffefc
ja 0x604000a0
mov edx, 0x603ff79e
cmp eax, 0x6ffffdfb
je 0x603ffc00
cmp eax, 0x6ffffdfb
ja 0x60400034
mov edx, 0x603ff7a5
cmp eax, 0x21
je 0x603ffc00
cmp eax, 0x21
ja 0x60400005
mov edx, 0x603ff7b5
cmp eax, 0x1e
je 0x603ffc00
mov edx, 0x603ff7bb
cmp eax, 0x20
jmp 0x603ffbe3
mov edx, 0x603ff7c9
cmp eax, 0x6ffffdf9
je 0x603ffc00
mov edx, 0x603ff7d2
cmp eax, 0x6ffffdf9
ja 0x603ffc00
mov edx, 0x603ff7da
cmp eax, 0x6ffffdf8
jmp 0x603ffbe3
mov edx, 0x603ff7e3
cmp eax, 0x6ffffdfe
je 0x603ffc00
cmp eax, 0x6ffffdfe
ja 0x6040006a
mov edx, 0x603ff7eb
cmp eax, 0x6ffffdfc
je 0x603ffc00
mov edx, 0x603ff7f3
cmp eax, 0x6ffffdfd
jmp 0x603ffbe3
cmp eax, 0x6ffffefa
je 0x60400090
mov edx, 0x603ff7fd
cmp eax, 0x6ffffefa
ja 0x603ffe52
mov edx, 0x603ff806
cmp eax, 0x6ffffdff
jmp 0x603ffbe3
mov edx, 0x603ff80f
jmp 0x603ffe52
mov edx, 0x603ff816
cmp eax, 0x6ffffffb
je 0x603ffc00
cmp eax, 0x6ffffffb
ja 0x6040011c
mov edx, 0x603ff81e
cmp eax, 0x6ffffeff
je 0x603ffc00
cmp eax, 0x6ffffeff
ja 0x604000ed
mov edx, 0x603ff826
cmp eax, 0x6ffffefd
je 0x603ffc00
mov edx, 0x603ff82d
cmp eax, 0x6ffffefe
jmp 0x603ffbe3
mov edx, 0x603ff835
cmp eax, 0x6ffffff9
je 0x603ffc00
mov edx, 0x603ff83f
cmp eax, 0x6ffffff9
ja 0x603ffc00
mov edx, 0x603ff848
cmp eax, 0x6ffffff0
jmp 0x603ffbe3
mov edx, 0x603ff84f
cmp eax, 0x6fffffff
je 0x603ffc00
cmp eax, 0x6fffffff
ja 0x6040015d
mov edx, 0x603ff85a
cmp eax, 0x6ffffffd
je 0x603ffc00
mov edx, 0x603ff864
cmp eax, 0x6ffffffd
ja 0x603ffc00
mov edx, 0x603ff86c
jmp 0x603ffc00
mov edx, 0x603ff873
cmp eax, 0x7ffffffe
je 0x603ffc00
cmp eax, 0x7ffffffe
ja 0x60400189
cmp eax, 0x7ffffffd
jne 0x603ffbe5
mov edx, 0x603ff878
jmp 0x603ffe52
cmp eax, 0x7fffffff
jne 0x603ffbe5
mov edx, 0x603ff882
jmp 0x603ffe52
mov edx, 0x603ff889
jmp 0x603ffe52
mov edx, 0x603ff88f
jmp 0x603ffe52
push edx
push eax
push 0x603ff897
push edi
call fcn.6041d180
add esp, 0x10
jmp 0x603ffa7f
mov edx, 0x603ff89c
cmp eax, 6
je 0x603ff970
mov edx, 0x603ff8a1
cmp eax, 6
jb 0x603ff970
mov edx, 0x603ff8a7
cmp eax, 7
je 0x603ff970
mov edx, 0x603ff8ab
cmp eax, 0x6474e550
jmp 0x603ff953