Function at 0x5c6d60
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
push edi
mov ebx, edx
je 0x5c6df0
mov edi, dword [esp + 0x5c]
cmp edi, 0x100
jae 0x5c6df0
mov eax, dword [ebp + edi*4 + 0x2008]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edi*4 + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push edx
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jne 0x5c6df0
cmp dword [esi + 0x18], 0x10
jb 0x5c6dbe
mov esi, dword [esi + 4]
jmp 0x5c6dc1
add esi, 4
push 0x6585d8
push esi
call fcn.0061ceb1
mov esi, eax
add esp, 8
test esi, esi
ja 0x5c6dfc
mov edx, dword [esp + 0x1c]
mov ebp, dword [ebp + edi*4 + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x4c]
push 0
push 0
push edx
push eax
push ebp
call ecx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
mov edx, dword [esp + 0x24]
push esi
push 4
add edx, 0x24
push 1
push str.RIFF
mov dword [esp + 0x28], edx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0061d3c8
push esi
push 4
push 1
push str.WAVE
call fcn.0061d3c8
mov eax, dword [ebp + edi*4 + 4]
mov ecx, dword [eax]
add esp, 0x30
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0060ae9b
mov edx, dword [esp + 0x60]
mov edi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
add esp, 4
mov word [edi + 0x10], ax
mov eax, dword [ebp + edx*4 + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 0
push edx
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [esp + 0x3c], 1
movzx edx, word [edi + 2]
mov dword [esp + 0x44], edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x30], ecx
movzx eax, word [edi + 0xe]
mov dword [esp + 0x40], eax
movzx eax, ax
movzx edx, dx
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx eax, ax
mov dword [esp + 0x38], eax
movzx eax, ax
imul eax, ecx
push edi
mov dword [esp + 0x38], eax
call fcn.0061c19a
push esi
push 4
push 1
push str.fmt
mov dword [esp + 0x2c], 0x10
call fcn.0061d3c8
push esi
push 4
push 1
lea ecx, [esp + 0x38]
push ecx
call fcn.0061d3c8
push esi
push 1
lea edx, [esp + 0x68]
push 2
push edx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x80]
push 2
push eax
call fcn.0061d3c8
add esp, 0x44
push esi
push 1
lea ecx, [esp + 0x38]
push 4
push ecx
call fcn.0061d3c8
push esi
push 1
lea edx, [esp + 0x4c]
push 4
push edx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x60]
push 2
push eax
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x78]
push 2
push ecx
call fcn.0061d3c8
xor eax, eax
add esp, 0x40
lea edi, [esp + 0x48]
mov ecx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.005c6d10
movzx eax, word [ebx + 0x14]
push esi
movzx edx, ax
push 4
add edx, 0xa
push 1
push str.dep
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x50]
push 2
push ecx
call fcn.0061d3c8
add esp, 0x30
cmp dword [ebx + 0x18], 0x10
jb 0x5c6fb7
mov ebx, dword [ebx + 4]
jmp 0x5c6fba
add ebx, 4
movzx edx, word [esp + 0x28]
push esi
push edx
push 1
push ebx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x60]
push 8
push eax
call fcn.0061d3c8
push esi
push 4
push 1
push str.xor
mov dword [esp + 0x48], 1
mov byte [esp + 0x47], 0xf7
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x50]
push 4
push ecx
call fcn.0061d3c8
add esp, 0x40
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0061d3c8
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x1c], eax
jbe 0x5c7034
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x17]
xor byte [eax + ecx], dl
add eax, 1
cmp eax, dword [esp + 0x1c]
jb 0x5c7020
push esi
push 4
push 1
push str.data
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.0061d3c8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push ecx
push 1
push edx
call fcn.0061d3c8
push esi
call fcn.0061cf36
mov ecx, dword [esp + 0x50]
add esp, 0x34
xor eax, eax
test ecx, ecx
jbe 0x5c7096
jmp 0x5c7080
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x17]
xor byte [eax + ecx], dl
mov ecx, dword [esp + 0x1c]
add eax, 1
cmp eax, ecx
jb 0x5c7080
mov eax, dword [esp + 0x5c]
mov ebp, dword [ebp + eax*4 + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [ebp]
push 0
push 0
push ecx
mov ecx, dword [edx + 0x4c]
push eax
push ebp
call ecx
pop edi
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x44
ret 8