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

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x5c]
push esi
mov esi, ecx
mov dword [esp + 0x50], esi
test edx, edx
je 0x488004
shr edx, 4
cmp byte [esi], 0
push edi
mov dword [esp + 0x64], edx
je 0x487b03
mov ecx, dword [esp + 0x60]
lea eax, [esi + 0x18]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x64], eax
movups xmm3, xmmword [esi + 8]
test edx, edx
je 0x487af7
mov edi, edi
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 4]
movups xmm2, xmmword [eax]
mov eax, ecx
dec ecx
shl eax, 4
add eax, dword [esp + 0x64]
movups xmm1, xmmword [eax]
pxor xmm1, xmm2
test ecx, ecx
jle 0x487ad0
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x64]
lea ecx, [ecx]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x487ac0
cmp byte [esi + 1], 0
movups xmm0, xmmword [esi + 0x18]
aesdeclast xmm1, xmm0
je 0x487ae3
pxor xmm1, xmm3
mov ecx, dword [esp + 0x68]
mov eax, edi
add edi, 0x10
movaps xmm3, xmm2
movups xmmword [eax], xmm1
sub edx, 1
jne 0x487a90
pop edi
movups xmmword [esi + 8], xmm3
pop esi
add esp, 0x54
ret 0xc
cmp dword [esp + 0x64], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
je 0x487ff3
mov ecx, dword [esp + 0x68]
lea eax, [ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
sub ecx, eax
lea edx, [eax + 8]
lea eax, [ecx - 8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x18], eax
lea esp, [esp]
mov edi, dword [esi + 4]
mov eax, edi
add eax, eax
mov ecx, dword [edx - 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + eax*8 + 0x18]
xor ecx, dword [edx - 8]
mov dword [esp + 0x50], 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 + 0x60], 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 + 0x4c], eax
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, dword [esp + 0x4c]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4d3d20]
xor ecx, dword [eax*4 + 0x4d3920]
mov eax, dword [esp + 0x60]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4d4120]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x68]
movzx eax, cl
xor esi, dword [eax*4 + 0x4d3520]
mov eax, esi
mov dword [esp + 0x68], esi
mov dword [esp + 8], 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 + 0x4d3920]
xor ecx, dword [eax*4 + 0x4d3d20]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4d4120]
mov eax, dword [esp + 0x60]
movzx eax, al
xor ecx, dword [eax*4 + 0x4d3520]
mov eax, dword [esp + 0x50]
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0xc], ecx
movzx ecx, al
mov eax, dword [esp + 0x60]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4d3d20]
xor ecx, dword [eax*4 + 0x4d3920]
mov eax, dword [esp + 0x4c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4d4120]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x4d3520]
mov eax, dword [esp + 0x60]
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], ecx
movzx ecx, dl
movzx eax, al
mov esi, dword [ecx*4 + 0x4d3920]
xor esi, dword [eax*4 + 0x4d3d20]
mov eax, dword [esp + 0x50]
shr eax, 0x18
xor esi, dword [eax*4 + 0x4d4120]
mov eax, dword [esp + 0x4c]
movzx eax, al
xor esi, dword [eax*4 + 0x4d3520]
lea eax, [edi - 1]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x14], esi
cmp eax, 1
jle 0x487e09
lea ecx, [eax + 2]
shl ecx, 4
add ecx, dword [esp + 0x54]
dec eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], eax
nop
mov eax, dword [ecx - 8]
xor eax, edi
mov edx, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [ecx - 4]
xor eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
xor eax, esi
xor edx, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, edx
mov esi, dword [esp + 0x4c]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x4d3d20]
mov ecx, dword [esp + 0x60]
xor edi, dword [eax*4 + 0x4d3920]
mov eax, dword [esp + 0x68]
shr eax, 0x18
xor edi, dword [eax*4 + 0x4d4120]
movzx eax, cl
xor edi, dword [eax*4 + 0x4d3520]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4d3920]
xor ecx, dword [eax*4 + 0x4d3d20]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4d4120]
mov eax, dword [esp + 0x68]
movzx eax, al
xor ecx, dword [eax*4 + 0x4d3520]
mov eax, dword [esp + 0x60]
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0xc], ecx
movzx ecx, al
mov eax, dword [esp + 0x68]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4d3d20]
xor ecx, dword [eax*4 + 0x4d3920]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4d4120]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x4d3520]
mov eax, dword [esp + 0x68]
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], ecx
movzx eax, al
movzx ecx, dl
mov esi, dword [ecx*4 + 0x4d3920]
xor esi, dword [eax*4 + 0x4d3d20]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
shr eax, 0x18
sub ecx, 0x10
mov dword [esp + 0x50], ecx
xor esi, dword [eax*4 + 0x4d4120]
mov eax, dword [esp + 0x4c]
movzx eax, al
xor esi, dword [eax*4 + 0x4d3520]
sub dword [esp + 0x30], 1
jne 0x487cd0
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 + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
movzx eax, al
mov ecx, dword [ecx + 0x34]
xor edx, dword [esp + 0x44]
xor ecx, esi
mov esi, dword [esp + 0x54]
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xa], al
mov eax, dword [esp + 0x68]
shr eax, 0x18
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x68]
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x60]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xd], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0xf], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x68]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x60]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x12], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x13], al
movzx eax, cl
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x14], al
movzx eax, dl
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x68]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4d2420]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x60]
shr eax, 0x18
movzx eax, byte [eax + 0x4d2420]
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 + 0x68], ecx
je 0x487f8d
xor ecx, dword [esp + 0x3c]
xor eax, dword [esp + 0x40]
xor edx, dword [esp + 0x38]
xor edi, dword [esp + 0x34]
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x58]
mov dword [esi + ecx], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
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 + 0x64], 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], eax
jne 0x487b50
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
pop edi
pop esi
add esp, 0x54
ret 0xc