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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x64]
push esi
mov esi, ecx
mov dword [esp + 0x4c], esi
test edx, edx
je 0x4b7433
shr edx, 4
cmp byte [esi], 0
push edi
mov dword [esp + 0x6c], edx
je 0x4b6f33
mov ecx, dword [esp + 0x68]
lea eax, [esi + 0x18]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x34], eax
movups xmm3, xmmword [esi + 8]
test edx, edx
je 0x4b6f27
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 + 0x34]
movups xmm1, xmmword [eax]
pxor xmm1, xmm2
test ecx, ecx
jle 0x4b6f00
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x34]
lea ecx, [ecx]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x4b6ef0
cmp byte [esi + 1], 0
movups xmm0, xmmword [esi + 0x18]
aesdeclast xmm1, xmm0
je 0x4b6f13
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 0x4b6ec0
pop edi
movups xmmword [esi + 8], xmm3
pop esi
add esp, 0x5c
ret 0xc
cmp dword [esp + 0x6c], 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 0x4b7422
mov ecx, dword [esp + 0x70]
lea eax, [ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
sub ecx, eax
sub ecx, 8
mov dword [esp + 0x18], ecx
lea edx, [eax + 8]
mov dword [esp + 0x54], 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 + 0x48], 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 + 0x4c], 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 + 0x54]
mov ecx, dword [ecx + 4]
xor eax, ecx
mov dword [esp + 0x58], eax
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, dword [esp + 0x58]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8550]
xor ecx, dword [eax*4 + 0x5d8150]
mov eax, dword [esp + 0x4c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
movzx eax, cl
xor esi, dword [eax*4 + 0x5d7d50]
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 + 0x58]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8150]
xor ecx, dword [eax*4 + 0x5d8550]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x5c]
movzx eax, cl
xor esi, dword [eax*4 + 0x5d7d50]
mov eax, esi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x48]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8150]
shr esi, 0x18
xor ecx, dword [eax*4 + 0x5d8550]
movzx eax, dl
xor ecx, dword [esi*4 + 0x5d8950]
shr edx, 8
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x4c]
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], ecx
movzx ecx, dl
movzx eax, al
mov esi, dword [ecx*4 + 0x5d8150]
xor esi, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x48]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x58]
movzx eax, al
xor esi, dword [eax*4 + 0x5d7d50]
lea eax, [edi - 1]
mov dword [esp + 0x14], esi
cmp eax, 1
jle 0x4b7236
lea edi, [eax + 2]
shl edi, 4
add edi, dword [esp + 0x50]
dec eax
mov dword [esp + 0x30], eax
nop
mov eax, dword [edi - 8]
lea edi, [edi - 0x10]
xor eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x14]
xor eax, esi
mov edx, dword [edi + 0x10]
xor edx, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x5d8150]
mov ecx, dword [esp + 0x48]
xor esi, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x58]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5d8950]
movzx eax, cl
xor esi, dword [eax*4 + 0x5d7d50]
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 + 0x5d8150]
mov dword [esp + 0x60], esi
mov dword [esp + 8], esi
xor ecx, dword [eax*4 + 0x5d8550]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x58]
movzx eax, al
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x48]
shr eax, 0x10
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], ecx
movzx ecx, al
mov eax, dword [esp + 0x58]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8550]
xor ecx, dword [eax*4 + 0x5d8150]
mov eax, dword [esp + 0x4c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x58]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], ecx
movzx ecx, dl
mov esi, dword [ecx*4 + 0x5d8150]
xor esi, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x48]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x4c]
movzx eax, al
xor esi, dword [eax*4 + 0x5d7d50]
sub dword [esp + 0x30], 1
jne 0x4b7100
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x28]
xor eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x2c]
xor eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
movzx eax, al
mov edx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x34]
xor edx, dword [esp + 0x44]
xor ecx, esi
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
mov esi, dword [esp + 0x50]
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xa], al
mov eax, dword [esp + 0x58]
shr eax, 0x18
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x58]
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x60]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xd], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0xf], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x58]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x60]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x12], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x13], al
movzx eax, cl
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x14], al
movzx eax, dl
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x58]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5d6c50]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x60]
shr eax, 0x18
movzx eax, byte [eax + 0x5d6c50]
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 0x4b73bc
xor ecx, dword [esp + 0x3c]
xor eax, dword [esp + 0x40]
xor edx, dword [esp + 0x38]
xor edi, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], 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 + 0x50]
add edx, 0x10
mov dword [eax - 4], ecx
mov dword [eax + 4], edi
add eax, 0x10
sub dword [esp + 0x6c], 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], eax
jne 0x4b6f80
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, 0x5c
ret 0xc