Function at 0x4ea120
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

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, 0x48
mov edx, dword [ebx + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
push edi
test edx, edx
je 0x4ea5ee
shr edx, 4
cmp byte [esi], 0
mov dword [ebx + 0xc], edx
je 0x4ea1e5
mov ecx, dword [ebx + 8]
lea eax, [esi + 0x18]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
movups xmm3, xmmword [esi + 8]
test edx, edx
je 0x4ea1d6
nop
mov eax, ecx
add ecx, 0x10
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 4]
movups xmm2, xmmword [eax]
mov eax, ecx
dec ecx
shl eax, 4
add eax, dword [ebp - 0x20]
movups xmm1, xmmword [eax]
pxor xmm1, xmm2
test ecx, ecx
jle 0x4ea1b0
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x4ea1a0
cmp byte [esi + 1], 0
movups xmm0, xmmword [esi + 0x18]
aesdeclast xmm1, xmm0
je 0x4ea1c3
pxor xmm1, xmm3
mov ecx, dword [ebp - 0x28]
mov eax, edi
add edi, 0x10
movaps xmm3, xmm2
movups xmmword [eax], xmm1
sub edx, 1
jne 0x4ea170
movups xmmword [esi + 8], xmm3
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
movups xmm1, xmmword [esi + 8]
test edx, edx
je 0x4ea5ea
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
add edx, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
mov edi, dword [esi + 4]
mov eax, edi
add eax, eax
mov ecx, dword [edx - 8]
dec edi
mov dword [ebp - 0x24], edi
xor ecx, dword [esi + eax*8 + 0x18]
mov dword [ebp - 8], ecx
mov ecx, dword [edx - 4]
xor ecx, dword [esi + eax*8 + 0x1c]
mov edx, dword [esi + eax*8 + 0x20]
mov eax, dword [esi + eax*8 + 0x24]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x20]
xor eax, dword [ecx + 4]
xor edx, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, edx
mov esi, dword [ebp - 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b15a0]
xor ecx, dword [eax*4 + 0x5b25a0]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x5b0480]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], ecx
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b15a0]
xor ecx, dword [eax*4 + 0x5b25a0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
mov eax, dword [ebp - 4]
movzx eax, al
xor ecx, dword [eax*4 + 0x5b0480]
mov eax, dword [ebp - 8]
shr eax, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], ecx
movzx ecx, al
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b15a0]
xor ecx, dword [eax*4 + 0x5b25a0]
mov eax, esi
shr eax, 0x18
mov esi, ecx
xor esi, dword [eax*4 + 0x5b1080]
movzx eax, dl
shr edx, 8
movzx ecx, dl
xor esi, dword [eax*4 + 0x5b0480]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x5b25a0]
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x38], esi
xor ecx, dword [eax*4 + 0x5b15a0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
mov eax, dword [ebp - 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x5b0480]
cmp edi, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], ecx
jle 0x4ea46b
mov eax, dword [ebp - 4]
add edi, 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
shl edi, 4
add edi, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x24], eax
nop
mov eax, dword [edi - 8]
lea edi, [edi - 0x10]
xor eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 8], eax
xor edx, esi
mov eax, dword [edi + 0x14]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x5b25a0]
mov ecx, dword [ebp - 0x18]
xor esi, dword [eax*4 + 0x5b15a0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5b1080]
movzx eax, cl
xor esi, dword [eax*4 + 0x5b0480]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b25a0]
mov dword [ebp - 0x10], esi
xor ecx, dword [eax*4 + 0x5b15a0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x5b0480]
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov eax, dword [ebp - 8]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b15a0]
xor ecx, dword [eax*4 + 0x5b25a0]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x5b0480]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, dl
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x5b25a0]
xor ecx, dword [eax*4 + 0x5b15a0]
mov eax, dword [ebp - 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b1080]
mov eax, dword [ebp - 4]
movzx eax, al
xor ecx, dword [eax*4 + 0x5b0480]
sub dword [ebp - 0x24], 1
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 0xc]
jne 0x4ea350
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x28]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x2c]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov edx, dword [edi + 0x30]
mov eax, dword [ebp - 0x10]
xor edx, esi
movzx eax, al
mov esi, edi
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x40], al
mov ecx, dword [esi + 0x34]
xor ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3f], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3e], al
mov eax, dword [ebp - 0x14]
shr eax, 0x18
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3d], al
mov eax, dword [ebp - 0x14]
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3c], al
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3b], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x3a], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x39], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x38], al
mov eax, dword [ebp - 0x14]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x37], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x36], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x35], al
movzx eax, cl
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x34], al
movzx eax, dl
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x33], al
mov eax, dword [ebp - 0x14]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 0x10]
shr eax, 0x18
movzx eax, byte [eax + 0x5b1480]
mov byte [ebp - 0x31], al
mov eax, dword [esi + 0x18]
xor dword [ebp - 0x40], eax
mov eax, dword [esi + 0x1c]
xor dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x20]
xor dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
xor dword [ebp - 0x34], eax
cmp byte [esi + 1], 0
je 0x4ea5c3
pxor xmm1, xmmword [ebp - 0x40]
movaps xmm0, xmm1
movaps xmmword [ebp - 0x40], xmm0
jmp 0x4ea5c7
movaps xmm0, xmmword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
movups xmm1, xmmword [edx - 8]
add edx, 0x10
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [ebp - 0x20], edx
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x28], eax
jne 0x4ea200
movups xmmword [esi + 8], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc