Function at 0x102353f
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x20
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
and eax, 0xfffffff0
je 0x10237ee
add eax, dword [esp + 0x24]
sub eax, 0x10
mov dword [esp + 0x28], eax
mov esi, dword [ecx + 0x1d4]
add esi, ecx
add ecx, dword [ecx + 0x1d0]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
test byte [0x10269e9], 0xff
jne 0x1023804
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax]
lea esp, [esp]
xor eax, dword [ecx]
xor ebx, dword [ecx + 4]
xor edx, dword [ecx + 8]
xor ebp, dword [ecx + 0xc]
lea ecx, [ecx + 0x10]
mov dword [esp], ecx
lea esp, [esp]
lea esp, [esp]
nop
push ebp
movzx ecx, al
mov ecx, dword [ecx*4 + 0x1006400]
movzx esi, ah
shr eax, 0x10
mov edi, dword [esi*4 + 0x1006800]
movzx ebp, ah
mov ebp, dword [ebp*4 + 0x1007000]
movzx eax, al
mov eax, dword [eax*4 + 0x1006c00]
movzx esi, bl
xor edi, dword [esi*4 + 0x1006400]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [esi*4 + 0x1006800]
movzx esi, bl
xor ebp, dword [esi*4 + 0x1006c00]
movzx ebx, bh
xor ecx, dword [ebx*4 + 0x1007000]
pop ebx
movzx esi, dl
xor eax, dword [esi*4 + 0x1006400]
movzx esi, dh
xor ebp, dword [esi*4 + 0x1006800]
shr edx, 0x10
movzx esi, dl
xor ecx, dword [esi*4 + 0x1006c00]
movzx edx, dh
xor edi, dword [edx*4 + 0x1007000]
mov esi, dword [esp]
movzx edx, bl
xor ebp, dword [edx*4 + 0x1006400]
movzx edx, bh
xor ecx, dword [edx*4 + 0x1006800]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x1006c00]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x1007000]
mov edx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi]
xor eax, ecx
xor ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
xor ebx, edi
add esi, 0x10
cmp esi, dword [esp + 4]
mov dword [esp], esi
jb 0x10235c0
push ebp
movzx ecx, al
movzx ecx, byte [ecx + 0x1005100]
movzx edi, ah
shr eax, 0x10
movzx edi, byte [edi + 0x1005100]
movzx esi, ah
shl edi, 8
movzx ebp, byte [esi + 0x1005100]
movzx eax, al
shl ebp, 0x18
movzx eax, byte [eax + 0x1005100]
shl eax, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x1005100]
or edi, esi
movzx esi, bh
shr ebx, 0x10
movzx esi, byte [esi + 0x1005100]
shl esi, 8
or eax, esi
movzx esi, bl
movzx esi, byte [esi + 0x1005100]
movzx ebx, bh
shl esi, 0x10
movzx ebx, byte [ebx + 0x1005100]
or ebp, esi
shl ebx, 0x18
or ecx, ebx
movzx esi, dl
movzx esi, byte [esi + 0x1005100]
movzx ebx, dh
shr edx, 0x10
movzx ebx, byte [ebx + 0x1005100]
or eax, esi
shl ebx, 8
movzx esi, dl
movzx esi, byte [esi + 0x1005100]
or ebp, ebx
pop ebx
movzx edx, dh
movzx edx, byte [edx + 0x1005100]
shl esi, 0x10
or ecx, esi
shl edx, 0x18
or edi, edx
movzx esi, bl
movzx esi, byte [esi + 0x1005100]
movzx edx, bh
shr ebx, 0x10
movzx edx, byte [edx + 0x1005100]
or ebp, esi
shl edx, 8
or ecx, edx
mov edx, dword [esp]
movzx esi, bl
movzx esi, byte [esi + 0x1005100]
movzx ebx, bh
movzx ebx, byte [ebx + 0x1005100]
shl esi, 0x10
shl ebx, 0x18
or edi, esi
or eax, ebx
xor ecx, dword [edx]
xor edi, dword [edx + 4]
xor eax, dword [edx + 8]
xor ebp, dword [edx + 0xc]
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x24]
jbe 0x10237d0
sub esi, 0x10
mov dword [esp + 0x28], esi
mov edx, dword [esi + 8]
xor eax, edx
mov dword [esi + 0x18], eax
mov eax, dword [esi]
xor ecx, eax
mov dword [esi + 0x10], ecx
mov ebx, dword [esi + 4]
xor edi, ebx
mov dword [esi + 0x14], edi
mov edi, ebp
mov ebp, dword [esi + 0xc]
xor edi, ebp
mov dword [esi + 0x1c], edi
mov ecx, dword [esp + 8]
jmp 0x10235a0
mov ebx, dword [esp + 0xc]
xor ecx, dword [ebx]
mov dword [esi], ecx
xor edi, dword [ebx + 4]
mov dword [esi + 4], edi
xor eax, dword [ebx + 8]
mov dword [esi + 8], eax
xor ebp, dword [ebx + 0xc]
mov dword [esi + 0xc], ebp
mov dword [esp - 4], esi
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add esp, 0x20
ret 8
mov ebx, dword [esp + 0x24]
mov edi, ecx
movups xmm0, xmmword [eax]
movups xmm1, xmmword [ecx]
pxor xmm0, xmm1
add ecx, 0x10
movups xmm1, xmmword [ecx]
aesdec xmm0, xmm1
add ecx, 0x10
cmp ecx, esi
jb 0x1023817
movups xmm1, xmmword [esi]
aesdeclast xmm0, xmm1
cmp eax, ebx
jbe 0x1023847
sub eax, 0x10
movups xmm1, xmmword [eax]
pxor xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movaps xmm0, xmm1
mov ecx, edi
jmp 0x102380d
movups xmm1, xmmword [edx]
pxor xmm0, xmm1
movups xmmword [eax], xmm0
jmp 0x10237ee