Function at 0x560700
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 0xf]
shr ecx, 4
and esi, 0xf
mov dword [esp + 0x14], eax
mov dword [ebp + 0x10], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x56097c
xor edx, edx
add ecx, 0xffffffff
mov dword [esp + 0x28], ecx
je 0x56089b
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ecx
nop
movups xmm1, xmmword [edx + eax]
movzx ecx, byte [esi]
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [ecx + 2]
add eax, eax
pand xmm0, xmmword [edi + eax*8]
pxor xmm1, xmm0
movups xmmword [edx], xmm1
mov cl, byte [esi]
movzx eax, byte [esi]
shr cl, 3
dec cl
and cl, 1
shl cl, 3
movzx edx, cl
mov byte [esp + 0x13], cl
lea ecx, [eax + 4]
add eax, 3
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x13]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
mov edx, dword [esp + 0x2c]
mov byte [esi], al
mov eax, dword [esp + 0x14]
add eax, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], eax
jne 0x560790
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
shl edx, 4
add ecx, edx
mov dword [esp + 0x1c], edx
test esi, esi
je 0x560927
push esi
push ecx
lea eax, [esp + 0x38]
push eax
call fcn.005be280
mov eax, dword [esp + 0x24]
movups xmm1, xmmword [esp + 0x3c]
push esi
movzx ecx, byte [eax]
lea eax, [ecx + 1]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [ecx + 2]
add eax, eax
pand xmm0, xmmword [edi + eax*8]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
pxor xmm1, xmm0
add eax, dword [esp + 0x38]
push eax
movups xmmword [esp + 0x48], xmm1
call fcn.005be280
add esp, 0x18
nop dword [eax + eax]
mov byte [esp + esi + 0x30], 0
inc esi
cmp esi, 0x10
jb 0x560910
movups xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
jmp 0x56096a
movzx ecx, byte [eax]
mov eax, dword [esp + 0x20]
movups xmm1, xmmword [edx + eax]
lea eax, [ecx + 1]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x24]
add eax, eax
pand xmm0, xmmword [edi + eax*8]
pxor xmm1, xmm0
movaps xmmword [esp + 0x30], xmm1
movups xmmword [edx + ecx], xmm1
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00562560
add esp, 0xc
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.005bca10
mov esp, ebp
pop ebp
ret