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

Disassembly:
sub esp, 0x30
mov edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x4aada6
push esi
push edi
shr ecx, 4
lea edi, [edx + 8]
cmp byte [edx], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], edi
je 0x4aa8c6
cmp dword [esp + 0x40], 0
movups xmm1, xmmword [edi]
mov ecx, dword [esp + 0x44]
lea edi, [edx + 0x18]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
jbe 0x4aa8b7
mov eax, esi
add esi, 0x10
cmp byte [edx + 1], 0
movups xmm0, xmmword [eax]
je 0x4aa869
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov edx, dword [edx + 4]
pxor xmm1, xmm0
cmp edx, 1
jle 0x4aa895
lea eax, [edi + 0x10]
lea ecx, [edx - 1]
mov edi, edi
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
aesenc xmm1, xmm0
sub ecx, 1
jne 0x4aa880
mov ecx, dword [esp + 0x14]
add edx, edx
mov eax, ecx
add ecx, 0x10
sub dword [esp + 0x40], 1
mov dword [esp + 0x14], ecx
movups xmm0, xmmword [edi + edx*8]
mov edx, dword [esp + 0x2c]
aesenclast xmm1, xmm0
movups xmmword [eax], xmm1
jne 0x4aa857
mov eax, dword [esp + 0xc]
pop edi
pop esi
movups xmmword [eax], xmm1
add esp, 0x30
ret 0xc
mov esi, edi
test ecx, ecx
je 0x4aad8e
mov ecx, dword [esp + 0x44]
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
sub ecx, 8
mov dword [esp + 8], ecx
lea edi, [eax + 8]
mov dword [esp + 0x10], edi
nop
cmp byte [edx + 1], 0
je 0x4aa91a
mov eax, dword [esi + 4]
xor eax, dword [edi - 4]
mov ecx, dword [esi]
xor ecx, dword [edi - 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
xor eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
jmp 0x4aa929
mov eax, dword [edi]
mov ecx, dword [edi - 8]
mov esi, dword [edi - 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x18]
xor eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x1c]
xor eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x20]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x24]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5bb630]
mov edx, dword [edx + 0x24]
xor edx, dword [esp + 0x18]
xor esi, dword [eax*4 + 0x5bb230]
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x18], 1
xor esi, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x28]
movzx eax, al
xor esi, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x14], eax
mov dword [eax], esi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x5bb630]
xor edi, dword [eax*4 + 0x5bb230]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor edi, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x24]
movzx eax, al
xor edi, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x34]
mov dword [eax + 2], edi
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bb230]
xor ecx, dword [eax*4 + 0x5bb630]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [eax + 6], ecx
mov eax, dword [esp + 0x28]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bb230]
xor ecx, dword [eax*4 + 0x5bb630]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bba30]
movzx eax, dl
mov edx, dword [esp + 0x2c]
xor ecx, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [eax + 0xa], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x24], eax
dec eax
cmp eax, 1
jle 0x4aabef
mov eax, dword [esp + 0x30]
add edx, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [edx - 8]
xor eax, esi
mov edx, dword [edx - 4]
mov dword [esp + 0x24], eax
xor edx, edi
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor eax, dword [esp + 0x28]
xor ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5bb630]
xor esi, dword [eax*4 + 0x5bb230]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x24]
movzx eax, al
xor esi, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x5bb630]
xor edi, dword [eax*4 + 0x5bb230]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor edi, dword [eax*4 + 0x5bba30]
movzx eax, dl
xor edi, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x34]
mov dword [eax + 2], edi
mov eax, dword [esp + 0x28]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bb230]
xor ecx, dword [eax*4 + 0x5bb630]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
xor ecx, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x5bae30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [eax + 6], ecx
mov eax, dword [esp + 0x24]
shr eax, 8
movzx eax, al
movzx ecx, dl
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx*4 + 0x5bb630]
xor ecx, dword [eax*4 + 0x5bb230]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bba30]
mov eax, dword [esp + 0x28]
movzx eax, al
xor ecx, dword [eax*4 + 0x5bae30]
add edx, 0x10
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [eax + 0xa], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
dec eax
cmp dword [esp + 0x18], eax
jl 0x4aaa94
jmp 0x4aabf1
mov ecx, edx
mov eax, dword [esp + 0x24]
shl eax, 4
mov dword [esp + 0x24], eax
mov edx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0xc]
xor edx, esi
xor eax, edi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x34]
mov eax, dword [esi + ecx + 0x10]
xor eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + ecx + 0x14]
mov esi, dword [esp + 0x14]
xor ecx, dword [esp + 0x28]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [esi], al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi - 1], al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 1], al
mov eax, dword [esp + 0x20]
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 2], al
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 3], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 5], al
mov eax, dword [esp + 0x18]
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 6], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 7], al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 8], al
mov eax, dword [esp + 0x20]
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 9], al
movzx eax, cl
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 0xa], al
movzx eax, dl
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 0xb], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 0xc], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
shr eax, 0x18
add dword [esp + 0x34], 0x10
movzx eax, byte [eax*4 + 0x5bae31]
mov byte [edi + 0xd], al
mov ecx, dword [edx + 4]
shl ecx, 4
add ecx, edx
mov eax, dword [ecx + 0x18]
xor dword [esi], eax
mov eax, dword [ecx + 0x1c]
xor dword [edi + 2], eax
mov eax, dword [ecx + 0x20]
xor dword [edi + 6], eax
mov eax, dword [ecx + 0x24]
xor dword [edi + 0xa], eax
mov edi, dword [esp + 0x10]
add edi, 0x10
sub dword [esp + 0x40], 1
mov dword [esp + 0x10], edi
jne 0x4aa8f0
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x30
ret 0xc