Function at 0x4e8ff0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, edx
cmp dword [esi + 0x14], 0
mov edi, ecx
mov dword [ebp - 0x18], edi
je 0x4e907e
mov eax, dword [ebp + 8]
cmp eax, 0x100
jae 0x4e907e
mov ecx, dword [edi + eax*4 + 0x2008]
mov eax, dword [edi + eax*4 + 4]
push 0
push 0
mov dword [ebp - 0x14], ecx
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push eax
call edx
test eax, eax
jne 0x4e907e
cmp dword [esi + 0x18], 0x10
jb 0x4e904c
mov esi, dword [esi + 4]
jmp 0x4e904f
add esi, 4
push 0x5b7198
push esi
call fcn.0056cd31
mov esi, eax
add esp, 8
test esi, esi
ja 0x4e9089
mov eax, dword [ebp + 8]
mov edi, dword [edi + eax*4 + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x4c]
push 0
push 0
push edx
push eax
push edi
call ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push esi
push 4
add edx, 0x24
push 1
push str.RIFF
mov dword [ebp - 8], edx
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.0056b245
push esi
push 4
push 1
push str.WAVE
call fcn.0056b245
mov ecx, dword [ebp + 8]
mov eax, dword [edi + ecx*4 + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
add esp, 0x30
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push eax
call edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00568c31
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
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 [ecx + edx*4 + 4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push edx
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x30], 1
movzx edx, word [edi + 2]
mov dword [ebp - 0x38], edx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
movzx eax, word [edi + 0xe]
mov dword [ebp - 0x34], 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 [ebp - 0x2c], eax
movzx eax, ax
imul eax, ecx
push edi
mov dword [ebp - 0x28], eax
call fcn.00569095
push esi
push 4
push 1
push str.fmt
mov dword [ebp - 8], 0x10
call fcn.0056b245
push esi
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.0056b245
push esi
push 1
lea edx, [ebp - 0x30]
push 2
push edx
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 0x38]
push 2
push eax
call fcn.0056b245
add esp, 0x44
push esi
push 1
lea ecx, [ebp - 0x24]
push 4
push ecx
call fcn.0056b245
push esi
push 1
lea edx, [ebp - 0x28]
push 4
push edx
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.0056b245
push esi
push 1
lea ecx, [ebp - 0x34]
push 2
push ecx
call fcn.0056b245
xor eax, eax
add esp, 0x40
lea edi, [ebp - 0x40]
mov ecx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.004e8fa0
movzx eax, word [ebx + 0x14]
push esi
movzx edx, ax
push 4
add edx, 0xa
push 1
push str.dep
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], edx
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.0056b245
push esi
push 1
lea ecx, [ebp - 0x1c]
push 2
push ecx
call fcn.0056b245
add esp, 0x30
cmp dword [ebx + 0x18], 0x10
jb 0x4e922b
mov ebx, dword [ebx + 4]
jmp 0x4e922e
add ebx, 4
movzx edx, word [ebp - 0x1c]
push esi
push edx
push 1
push ebx
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 0x40]
push 8
push eax
call fcn.0056b245
push esi
push 4
push 1
push str.xor
mov dword [ebp - 8], 1
mov byte [ebp - 1], 0xf7
call fcn.0056b245
push esi
push 1
lea ecx, [ebp - 8]
push 4
push ecx
call fcn.0056b245
add esp, 0x40
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.0056b245
xor eax, eax
add esp, 0x10
cmp dword [ebp - 0xc], eax
jbe 0x4e92a1
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
xor byte [eax + ecx], dl
add eax, 1
cmp eax, dword [ebp - 0xc]
jb 0x4e9290
push esi
push 4
push 1
push str.data
call fcn.0056b245
push esi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0056b245
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push esi
push ecx
push 1
push edx
call fcn.0056b245
push esi
call fcn.0056b4f2
mov ecx, dword [ebp - 0xc]
add esp, 0x34
xor eax, eax
test ecx, ecx
jbe 0x4e92f3
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
xor byte [eax + ecx], dl
mov ecx, dword [ebp - 0xc]
add eax, 1
cmp eax, ecx
jb 0x4e92e0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
call edx
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8