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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov ecx, dword [ecx + 4]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push esi
movups xmm3, xmmword [ecx + 0x70]
push edi
movups xmm0, xmmword [ecx + 0x40]
movups xmm1, xmmword [ecx + 0x50]
movups xmm2, xmmword [ecx + 0x60]
movups xmm4, xmmword [ecx]
movups xmm5, xmmword [ecx + 0x10]
movups xmm6, xmmword [ecx + 0x20]
movups xmm7, xmmword [ecx + 0x30]
movaps xmmword [ebp - 0x20], xmm3
movups xmm3, xmmword [ecx + 0x80]
movaps xmmword [ebp - 0x70], xmm0
movaps xmmword [ebp - 0x30], xmm3
movups xmm3, xmmword [ecx + 0x90]
movaps xmmword [ebp - 0x60], xmm1
movaps xmmword [ebp - 0x40], xmm3
movups xmm3, xmmword [ecx + 0xa0]
mov ecx, dword [ebx + 0x10]
movaps xmmword [ebp - 0x10], xmm2
movaps xmmword [ebp - 0x50], xmm3
cmp ecx, 4
jb 0x1030414b
mov edi, edx
mov esi, ecx
sub edi, eax
shr esi, 2
jmp 0x1030402c
movaps xmm0, xmmword [ebp - 0x70]
movaps xmm1, xmmword [ebp - 0x60]
movaps xmm2, xmmword [ebp - 0x10]
movups xmm3, xmmword [eax + 0x10]
sub ecx, 4
pxor xmm3, xmm4
aesenc xmm3, xmm5
aesenc xmm3, xmm6
aesenc xmm3, xmm7
aesenc xmm3, xmm0
aesenc xmm3, xmm1
aesenc xmm3, xmm2
movups xmm2, xmmword [eax + 0x20]
aesenc xmm3, xmmword [ebp - 0x20]
aesenc xmm3, xmmword [ebp - 0x30]
pxor xmm2, xmm4
aesenc xmm2, xmm5
aesenc xmm2, xmm6
aesenc xmm2, xmm7
aesenc xmm2, xmm0
aesenc xmm2, xmm1
movups xmm1, xmmword [eax + 0x30]
aesenc xmm2, xmmword [ebp - 0x10]
aesenc xmm2, xmmword [ebp - 0x20]
pxor xmm1, xmm4
aesenc xmm1, xmm5
aesenc xmm1, xmm6
aesenc xmm2, xmmword [ebp - 0x30]
aesenc xmm3, xmmword [ebp - 0x40]
aesenc xmm1, xmm7
aesenc xmm1, xmm0
movups xmm0, xmmword [eax]
aesenc xmm1, xmmword [ebp - 0x60]
aesenc xmm1, xmmword [ebp - 0x10]
aesenc xmm1, xmmword [ebp - 0x20]
aesenc xmm1, xmmword [ebp - 0x30]
aesenc xmm2, xmmword [ebp - 0x40]
aesenclast xmm3, xmmword [ebp - 0x50]
aesenc xmm1, xmmword [ebp - 0x40]
aesenclast xmm2, xmmword [ebp - 0x50]
aesenclast xmm1, xmmword [ebp - 0x50]
pxor xmm0, xmm4
aesenc xmm0, xmm5
aesenc xmm0, xmm6
aesenc xmm0, xmm7
aesenc xmm0, xmmword [ebp - 0x70]
aesenc xmm0, xmmword [ebp - 0x60]
aesenc xmm0, xmmword [ebp - 0x10]
aesenc xmm0, xmmword [ebp - 0x20]
aesenc xmm0, xmmword [ebp - 0x30]
aesenc xmm0, xmmword [ebp - 0x40]
aesenclast xmm0, xmmword [ebp - 0x50]
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm3
movups xmmword [edi + eax + 0x20], xmm2
add eax, 0x40
movups xmmword [edx + 0x30], xmm1
add edx, 0x40
sub esi, 1
jne 0x10304020
test ecx, ecx
je 0x103041ab
movaps xmm1, xmmword [ebp - 0x70]
sub edx, eax
movaps xmm2, xmmword [ebp - 0x60]
movaps xmm3, xmmword [ebp - 0x10]
nop dword [eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm4
aesenc xmm0, xmm5
aesenc xmm0, xmm6
aesenc xmm0, xmm7
aesenc xmm0, xmm1
aesenc xmm0, xmm2
aesenc xmm0, xmm3
aesenc xmm0, xmmword [ebp - 0x20]
aesenc xmm0, xmmword [ebp - 0x30]
aesenc xmm0, xmmword [ebp - 0x40]
aesenclast xmm0, xmmword [ebp - 0x50]
movups xmmword [edx + eax - 0x10], xmm0
sub ecx, 1
jne 0x10304160
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc