Function at 0x561d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x6229a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x140], ecx
cmp dword [eax + 0x14], 0x10
jb 0x561d9d
mov eax, dword [eax]
push ebx
push esi
push edi
push 0x5d971c
push eax
call fcn.00563800
mov esi, eax
add esp, 8
mov dword [ebp - 0x160], esi
test esi, esi
je 0x562316
push esi
push 4
lea eax, [ebp - 0xc]
mov byte [ebp - 8], 0
push 1
push eax
call fcn.00563860
add esp, 0x10
lea eax, [ebp - 0xc]
mov ecx, str.RIFF
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x561e00
test dl, dl
je 0x561dfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x561e00
add eax, 2
add ecx, 2
test dl, dl
jne 0x561de0
xor eax, eax
jmp 0x561e05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x562316
push esi
push 1
lea eax, [ebp - 0x148]
push 4
push eax
call fcn.00563860
push esi
push 4
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00563860
add esp, 0x20
lea eax, [ebp - 0xc]
mov ecx, str.WAVE
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x561e57
test dl, dl
je 0x561e53
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x561e57
add eax, 2
add ecx, 2
test dl, dl
jne 0x561e37
xor eax, eax
jmp 0x561e5c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x562316
push esi
mov dword [ebp - 0x15c], 0x10
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x158], 0x5622
mov byte [ebp - 0x135], al
call fcn.005637d0
add esp, 4
test eax, eax
jne 0x562316
nop dword [eax]
push esi
push 4
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00563860
push esi
push 1
lea eax, [ebp - 0x148]
push 4
push eax
call fcn.00563860
add esp, 0x20
test eax, eax
je 0x562316
push esi
call fcn.00563900
add esp, 4
lea ecx, [ebp - 0xc]
mov edi, eax
mov edx, str.fmt
nop dword [eax]
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x561f00
test bl, bl
je 0x561efc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x561f00
add ecx, 2
add edx, 2
test al, al
jne 0x561ee0
xor eax, eax
jmp 0x561f05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x561f88
push esi
push 1
lea eax, [ebp - 0x144]
push 2
push eax
call fcn.00563860
push esi
push 1
lea eax, [ebp - 0x154]
push 2
push eax
call fcn.00563860
push esi
push 1
lea eax, [ebp - 0x158]
push 4
push eax
call fcn.00563860
push esi
push 1
lea eax, [ebp - 0x16c]
push 4
push eax
call fcn.00563860
add esp, 0x40
lea eax, [ebp - 0x150]
push esi
push 1
push 2
push eax
call fcn.00563860
push esi
push 1
lea eax, [ebp - 0x15c]
push 2
push eax
call fcn.00563860
add esp, 0x20
cmp word [ebp - 0x144], 1
jne 0x562316
jmp 0x562169
mov ecx, str.dep
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x561fb0
test dl, dl
je 0x561fac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x561fb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x561f90
xor eax, eax
jmp 0x561fb5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5620f0
push esi
push 1
lea eax, [ebp - 0x13c]
push 2
push eax
call fcn.00563860
mov eax, dword [ebp - 0x13c]
mov ebx, 0xff
cmp ax, bx
push esi
cmova eax, ebx
mov dword [ebp - 0x13c], eax
movzx eax, ax
push eax
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.00563860
movzx eax, word [ebp - 0x13c]
add esp, 0x20
cmp eax, 0x100
jae 0x562330
push esi
push 1
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x114]
push 8
push eax
call fcn.00563860
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x10c]
movlpd qword [ebp - 0x168], xmm0
add esp, 0x10
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x134], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x562058
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.00402b80
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0055fd50
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jb 0x5620c7
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5620bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56232b
push ecx
push edx
call fcn.0059b718
add esp, 8
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x164]
jne 0x562316
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x168]
jne 0x562316
jmp 0x562169
mov ecx, str.xor
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x562118
test dl, dl
je 0x562114
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x562118
add eax, 2
add ecx, 2
test dl, dl
jne 0x5620f8
xor eax, eax
jmp 0x56211d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x562137
push esi
push 1
lea eax, [ebp - 0x135]
push 1
push eax
call fcn.00563860
add esp, 0x10
jmp 0x562169
mov eax, str.data
lea ecx, [ebp - 0xc]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x562160
test dl, dl
je 0x56215c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x562160
add ecx, 2
add eax, 2
test dl, dl
jne 0x562140
xor eax, eax
jmp 0x562165
sbb eax, eax
or eax, 1
test eax, eax
je 0x562190
mov eax, dword [ebp - 0x148]
push 0
add eax, edi
push eax
push esi
call fcn.005638c0
push esi
call fcn.005637d0
add esp, 0x10
test eax, eax
je 0x561ea0
jmp 0x562316
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x14c]
mov ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x158]
mov dword [eax + ecx*4 + 0x1c08], ebx
mov eax, 1
mov word [ebp - 0x11c], ax
mov eax, dword [ebp - 0x154]
mov word [ebp - 0x11a], ax
movzx eax, ax
movzx ecx, si
imul eax, ecx
mov word [ebp - 0x10e], si
push 0
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x124], 0
cdq
and edx, 7
mov dword [ebp - 0x130], 0x14
add eax, edx
mov dword [ebp - 0x12c], 0x80ea
mov edx, dword [ebp - 0x14c]
sar eax, 3
inc edx
movzx eax, ax
mov word [ebp - 0x110], ax
imul eax, edi
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x2c94]
lea esi, [eax + edx*4]
push esi
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x562307
mov eax, dword [esi]
lea edx, [ebp - 0x150]
push 0
push 0
push 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x13c]
push edx
push ebx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x562307
mov esi, dword [ebp - 0x160]
push esi
push ebx
push 1
push dword [ebp - 0x13c]
call fcn.00563860
push esi
mov edi, eax
call fcn.00563790
add esp, 0x14
xor edx, edx
test ebx, ebx
jle 0x5622c4
nop dword [eax + eax]
mov ecx, dword [ebp - 0x13c]
mov al, byte [ebp - 0x135]
xor byte [ecx + edx], al
inc edx
cmp edx, ebx
jl 0x5622b0
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x140]
push 0
push 0
push dword [ebp - 0x150]
mov eax, dword [eax + ecx*4 + 4]
push dword [ebp - 0x13c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
jne 0x562316
cmp edi, ebx
jne 0x562316
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059b734
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x160]
push esi
call fcn.00563790
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059b734
mov esp, ebp
pop ebp
ret 8
call fcn.005a17d1
call fcn.0059c2eb
int3