Function at 0x5c1c40
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 0x5c1c92
cmp dword [ebx + 0x20], edi
jne 0x5c1c92
mov esi, dword [esp + 0x12c]
push esi
push ebx
call fcn.005bfe30
add esp, 8
test eax, eax
jne 0x5c1c99
lea eax, [esi + 0x3f3e]
mov dword [ebx + 0x20], 0x45
mov dword [ebx + 0x3e], eax
mov dword [esp + 0x10], 1
jmp 0x5c1c99
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 0x5c1cea
cmp word [esi + 0xdf4], 0xffff
mov ax, word [esi + 0xdf2]
jne 0x5c1ccc
mov word [esi + 0xdf4], ax
jmp 0x5c1cd5
cmp ax, word [esi + 0xdf6]
je 0x5c1ce3
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 0x5c1eb8
cmp dword [esi + 0xe0c], edi
jne 0x5c1eb8
push esi
call fcn.005be6f0
add esp, 4
cmp eax, ebp
jge 0x5c1d3e
mov edx, dword [esp + 0x128]
push esi
push edx
call fcn.005be730
add esp, 8
cmp eax, edi
jne 0x5c2035
inc ebp
push ebp
call fcn.005ce37a
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x5c1e9b
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 0x5c1dfb
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 0x5c1e1f
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 0x5c1e73
cmp dword [esp + 0x14], esi
jne 0x5c1e73
push ebp
call fcn.005ce291
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x5c2009
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 0x5c1e82
mov dword [ebx + 0x3e], 0
push ebp
call fcn.005ce291
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp dword [esp + 0x10], edi
je 0x5c2030
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.005bdf60
add esp, 0x10
test eax, eax
je 0x5c1ee9
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.005ce37a
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x5c2027
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 0x5c1fa6
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 0x5c1fca
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 0x5c2016
cmp dword [esp + 0x14], esi
jne 0x5c2016
push ebp
call fcn.005ce291
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x5c2009
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 0x5c1e82
jmp 0x5c1e7b
cmp dword [esp + 0x10], edi
je 0x5c2030
mov dword [ebx + 0x3e], edi
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret