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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
lea ecx, [eax + 0xf]
shr ecx, 4
and eax, 0xf
mov dword [ebp + 0x10], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
test ecx, ecx
je 0x1017917c
xor edx, edx
add ecx, 0xffffffff
mov dword [esp + 0x24], ecx
je 0x101790ba
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm2, xmmword [edx + eax]
movzx ecx, byte [edi]
mov edx, dword [esp + 0x18]
movaps xmm1, xmm2
lea eax, [ecx + 1]
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [ecx + 2]
add eax, eax
pand xmm0, xmmword [esi + eax*8]
pxor xmm1, xmm0
movups xmmword [edx], xmm1
mov cl, byte [edi]
movzx eax, byte [edi]
shr cl, 3
dec cl
and cl, 1
shl cl, 3
movzx edx, cl
mov byte [esp + 0x17], cl
lea ecx, [eax + 4]
add eax, 3
add ecx, ecx
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [esi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [esi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [esi + eax*8], xmm0
movzx eax, byte [edi]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
aesenc xmm0, xmmword [esi + eax*8 + 0x10]
movups xmmword [esi + edx*8 + 0x10], xmm0
movzx ecx, byte [edi]
mov eax, ecx
add eax, eax
pxor xmm2, xmmword [esi + eax*8]
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
mov al, byte [esp + 0x17]
aesenc xmm0, xmm2
movups xmmword [esi + edx*8], xmm0
mov edx, dword [esp + 0x2c]
mov byte [edi], al
mov eax, dword [esp + 0x18]
add eax, 0x10
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], eax
jne 0x10178fb0
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
shl edx, 4
add ecx, edx
mov dword [esp + 0x1c], edx
test eax, eax
je 0x1017912f
push eax
push ecx
lea eax, [esp + 0x54]
push eax
call fcn.101d7d20
movzx ecx, byte [edi]
movups xmm1, xmmword [esp + 0x58]
push dword [ebp + 0x10]
lea eax, [ecx + 1]
movaps xmmword [esp + 0x40], xmm1
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [ecx + 2]
add eax, eax
pand xmm0, xmmword [esi + eax*8]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x30]
pxor xmm1, xmm0
add eax, dword [esp + 0x34]
push eax
movups xmmword [esp + 0x64], xmm1
call fcn.101d7d20
add esp, 0x18
jmp 0x1017916d
movups xmm1, xmmword [ecx]
movzx ecx, byte [edi]
movaps xmmword [esp + 0x30], xmm1
lea eax, [ecx + 1]
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 4]
add eax, eax
pxor xmm1, xmmword [esi + eax*8]
lea eax, [ecx + 3]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x20]
add eax, eax
pand xmm0, xmmword [esi + eax*8]
pxor xmm1, xmm0
movups xmmword [edx + ecx], xmm1
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.1017a770
add esp, 0xc
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.101c1860
mov esp, ebp
pop ebp
ret