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

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
mov ecx, dword [ebx + 0x46]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_CharToOemA]
mov esi, dword [esp + 0x124]
push esi
cmp dword [esi + 0x96], 0xffffffff
jne 0x5c224f
mov edx, dword [esi + 0xda8]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
neg edx
sbb edx, edx
and edx, 0xc
add edx, ecx
lea ecx, [edx + eax + 0x1e]
mov edx, dword [esp + 0x124]
push ecx
push edx
push ebx
call fcn.005bebd0
add esp, 0x10
test eax, eax
je 0x5c215e
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, 0x108
ret
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
lea edx, [eax + ecx + 0x1f]
push edx
call fcn.005cec99
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5c2383
mov dword [ebp], 0x4034b50
mov ax, word [ebx + 2]
mov word [ebp + 4], ax
mov cx, word [ebx + 0x2c]
mov word [ebp + 6], cx
mov dx, word [ebx + 6]
mov word [ebp + 8], dx
mov eax, dword [ebx + 8]
mov dword [ebp + 0xa], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xe], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x12], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x16], eax
mov cx, word [ebx + 0x18]
mov word [ebp + 0x1a], cx
mov dx, word [ebx + 0x1c]
mov word [ebp + 0x1c], dx
mov ecx, dword [ebx + 0x18]
mov eax, ecx
lea esi, [esp + 0x14]
lea edi, [ebp + 0x1e]
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 + 0x1c]
test ecx, ecx
jbe 0x5c21f9
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x3a]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
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 [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
lea ecx, [edx + eax + 0x1e]
mov edx, dword [esp + 0x128]
push ecx
push ebp
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c2236
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
lea eax, [ecx + edx + 0x1e]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x5c236d
push ebp
call fcn.005cebb0
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
call fcn.005bf360
mov ecx, dword [esi + 0xda8]
mov edi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, edi
lea ecx, [ecx + edx + 0x1e]
cmp eax, ecx
jge 0x5c228d
mov edx, dword [esp + 0x120]
push esi
push edx
call fcn.005bf3a0
add esp, 8
test eax, eax
jne 0x5c2388
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
lea edx, [eax + ecx + 0x1f]
push edx
call fcn.005cec99
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5c2383
mov dword [ebp], 0x4034b50
mov ax, word [ebx + 2]
mov word [ebp + 4], ax
mov cx, word [ebx + 0x2c]
mov word [ebp + 6], cx
mov dx, word [ebx + 6]
mov word [ebp + 8], dx
mov eax, dword [ebx + 8]
mov dword [ebp + 0xa], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xe], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x12], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x16], eax
mov cx, word [ebx + 0x18]
mov word [ebp + 0x1a], cx
mov dx, word [ebx + 0x1c]
mov word [ebp + 0x1c], dx
mov ecx, dword [ebx + 0x18]
mov eax, ecx
lea esi, [esp + 0x14]
lea edi, [ebp + 0x1e]
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 + 0x1c]
test ecx, ecx
jbe 0x5c2328
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x3a]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
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 [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
lea ecx, [edx + eax + 0x1e]
mov edx, dword [esp + 0x12c]
push ecx
push ebp
mov eax, dword [edx + 0x96]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c2236
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
lea eax, [ecx + edx + 0x1e]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x5c2236
push ebp
call fcn.005cebb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret