Function at 0x4eae00
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 0x4eae8e
mov eax, dword [ebp + 8]
cmp eax, 0x100
jae 0x4eae8e
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 0x4eae8e
cmp dword [esi + 0x18], 0x10
jb 0x4eae5c
mov esi, dword [esi + 4]
jmp 0x4eae5f
add esi, 4
push 0x6106c4
push esi
call fcn.005b6041
mov esi, eax
add esp, 8
test esi, esi
ja 0x4eae99
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.005b428c
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.005b428c
push esi
push 4
push 1
push str.WAVE
call fcn.005b428c
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.005b25e7
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.005b28f2
push esi
push 4
push 1
push str.fmt
mov dword [ebp - 8], 0x10
call fcn.005b428c
push esi
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.005b428c
push esi
push 1
lea edx, [ebp - 0x30]
push 2
push edx
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x38]
push 2
push eax
call fcn.005b428c
add esp, 0x44
push esi
push 1
lea ecx, [ebp - 0x24]
push 4
push ecx
call fcn.005b428c
push esi
push 1
lea edx, [ebp - 0x28]
push 4
push edx
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.005b428c
push esi
push 1
lea ecx, [ebp - 0x34]
push 2
push ecx
call fcn.005b428c
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.004eadb0
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.005b428c
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.005b428c
push esi
push 1
lea ecx, [ebp - 0x1c]
push 2
push ecx
call fcn.005b428c
add esp, 0x30
cmp dword [ebx + 0x18], 0x10
jb 0x4eb03b
mov ebx, dword [ebx + 4]
jmp 0x4eb03e
add ebx, 4
movzx edx, word [ebp - 0x1c]
push esi
push edx
push 1
push ebx
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x40]
push 8
push eax
call fcn.005b428c
push esi
push 4
push 1
push str.xor
mov dword [ebp - 8], 1
mov byte [ebp - 1], 0xf7
call fcn.005b428c
push esi
push 1
lea ecx, [ebp - 8]
push 4
push ecx
call fcn.005b428c
add esp, 0x40
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.005b428c
xor eax, eax
add esp, 0x10
cmp dword [ebp - 0xc], eax
jbe 0x4eb0b1
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 0x4eb0a0
push esi
push 4
push 1
push str.data
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.005b428c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push esi
push ecx
push 1
push edx
call fcn.005b428c
push esi
call fcn.005b4539
mov ecx, dword [ebp - 0xc]
add esp, 0x34
xor eax, eax
test ecx, ecx
jbe 0x4eb103
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 0x4eb0f0
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