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

Disassembly:
sub esp, 0x60
mov edx, dword [esp + 0x68]
push esi
mov esi, ecx
mov dword [esp + 0x50], esi
test edx, edx
je 0x4aa805
shr edx, 4
cmp byte [esi], 0
push edi
mov dword [esp + 0x70], edx
je 0x4aa2f3
mov ecx, dword [esp + 0x6c]
lea eax, [esi + 0x18]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x38], eax
movups xmm3, xmmword [esi + 8]
test edx, edx
je 0x4aa2e7
mov edi, edi
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
movups xmm2, xmmword [eax]
mov eax, ecx
dec ecx
shl eax, 4
add eax, dword [esp + 0x38]
movups xmm1, xmmword [eax]
pxor xmm1, xmm2
test ecx, ecx
jle 0x4aa2c0
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x38]
lea ecx, [ecx]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x4aa2b0
cmp byte [esi + 1], 0
movups xmm0, xmmword [esi + 0x18]
aesdeclast xmm1, xmm0
je 0x4aa2d3
pxor xmm1, xmm3
mov ecx, dword [esp + 0x2c]
mov eax, edi
add edi, 0x10
movaps xmm3, xmm2
movups xmmword [eax], xmm1
sub edx, 1
jne 0x4aa280
pop edi
movups xmmword [esi + 8], xmm3
pop esi
add esp, 0x60
ret 0xc
cmp dword [esp + 0x70], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
je 0x4aa7f4
mov ecx, dword [esp + 0x74]
lea eax, [ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
sub ecx, eax
sub ecx, 8
mov dword [esp + 0x18], ecx
lea edx, [eax + 8]
mov dword [esp + 0x58], edx
lea esp, [esp]
mov edi, dword [esi + 4]
mov eax, edi
mov ecx, dword [edx - 8]
add eax, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + eax*8 + 0x18]
xor ecx, dword [edx - 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx - 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + eax*8 + 0x1c]
xor ecx, dword [edx - 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx]
mov edx, dword [esi + eax*8 + 0x20]
mov eax, dword [esi + eax*8 + 0x24]
xor edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 4]
xor eax, ecx
mov dword [esp + 0x5c], eax
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, dword [esp + 0x5c]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bc630]
xor ecx, dword [eax*4 + 0x5bc230]
mov eax, dword [esp + 0x50]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bca30]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x60]
movzx eax, cl
xor esi, dword [eax*4 + 0x5bbe30]
mov eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 8], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x5c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bc230]
xor ecx, dword [eax*4 + 0x5bc630]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bca30]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x64]
movzx eax, cl
xor esi, dword [eax*4 + 0x5bbe30]
mov eax, esi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x4c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bc230]
shr esi, 0x18
xor ecx, dword [eax*4 + 0x5bc630]
movzx eax, dl
xor ecx, dword [esi*4 + 0x5bca30]
shr edx, 8
xor ecx, dword [eax*4 + 0x5bbe30]
mov eax, dword [esp + 0x50]
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ecx
movzx ecx, dl
movzx eax, al
mov esi, dword [ecx*4 + 0x5bc230]
xor esi, dword [eax*4 + 0x5bc630]
mov eax, dword [esp + 0x4c]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5bca30]
mov eax, dword [esp + 0x5c]
movzx eax, al
xor esi, dword [eax*4 + 0x5bbe30]
lea eax, [edi - 1]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x14], esi
cmp eax, 1
jle 0x4aa60a
lea ecx, [eax + 2]
shl ecx, 4
add ecx, dword [esp + 0x54]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ecx - 8]
xor eax, edi
mov edx, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx - 4]
xor eax, dword [esp + 0x64]
xor edx, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 4]
xor eax, esi
mov dword [esp + 0x5c], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x5c]
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x5bc630]
mov ecx, dword [esp + 0x50]
xor edi, dword [eax*4 + 0x5bc230]
mov eax, dword [esp + 0x4c]
shr eax, 0x18
xor edi, dword [eax*4 + 0x5bca30]
movzx eax, cl
xor edi, dword [eax*4 + 0x5bbe30]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x5c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bc230]
xor ecx, dword [eax*4 + 0x5bc630]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5bca30]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
movzx eax, cl
xor esi, dword [eax*4 + 0x5bbe30]
mov eax, esi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x50]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5bc230]
shr esi, 0x18
xor ecx, dword [eax*4 + 0x5bc630]
movzx eax, dl
xor ecx, dword [esi*4 + 0x5bca30]
shr edx, 8
xor ecx, dword [eax*4 + 0x5bbe30]
mov eax, dword [esp + 0x4c]
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ecx
movzx eax, al
movzx ecx, dl
mov esi, dword [ecx*4 + 0x5bc230]
xor esi, dword [eax*4 + 0x5bc630]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
shr eax, 0x18
sub ecx, 0x10
mov dword [esp + 0x34], ecx
xor esi, dword [eax*4 + 0x5bca30]
mov eax, dword [esp + 0x5c]
movzx eax, al
xor esi, dword [eax*4 + 0x5bbe30]
sub dword [esp + 0x30], 1
jne 0x4aa4c7
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x28]
xor eax, edi
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x2c]
xor eax, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
movzx eax, al
mov ecx, dword [ecx + 0x34]
xor edx, dword [esp + 0x48]
xor ecx, esi
mov esi, dword [esp + 0x54]
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xa], al
mov eax, dword [esp + 0x5c]
shr eax, 0x18
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x5c]
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x60]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xd], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0xf], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x5c]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x60]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x12], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x13], al
movzx eax, cl
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x14], al
movzx eax, dl
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x5c]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x60]
shr eax, 0x18
movzx eax, byte [eax + 0x5bad30]
mov byte [esp + 0x17], al
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
xor ecx, dword [esp + 0xc]
xor eax, dword [esp + 8]
xor edx, dword [esp + 0x10]
xor edi, dword [esp + 0x14]
cmp byte [esi + 1], 0
mov dword [esp + 0x30], ecx
je 0x4aa78e
xor ecx, dword [esp + 0x40]
xor eax, dword [esp + 0x44]
xor edx, dword [esp + 0x3c]
xor edi, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, esi
mov esi, dword [esp + 0x54]
add edx, 0x10
mov dword [eax - 4], ecx
mov dword [eax + 4], edi
add eax, 0x10
sub dword [esp + 0x70], 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], eax
jne 0x4aa340
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
pop edi
pop esi
add esp, 0x60
ret 0xc