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

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
mov al, byte [ebx + 4]
push edi
xor edi, edi
test al, 1
mov dword [esp + 0x10], edi
je 0x567522
cmp dword [ebx + 0x20], edi
jne 0x567522
mov esi, dword [esp + 0x12c]
push esi
push ebx
call fcn.005656c0
add esp, 8
test eax, eax
jne 0x567529
lea eax, [esi + 0x3f3e]
mov dword [ebx + 0x20], 0x45
mov dword [ebx + 0x3e], eax
mov dword [esp + 0x10], 1
jmp 0x567529
mov esi, dword [esp + 0x12c]
mov edx, dword [ebx + 0x46]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_CharToOemA]
test byte [esi + 0xdf1], 0x80
je 0x56757a
cmp word [esi + 0xdf4], 0xffff
mov ax, word [esi + 0xdf2]
jne 0x56755c
mov word [esi + 0xdf4], ax
jmp 0x567565
cmp ax, word [esi + 0xdf6]
je 0x567573
mov word [esi + 0xdf6], ax
mov word [esi + 0xdfa], di
inc word [esi + 0xdfa]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
add eax, ecx
mov ecx, dword [ebx + 0x18]
lea ebp, [eax + ecx + 0x2e]
mov eax, dword [esi + 0x96]
cmp eax, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x567748
cmp dword [esi + 0xe0c], edi
jne 0x567748
push esi
call fcn.00563f00
add esp, 4
cmp eax, ebp
jge 0x5675ce
mov edx, dword [esp + 0x128]
push esi
push edx
call fcn.00563f40
add esp, 8
cmp eax, edi
jne 0x5678c5
inc ebp
push ebp
call fcn.005738e8
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x56772b
mov dword [ebp], 0x2014b50
mov ax, word [ebx]
mov word [ebp + 4], ax
mov cx, word [ebx + 2]
mov word [ebp + 6], cx
mov dx, word [ebx + 4]
mov word [ebp + 8], dx
mov ax, word [ebx + 6]
mov word [ebp + 0xa], ax
mov ecx, dword [ebx + 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0x10], edx
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebx + 0x14]
mov dword [ebp + 0x18], ecx
mov dx, word [ebx + 0x18]
mov word [ebp + 0x1c], dx
mov ax, word [ebx + 0x20]
mov word [ebp + 0x1e], ax
mov cx, word [ebx + 0x24]
mov word [ebp + 0x20], cx
mov dx, word [ebx + 0x28]
mov word [ebp + 0x22], dx
mov ax, word [ebx + 0x2a]
mov word [ebp + 0x24], ax
mov ecx, dword [ebx + 0x2e]
mov dword [ebp + 0x26], ecx
mov edx, dword [ebx + 0x32]
mov dword [ebp + 0x2a], edx
mov ecx, dword [ebx + 0x18]
mov eax, ecx
lea esi, [esp + 0x1c]
lea edi, [ebp + 0x2e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jbe 0x56768b
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x3e]
mov eax, ecx
lea edi, [edx + ebp + 0x2e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x5676af
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x42]
add edx, ebp
lea edi, [edx + eax + 0x2e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
mov edx, dword [ecx + 0x96]
push eax
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x567703
cmp dword [esp + 0x14], esi
jne 0x567703
push ebp
call fcn.005737ff
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x567899
pop edi
pop esi
mov dword [ebx + 0x3e], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x567712
mov dword [ebx + 0x3e], 0
push ebp
call fcn.005737ff
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp dword [esp + 0x10], edi
je 0x5678c0
mov dword [ebx + 0x3e], edi
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x128]
push esi
push ebp
push eax
push edi
call fcn.00563770
add esp, 0x10
test eax, eax
je 0x567779
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x110
ret
inc ebp
push ebp
call fcn.005738e8
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x5678b7
mov dword [ebp], 0x2014b50
mov cx, word [ebx]
mov word [ebp + 4], cx
mov dx, word [ebx + 2]
mov word [ebp + 6], dx
mov ax, word [ebx + 4]
mov word [ebp + 8], ax
mov cx, word [ebx + 6]
mov word [ebp + 0xa], cx
mov edx, dword [ebx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebx + 0x14]
mov dword [ebp + 0x18], edx
mov ax, word [ebx + 0x18]
mov word [ebp + 0x1c], ax
mov cx, word [ebx + 0x20]
mov word [ebp + 0x1e], cx
mov dx, word [ebx + 0x24]
mov word [ebp + 0x20], dx
mov ax, word [ebx + 0x28]
mov word [ebp + 0x22], ax
mov cx, word [ebx + 0x2a]
mov word [ebp + 0x24], cx
mov edx, dword [ebx + 0x2e]
mov dword [ebp + 0x26], edx
mov eax, dword [ebx + 0x32]
mov dword [ebp + 0x2a], eax
mov ecx, dword [ebx + 0x18]
mov edx, ecx
lea esi, [esp + 0x1c]
lea edi, [ebp + 0x2e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jbe 0x567836
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x3e]
mov edx, ecx
lea edi, [eax + ebp + 0x2e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x56785a
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x42]
add eax, ebp
lea edi, [eax + edx + 0x2e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x128]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
mov eax, dword [edx]
push ecx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5678a6
cmp dword [esp + 0x14], esi
jne 0x5678a6
push ebp
call fcn.005737ff
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x567899
mov dword [ebx + 0x3e], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x567712
jmp 0x56770b
cmp dword [esp + 0x10], edi
je 0x5678c0
mov dword [ebx + 0x3e], edi
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret