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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4914dc]
push ebx
push esi
and eax, 6
mov ebx, ecx
push edi
mov dword [esp + 0x1c], eax
push 0
pop eax
sete al
mov dword [esp + 0x18], ebx
cmp dword [ebp + 8], 0x10
mov dword [esp + 0x14], eax
je 0x45ebb6
cmp dword [ebp + 8], 0x18
je 0x45eb3c
cmp dword [ebp + 8], 0x20
je 0x45ea5e
mov eax, 0xc8000a1
jmp 0x45eccc
lea eax, [ebx + 0xe0]
mov dword [esp + 0x10], 1
mov dword [ebx + 0x1d0], eax
mov edi, ebx
lea eax, [ebx + 0x1c0]
mov esi, edx
push 8
mov dword [ebx + 0x1d4], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov ebx, dword [esp + 0x14]
push ebx
mov edx, edi
lea ecx, [edi - 4]
call fcn.0045e85e
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov edx, dword [edi - 0x18]
ror ecx, 8
movzx eax, byte [eax + 0x4089d8]
xor ecx, eax
mov eax, dword [edi - 0x1c]
xor ecx, dword [edi - 0x20]
xor eax, ecx
mov dword [edi], ecx
xor edx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0x14]
lea ecx, [edi + 0xc]
xor eax, edx
mov dword [edi + 8], edx
lea edx, [edi + 0x10]
mov dword [ecx], eax
push ebx
call fcn.0045e85e
mov eax, dword [edi - 0x10]
xor dword [edx], eax
mov ecx, dword [edi - 0xc]
xor ecx, dword [edx]
mov edx, dword [edi - 8]
mov eax, dword [edi - 4]
xor edx, ecx
mov esi, dword [esp + 0x10]
xor eax, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
add edi, 0x20
inc esi
mov dword [esp + 0x10], esi
cmp esi, 6
jbe 0x45ea8e
push ebx
lea ecx, [edi - 4]
mov edx, edi
call fcn.0045e85e
mov ecx, dword [edi]
movzx eax, byte [esi + 0x4089d8]
ror ecx, 8
xor ecx, eax
mov eax, dword [edi - 0x1c]
xor ecx, dword [edi - 0x20]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x18]
xor ecx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0x14]
xor eax, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
jmp 0x45ec1d
lea eax, [ebx + 0xc0]
mov edi, ebx
mov dword [ebx + 0x1d0], eax
mov esi, edx
lea eax, [ebx + 0x180]
push 6
mov dword [ebx + 0x1d4], eax
lea edx, [ebx + 0x18]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
xor ebx, ebx
inc ebx
push edi
lea ecx, [edx - 4]
call fcn.0045e85e
mov ecx, dword [edx]
movzx eax, byte [ebx + 0x4089d8]
ror ecx, 8
xor ecx, eax
mov eax, dword [edx - 0x14]
xor ecx, dword [edx - 0x18]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edx - 0x10]
xor ecx, eax
mov dword [edx + 4], eax
mov eax, dword [edx - 0xc]
xor eax, ecx
mov dword [edx + 8], ecx
mov ecx, dword [edx - 8]
xor ecx, eax
mov dword [edx + 0xc], eax
mov eax, dword [edx - 4]
xor eax, ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
add edx, 0x18
inc ebx
cmp ebx, 8
jbe 0x45eb67
jmp 0x45ec1d
lea eax, [ebx + 0xa0]
mov esi, edx
mov dword [ebx + 0x1d0], eax
lea edx, [ebx + 0x10]
mov edi, ebx
lea eax, [ebx + 0x140]
mov dword [ebx + 0x1d4], eax
mov ebx, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push ebx
lea ecx, [edx - 4]
call fcn.0045e85e
mov ecx, dword [edx]
movzx eax, byte [edi + 0x4089d8]
ror ecx, 8
xor ecx, eax
mov eax, dword [edx - 0xc]
xor ecx, dword [edx - 0x10]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edx - 8]
xor ecx, eax
mov dword [edx + 4], eax
mov eax, dword [edx - 4]
xor eax, ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
add edx, 0x10
inc edi
cmp edi, 0xa
jbe 0x45ebe0
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 0x18]
je 0x45ecca
mov eax, dword [ebx + 0x1d4]
mov esi, ebx
mov edi, eax
sub eax, 0x10
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
cmp esi, dword [ebx + 0x1d0]
jae 0x45ecca
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x45ec64
movups xmm0, xmmword [esi]
aesimc xmm0, xmm0
movups xmmword [eax], xmm0
jmp 0x45ecb4
push 4
lea edi, [esi + 1]
mov ebx, eax
pop esi
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
mov edx, dword [eax*4 + 0x40a400]
movzx eax, byte [edi - 1]
xor edx, dword [ecx*4 + 0x40a800]
xor edx, dword [eax*4 + 0x409c00]
movzx eax, byte [edi]
lea edi, [edi + 4]
xor edx, dword [eax*4 + 0x40a000]
mov dword [ebx], edx
lea ebx, [ebx + 4]
sub esi, 1
jne 0x45ec6c
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add esi, 0x10
sub eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
cmp esi, dword [ebx + 0x1d0]
jb 0x45ec53
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8