Function at 0x563430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x40], ebx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x3c], eax
je 0x5634b3
cmp ecx, 0x100
jae 0x5634b3
mov edx, dword [ebx + ecx*4 + 0x1c08]
inc ecx
mov eax, dword [ebx + ecx*4]
lea edi, [ebx + ecx*4]
push 0
push 0
push 0
lea ebx, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov ecx, dword [eax]
push ebx
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], edi
push ebx
push edx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x5634b3
cmp dword [esi + 0x14], 0x10
jb 0x56348f
mov esi, dword [esi]
push 0x5d97f4
push esi
call fcn.005a94a9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5634be
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x4c]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x14]
push ebx
push 4
add eax, 0x24
push 1
push str.RIFF
mov dword [ebp - 8], eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.005aa485
push ebx
push 4
push 1
push str.WAVE
call fcn.005aa485
mov eax, dword [edi]
lea edx, [ebp - 0x18]
add esp, 0x30
mov ecx, dword [eax]
push edx
push 0
push 0
push eax
call dword [ecx + 0x14]
push dword [ebp - 0x18]
call fcn.0059b726
mov ecx, dword [ebp - 0x20]
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov word [edi + 0x10], 0
mov ecx, dword [ecx]
push 0
push dword [ebp - 0x18]
mov edx, dword [ecx]
push edi
push ecx
call dword [edx + 0x14]
mov dword [ebp - 0x24], 1
movzx edx, word [edi + 2]
mov eax, edx
mov dword [ebp - 0x28], eax
mov esi, dword [edi + 4]
mov dword [ebp - 0x2c], esi
movzx ecx, word [edi + 0xe]
mov eax, ecx
mov dword [ebp - 0x38], eax
imul eax, edx
push 0x12
push edi
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx ecx, ax
mov eax, ecx
imul ecx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
call fcn.0059b718
push ebx
push 4
push 1
push str.fmt
mov dword [ebp - 8], 0x10
call fcn.005aa485
push ebx
push 4
lea eax, [ebp - 8]
push 1
push eax
call fcn.005aa485
push ebx
push 1
push 2
lea eax, [ebp - 0x24]
push eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x28]
push 2
push eax
call fcn.005aa485
add esp, 0x48
lea eax, [ebp - 0x2c]
push ebx
push 1
push 4
push eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x34]
push 2
push eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x38]
push 2
push eax
call fcn.005aa485
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
add esp, 0x40
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
push eax
push esi
call fcn.0055fd50
movzx ecx, word [esi + 0x10]
push ebx
push 4
mov eax, ecx
add ecx, 0xa
push 1
push str.dep
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.005aa485
add esp, 0x30
cmp dword [esi + 0x14], 0x10
jb 0x56364c
mov esi, dword [esi]
movzx eax, word [ebp - 0x1c]
push ebx
push eax
push 1
push esi
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x48]
push 8
push eax
call fcn.005aa485
push ebx
push 4
push 1
push str.xor
mov dword [ebp - 8], 1
mov byte [ebp - 1], 0xf7
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.005aa485
add esp, 0x40
lea eax, [ebp - 1]
push ebx
push 1
push 1
push eax
call fcn.005aa485
xor edx, edx
add esp, 0x10
cmp dword [ebp - 0xc], edx
jbe 0x5636bf
nop dword [eax + eax]
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 1]
xor byte [ecx + edx], al
inc edx
cmp edx, dword [ebp - 0xc]
jb 0x5636b0
push ebx
push 4
push 1
push str.data
call fcn.005aa485
push ebx
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.005aa485
push ebx
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
call fcn.005aa485
push ebx
call fcn.005a93b7
mov edx, dword [ebp - 0xc]
add esp, 0x34
xor eax, eax
test edx, edx
je 0x563711
nop dword [eax]
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
xor byte [edx + eax], cl
inc eax
mov edx, dword [ebp - 0xc]
cmp eax, edx
jb 0x563700
mov eax, dword [ebp - 0x20]
push 0
push 0
push edx
mov eax, dword [eax]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
jne 0x5634b3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc