Function at 0x570680
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 0x5706d2
cmp dword [ebx + 0x20], edi
jne 0x5706d2
mov esi, dword [esp + 0x12c]
push esi
push ebx
call fcn.0056e870
add esp, 8
test eax, eax
jne 0x5706d9
lea eax, [esi + 0x3f3e]
mov dword [ebx + 0x20], 0x45
mov dword [ebx + 0x3e], eax
mov dword [esp + 0x10], 1
jmp 0x5706d9
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 0x57072a
cmp word [esi + 0xdf4], 0xffff
mov ax, word [esi + 0xdf2]
jne 0x57070c
mov word [esi + 0xdf4], ax
jmp 0x570715
cmp ax, word [esi + 0xdf6]
je 0x570723
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 0x5708f8
cmp dword [esi + 0xe0c], edi
jne 0x5708f8
push esi
call fcn.0056d240
add esp, 4
cmp eax, ebp
jge 0x57077e
mov edx, dword [esp + 0x128]
push esi
push edx
call fcn.0056d280
add esp, 8
cmp eax, edi
jne 0x570a75
inc ebp
push ebp
call fcn.0057ca98
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x5708db
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 0x57083b
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 0x57085f
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 0x5708b3
cmp dword [esp + 0x14], esi
jne 0x5708b3
push ebp
call fcn.0057c9af
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x570a49
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 0x5708c2
mov dword [ebx + 0x3e], 0
push ebp
call fcn.0057c9af
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp dword [esp + 0x10], edi
je 0x570a70
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.0056cab0
add esp, 0x10
test eax, eax
je 0x570929
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.0057ca98
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x570a67
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 0x5709e6
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 0x570a0a
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 0x570a56
cmp dword [esp + 0x14], esi
jne 0x570a56
push ebp
call fcn.0057c9af
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x570a49
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 0x5708c2
jmp 0x5708bb
cmp dword [esp + 0x10], edi
je 0x570a70
mov dword [ebx + 0x3e], edi
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret