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

Disassembly:
sub esp, 0x30
push edi
mov edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x4b840a
push esi
shr ecx, 4
lea esi, [edi + 8]
cmp byte [edi], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], esi
je 0x4b7f25
cmp dword [esp + 0x40], 0
lea ecx, [edi + 0x18]
movups xmm1, xmmword [esi]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jbe 0x4b7f16
mov eax, esi
add esi, 0x10
cmp byte [edi + 1], 0
movups xmm0, xmmword [eax]
je 0x4b7ec9
pxor xmm0, xmm1
movups xmm1, xmmword [ecx]
mov edx, dword [edi + 4]
pxor xmm1, xmm0
cmp edx, 1
jle 0x4b7ef4
lea eax, [ecx + 0x10]
lea ecx, [edx - 1]
mov edi, edi
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
aesenc xmm1, xmm0
sub ecx, 1
jne 0x4b7ee0
lea ecx, [edi + 0x18]
add edx, edx
movups xmm0, xmmword [ecx + edx*8]
mov edx, dword [esp + 0x18]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x40], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x4b7eb7
mov eax, dword [esp + 0xc]
pop esi
pop edi
movups xmmword [eax], xmm1
add esp, 0x30
ret 0xc
mov edx, esi
test ecx, ecx
je 0x4b83f3
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 esi, [eax + 8]
mov dword [esp + 0x10], esi
mov edi, edi
cmp byte [edi + 1], 0
je 0x4b7f7a
mov eax, dword [edx + 4]
xor eax, dword [esi - 4]
mov ecx, dword [edx]
xor ecx, dword [esi - 8]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
xor eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esi + 4]
mov edx, dword [esp + 0x14]
jmp 0x4b7f89
mov eax, dword [esi]
mov ecx, dword [esi - 8]
mov edx, dword [esi - 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x18]
xor eax, ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1c]
xor eax, edx
mov edx, dword [edi + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x20]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x2c]
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x5d8550]
xor edx, dword [esp + 0x1c]
xor edi, dword [eax*4 + 0x5d8150]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x30]
movzx eax, al
xor edi, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 8]
add eax, esi
mov dword [esp + 0x18], eax
mov dword [eax], edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5d8550]
xor esi, dword [eax*4 + 0x5d8150]
mov eax, dword [esp + 0x30]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor esi, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [eax + 2], esi
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8150]
xor ecx, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x2c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [eax + 6], ecx
mov eax, dword [esp + 0x30]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8150]
xor ecx, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
movzx eax, dl
mov edx, dword [esp + 0x24]
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [eax + 0xa], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx - 1]
cmp eax, 1
jle 0x4b8254
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
lea eax, [edx + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [eax - 8]
xor eax, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
xor eax, ecx
mov edx, dword [edi - 4]
mov dword [esp + 0x1c], eax
xor edx, esi
mov eax, dword [edi + 4]
xor eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x5d8150]
xor edi, dword [eax*4 + 0x5d8550]
mov eax, dword [esp + 0x30]
shr eax, 0x18
xor edi, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x20]
movzx eax, al
xor edi, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5d8550]
xor esi, dword [eax*4 + 0x5d8150]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5d8950]
movzx eax, dl
xor esi, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [eax + 2], esi
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x30]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5d8550]
xor ecx, dword [eax*4 + 0x5d8150]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
xor ecx, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [eax + 6], ecx
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
movzx ecx, dl
mov edx, dword [esp + 0x24]
mov ecx, dword [ecx*4 + 0x5d8550]
xor ecx, dword [eax*4 + 0x5d8150]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5d8950]
mov eax, dword [esp + 0x30]
movzx eax, al
xor ecx, dword [eax*4 + 0x5d7d50]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [eax + 0xa], ecx
mov ecx, dword [esp + 0x14]
inc ecx
add dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
dec eax
cmp ecx, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jl 0x4b80f2
mov ecx, dword [esp + 0x1c]
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + edx + 8]
xor edx, edi
mov edi, dword [esp + 0x24]
mov eax, dword [ecx + edi + 0xc]
xor eax, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + edi + 0x10]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + edi + 0x14]
xor ecx, dword [esp + 0x30]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi], al
mov esi, dword [esp + 0x34]
mov edi, esi
mov eax, dword [esp + 0x2c]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi - 1], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [edi], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [edi + 1], al
mov eax, dword [esp + 0x2c]
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [edi + 2], al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 3], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 5], al
mov eax, dword [esp + 0x20]
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 6], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 7], al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 8], al
mov eax, dword [esp + 0x2c]
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 9], al
movzx eax, cl
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 0xa], al
movzx eax, dl
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 0xb], al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 0xc], al
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
shr eax, 0x18
add dword [esp + 0x34], 0x10
movzx eax, byte [eax*4 + 0x5d7d51]
mov byte [esi + 0xd], al
mov ecx, dword [edi + 4]
shl ecx, 4
add ecx, edi
mov eax, dword [ecx + 0x18]
xor dword [edx], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 2], eax
mov eax, dword [ecx + 0x20]
xor dword [esi + 6], eax
mov eax, dword [ecx + 0x24]
xor dword [esi + 0xa], eax
mov esi, dword [esp + 0x10]
add esi, 0x10
sub dword [esp + 0x40], 1
mov dword [esp + 0x10], esi
jne 0x4b7f50
mov esi, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
add esp, 0x30
ret 0xc