Function at 0x566970
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x170
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x174]
push ebx
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x184]
cmp dword [eax + 0x18], 0x10
push esi
push edi
jb 0x5669a5
mov eax, dword [eax + 4]
jmp 0x5669a8
add eax, 4
call fcn.00566350
mov ebx, eax
test ebx, ebx
jbe 0x566b02
push ebx
push 4
mov ebp, 1
lea ecx, [esp + 0x78]
push ebp
push ecx
mov byte [esp + 0x84], 0
call fcn.00566450
add esp, 0x10
mov edi, str.RIFF
lea esi, [esp + 0x70]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x566b02
push ebx
push ebp
lea eax, [esp + 0x20]
push 4
push eax
call fcn.00566450
push ebx
push 4
lea ecx, [esp + 0x88]
push ebp
push ecx
call fcn.00566450
add esp, 0x20
mov edi, str.WAVE
lea esi, [esp + 0x70]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x566b02
mov esi, ebx
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x5622
mov byte [esp + 0x13], dl
call fcn.00566490
test eax, eax
jne 0x566b02
push ebx
push 4
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.00566450
push ebx
push ebp
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.00566450
add esp, 0x20
test eax, eax
je 0x566b02
push ebx
call fcn.00566420
add esp, 4
mov edi, str.fmt
lea esi, [esp + 0x70]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x20], eax
jne 0x566b1f
push ebx
push ebp
lea eax, [esp + 0x24]
push 2
push eax
call fcn.00566450
push ebx
push ebp
lea ecx, [esp + 0x50]
push 2
push ecx
call fcn.00566450
push ebx
push ebp
lea edx, [esp + 0x64]
push 4
push edx
call fcn.00566450
push ebx
push ebp
lea eax, [esp + 0xa4]
push 4
push eax
call fcn.00566450
add esp, 0x40
push ebx
push ebp
lea ecx, [esp + 0x70]
push 2
push ecx
call fcn.00566450
push ebx
push ebp
lea edx, [esp + 0x4c]
push 2
push edx
call fcn.00566450
add esp, 0x20
cmp word [esp + 0x1c], bp
je 0x566c43
xor al, al
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00624940
add esp, 0x170
ret 0xc
mov edi, str.dep
lea esi, [esp + 0x70]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x566c09
push ebx
push ebp
lea ecx, [esp + 0x1c]
push 2
push ecx
call fcn.00566450
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp ax, 0xff
jbe 0x566b5b
mov eax, 0xff
mov dword [esp + 0x14], eax
movzx edx, ax
push ebx
push edx
lea eax, [esp + 0x80]
push ebp
push eax
call fcn.00566450
movzx ecx, word [esp + 0x24]
push ebx
push ebp
lea edx, [esp + 0x3c]
push 8
push edx
mov byte [esp + ecx + 0x98], 0
call fcn.00566450
add esp, 0x20
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x50], al
lea eax, [esp + 0x78]
mov dword [esp + 0x64], 0xf
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x566bb0
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x54]
call fcn.00402300
lea edi, [esp + 0x44]
lea ecx, [esp + 0x4c]
call fcn.00567c90
cmp dword [esp + 0x64], 0x10
jb 0x566beb
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0062493b
add esp, 4
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x48]
jne 0x566b02
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x44]
jne 0x566b02
jmp 0x566c43
mov edi, str.xor
lea esi, [esp + 0x70]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x566c2f
push ebx
push ebp
lea eax, [esp + 0x1b]
push ebp
push eax
call fcn.00566450
add esp, 0x10
jmp 0x566c43
mov edi, str.data
lea esi, [esp + 0x70]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x566c69
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea edi, [ecx + eax]
xor esi, esi
call fcn.005663f0
mov esi, ebx
call fcn.00566490
test eax, eax
je 0x566a4e
jmp 0x566b02
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0x40]
mov dword [eax + edx*4 + 0x2008], ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov word [esp + 0x26], ax
movzx eax, ax
mov edi, dword [esp + 0x3c]
mov word [esp + 0x24], bp
mov ebp, dword [esp + 0x34]
movzx edx, bp
imul eax, edx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x188]
sar eax, 3
mov word [esp + 0x30], ax
movzx eax, ax
imul eax, edi
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x54], eax
mov esi, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], edi
lea edi, [ecx + edx*4 + 4]
push 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x3094]
push edi
lea edx, [esp + 0x54]
mov word [esp + 0x3a], bp
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x58], 0x80ea
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x566d3c
push ebx
call fcn.005663b0
add esp, 4
jmp 0x566b02
mov eax, dword [edi]
mov ecx, dword [eax]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x24]
push edx
push esi
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
push ebx
jne 0x566d2f
mov ecx, dword [esp + 0x18]
push esi
push 1
push ecx
call fcn.00566450
push ebx
mov ebp, eax
call fcn.005663b0
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x566d92
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
xor byte [eax + ecx], dl
add eax, 1
cmp eax, esi
jl 0x566d80
mov ecx, dword [esp + 0x20]
mov edi, dword [edi]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
push 0
push 0
push ecx
push edx
push edi
call eax
test eax, eax
jne 0x566b02
cmp ebp, esi
sete al
jmp 0x566b04