Function at 0x1016cf50
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push esi
xor esi, esi
push edi
lea edx, [eax*8]
mov edi, dword [esp + 0x1c]
mov ecx, edx
mov byte [esp + 8], dl
mov eax, esi
shrd ecx, eax, 8
mov byte [esp + 9], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov byte [esp + 0xa], cl
xor ecx, ecx
mov eax, ecx
mov byte [esp + 0xc], cl
shrd edx, eax, 0x18
shr eax, 8
mov byte [esp + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x24]
shr ecx, 0x18
mov byte [esp + 0xb], dl
mov byte [esp + 0xf], cl
lea edx, [eax*8]
mov eax, esi
mov esi, dword [esp + 0x28]
mov ecx, edx
shrd ecx, eax, 8
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov byte [esp + 0x12], cl
xor ecx, ecx
mov eax, ecx
mov byte [esp + 0x14], cl
shrd edx, eax, 0x18
shr eax, 8
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x16], al
mov byte [esp + 0x13], dl
mov dl, byte [esi]
shr ecx, 0x18
mov byte [esp + 0x17], cl
movups xmm2, xmmword [esp + 8]
movzx ecx, dl
shr dl, 3
dec dl
and dl, 1
lea eax, [ecx + 3]
mov byte [esp + 0x23], dl
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov al, dl
shl al, 3
pxor xmm2, xmm0
mov byte [esp + 0x27], al
movzx edx, al
lea eax, [ecx + 4]
add eax, eax
aesenc xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
movaps xmm1, xmm2
inc eax
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
mov cl, byte [esp + 0x23]
add eax, eax
dec cl
and cl, 1
mov byte [esp + 0x23], cl
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x27]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
movaps xmm1, xmm2
mov byte [esi], al
movzx eax, al
shl cl, 3
movzx edx, cl
mov byte [esp + 0x27], cl
lea ecx, [eax + 4]
add eax, 3
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x27]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
mov byte [esi], al
movaps xmm1, xmm2
mov cl, byte [esp + 0x23]
movzx eax, al
dec cl
and cl, 1
mov byte [esp + 0x23], cl
shl cl, 3
movzx edx, cl
mov byte [esp + 0x27], cl
lea ecx, [eax + 4]
add eax, 3
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
mov cl, byte [esp + 0x23]
add eax, eax
dec cl
and cl, 1
mov byte [esp + 0x23], cl
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x27]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
mov byte [esi], al
movzx eax, al
shl cl, 3
movzx edx, cl
mov byte [esp + 0x27], cl
lea ecx, [eax + 4]
add eax, 3
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movaps xmm1, xmm2
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
mov cl, byte [esp + 0x23]
add eax, eax
dec cl
and cl, 1
mov byte [esp + 0x23], cl
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x27]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
movaps xmm1, xmm2
mov byte [esi], al
movzx eax, al
shl cl, 3
movzx edx, cl
mov byte [esp + 0x27], cl
lea ecx, [eax + 4]
add eax, 3
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov cl, byte [esp + 0x23]
mov al, byte [esp + 0x27]
dec cl
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
and cl, 1
mov byte [esi], al
movaps xmm1, xmm2
movzx eax, al
mov byte [esp + 0x23], cl
shl cl, 3
movzx edx, cl
mov byte [esp + 0x27], cl
lea ecx, [eax + 4]
add eax, 3
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 4]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 3]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 2]
inc eax
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edi + eax*8]
lea eax, [edx + 2]
aesenc xmm0, xmmword [edi + ecx*8]
add eax, eax
add edx, edx
movups xmmword [edi + eax*8], xmm0
movzx eax, byte [esi]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
aesenc xmm0, xmmword [edi + eax*8 + 0x10]
movups xmmword [edi + edx*8 + 0x10], xmm0
movzx ecx, byte [esi]
mov eax, ecx
add eax, eax
pxor xmm1, xmmword [edi + eax*8]
lea eax, [ecx + 4]
mov cl, byte [esp + 0x23]
add eax, eax
dec cl
and cl, 1
shl cl, 3
movups xmm0, xmmword [edi + eax*8]
mov al, byte [esp + 0x27]
aesenc xmm0, xmm1
movups xmmword [edi + edx*8], xmm0
mov edx, dword [esp + 0x1c]
mov byte [esi], al
movzx eax, al
movzx edi, cl
mov byte [esp + 0x23], cl
lea ecx, [eax + 4]
add eax, 3
add eax, eax
add ecx, ecx
movups xmm0, xmmword [edx + eax*8]
lea eax, [edi + 4]
aesenc xmm0, xmmword [edx + ecx*8]
add eax, eax
movups xmmword [edx + eax*8], xmm0
movzx eax, byte [esi]
lea ecx, [eax + 3]
add eax, 2
add ecx, ecx
add eax, eax
movups xmm0, xmmword [edx + eax*8]
lea eax, [edi + 3]
aesenc xmm0, xmmword [edx + ecx*8]
add eax, eax
movups xmmword [edx + eax*8], xmm0
movzx edx, byte [esi]
lea esi, [edi + 2]
shl esi, 4
add edi, edi
add esi, dword [esp + 0x1c]
lea eax, [edx + 1]
add eax, eax
lea ecx, [edx + 2]
mov edx, dword [esp + 0x1c]
add ecx, ecx
movups xmm0, xmmword [edx + eax*8]
aesenc xmm0, xmmword [edx + ecx*8]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
movups xmmword [esi], xmm0
movzx eax, byte [edx]
add eax, eax
movups xmm0, xmmword [ecx + eax*8]
aesenc xmm0, xmmword [ecx + eax*8 + 0x10]
movups xmmword [ecx + edi*8 + 0x10], xmm0
movzx ecx, byte [edx]
mov edx, dword [esp + 0x1c]
mov eax, ecx
add eax, eax
pxor xmm2, xmmword [edx + eax*8]
lea eax, [ecx + 4]
mov ecx, edx
add eax, eax
mov edx, dword [esp + 0x28]
movups xmm0, xmmword [ecx + eax*8]
mov eax, ecx
mov cl, byte [esp + 0x23]
aesenc xmm0, xmm2
movups xmmword [eax + edi*8], xmm0
mov byte [edx], cl
movups xmm0, xmmword [eax + edi*8 + 0x10]
pxor xmm0, xmmword [esi]
mov esi, eax
pxor xmm0, xmmword [esi + edi*8]
movups xmmword [esi + edi*8], xmm0
movzx ecx, byte [edx]
mov edx, ecx
add edx, edx
pop edi
lea eax, [ecx + 4]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
lea eax, [ecx + 3]
add eax, eax
pxor xmm0, xmmword [esi + eax*8]
pxor xmm0, xmmword [esi + edx*8]
movups xmmword [esi + edx*8], xmm0
pop esi
add esp, 0x10
ret