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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [ebp + 0x10]
movaps xmm6, xmmword [0x4e2da0]
mov dword [esp + 0x24], edx
mov dword [esp + 8], ecx
push esi
push edi
cmp eax, 0x80
jae 0x47e670
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
mov edx, ecx
jmp 0x47ea7d
movups xmm5, xmmword [edx]
mov edi, dword [ebp + 8]
lea eax, [ecx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
movaps xmm2, xmm5
psrld xmm2, 0x1c
mov dword [esp + 0xc], eax
movaps xmm1, xmm2
mov dword [esp + 8], edi
psrldq xmm1, 0xc
movaps xmm3, xmm1
pslldq xmm2, 4
pslld xmm3, 7
movaps xmm0, xmm1
pslld xmm0, 2
pxor xmm3, xmm0
movaps xmm0, xmm1
pslld xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm5
pslld xmm0, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm3, xmm0
movaps xmm0, xmm5
movaps xmmword [esp + 0xd0], xmm3
psrad xmm0, 0x1f
lea esi, [edi + 0x40]
lea eax, [edi + 0x10]
mov dword [esp + 0x14], esi
pshufd xmm7, xmm0, 0x93
lea ecx, [edi + 0x20]
pand xmm7, xmm6
mov esi, dword [esp + 8]
movaps xmm0, xmm5
movaps xmmword [esp + 0x80], xmm5
pslld xmm0, 1
lea edx, [edi + 0x30]
pxor xmm7, xmm0
movaps xmm0, xmm3
psrad xmm0, 0x1f
movaps xmmword [esp + 0xe0], xmm7
pshufd xmm1, xmm0, 0x93
movaps xmm0, xmm3
pslld xmm0, 1
pand xmm1, xmm6
pxor xmm1, xmm0
movaps xmm0, xmm7
psrad xmm0, 0x1f
movaps xmmword [esp + 0xc0], xmm1
pshufd xmm2, xmm0, 0x93
movaps xmm0, xmm7
pslld xmm0, 1
pand xmm2, xmm6
pxor xmm2, xmm0
movaps xmm0, xmm1
psrad xmm0, 0x1f
movaps xmmword [esp + 0xa0], xmm2
pshufd xmm4, xmm0, 0x93
movaps xmm0, xmm1
pslld xmm0, 1
pand xmm4, xmm6
pxor xmm4, xmm0
movaps xmm0, xmm2
psrad xmm0, 0x1f
movaps xmmword [esp + 0x70], xmm4
pshufd xmm1, xmm0, 0x93
movaps xmm0, xmm2
movups xmm2, xmmword [eax]
pand xmm1, xmm6
pslld xmm0, 1
pxor xmm2, xmm7
movups xmm7, xmmword [edx]
pxor xmm1, xmm0
movaps xmm0, xmm4
movaps xmmword [esp + 0xb0], xmm1
movups xmm1, xmmword [edi]
add edi, 0x50
sub dword [esp + 8], 0xffffff80
pxor xmm7, xmmword [esp + 0xb0]
mov dword [esp + 0x18], edi
pxor xmm1, xmm5
lea edi, [esi + 0x60]
psrad xmm0, 0x1f
mov dword [esp + 0x1c], edi
lea edi, [esi + 0x70]
pshufd xmm4, xmm0, 0x93
movaps xmm0, xmmword [esp + 0x70]
pand xmm4, xmm6
movups xmm6, xmmword [ecx]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x10]
pxor xmm6, xmmword [esp + 0xa0]
pslld xmm0, 1
mov esi, dword [edi + 0x1d0]
pxor xmm4, xmm0
movups xmm0, xmmword [edi]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x14]
movaps xmmword [esp + 0x90], xmm4
pxor xmm1, xmm0
pxor xmm2, xmm0
pxor xmm6, xmm0
pxor xmm7, xmm0
movups xmm4, xmmword [esi]
mov edi, dword [esp + 0x18]
pxor xmm4, xmm3
mov eax, dword [esp + 0x1c]
pxor xmm4, xmm0
movaps xmmword [esp + 0x40], xmm4
mov edx, dword [esp + 0x28]
movups xmm4, xmmword [edi]
pxor xmm4, xmmword [esp + 0xc0]
pxor xmm4, xmm0
movaps xmmword [esp + 0x50], xmm4
movups xmm4, xmmword [eax]
mov eax, dword [esp + 0x20]
pxor xmm4, xmmword [esp + 0x70]
pxor xmm4, xmm0
movaps xmmword [esp + 0x60], xmm4
movups xmm4, xmmword [eax]
mov eax, dword [esp + 0x24]
movaps xmmword [esp + 0x30], xmm4
movaps xmm5, xmmword [esp + 0x30]
movaps xmm4, xmmword [esp + 0x90]
pxor xmm5, xmm4
pxor xmm5, xmm0
movaps xmmword [esp + 0x30], xmm5
movaps xmm5, xmmword [esp + 0x80]
cmp eax, edx
jae 0x47e927
movaps xmm4, xmmword [esp + 0x40]
movaps xmm5, xmmword [esp + 0x50]
movaps xmm3, xmmword [esp + 0x60]
movups xmm0, xmmword [eax]
add eax, 0x10
aesenc xmm4, xmm0
movaps xmmword [esp + 0x40], xmm4
movaps xmm4, xmmword [esp + 0x30]
aesenc xmm4, xmm0
movaps xmmword [esp + 0x30], xmm4
movaps xmm4, xmmword [esp + 0x40]
aesenc xmm1, xmm0
aesenc xmm2, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
aesenc xmm5, xmm0
aesenc xmm3, xmm0
cmp eax, edx
jb 0x47e8bf
movaps xmm4, xmmword [esp + 0x90]
movaps xmmword [esp + 0x60], xmm3
movaps xmm3, xmmword [esp + 0xd0]
movaps xmmword [esp + 0x50], xmm5
movaps xmm5, xmmword [esp + 0x80]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
mov edx, 0x80
mov ecx, dword [ebp + 0x10]
aesenclast xmm1, xmm0
pxor xmm1, xmm5
sub ecx, edx
movups xmmword [eax], xmm1
aesenclast xmm2, xmm0
movaps xmm1, xmmword [esp + 0x40]
pxor xmm2, xmmword [esp + 0xe0]
aesenclast xmm1, xmm0
pxor xmm1, xmm3
mov dword [ebp + 0x10], ecx
movups xmmword [eax + 0x10], xmm2
aesenclast xmm6, xmm0
pxor xmm6, xmmword [esp + 0xa0]
movups xmmword [eax + 0x20], xmm6
aesenclast xmm7, xmm0
pxor xmm7, xmmword [esp + 0xb0]
movups xmmword [eax + 0x30], xmm7
movups xmmword [eax + 0x40], xmm1
movaps xmm1, xmmword [esp + 0x50]
aesenclast xmm1, xmm0
pxor xmm1, xmmword [esp + 0xc0]
movups xmmword [eax + 0x50], xmm1
movaps xmm1, xmmword [esp + 0x60]
aesenclast xmm1, xmm0
pxor xmm1, xmmword [esp + 0x70]
movups xmmword [eax + 0x60], xmm1
movaps xmm1, xmmword [esp + 0x30]
aesenclast xmm1, xmm0
pxor xmm1, xmm4
movups xmmword [eax + 0x70], xmm1
add eax, edx
mov dword [esp + 0xc], eax
cmp ecx, edx
jb 0x47ea49
movaps xmm6, xmmword [0x4e2da0]
movaps xmm0, xmm4
mov edi, dword [esp + 8]
movaps xmm2, xmm4
psrad xmm0, 0x1f
psrld xmm2, 0x1b
pshufd xmm5, xmm0, 0x93
movaps xmm0, xmm4
pslld xmm0, 1
movaps xmm1, xmm2
psrldq xmm1, 0xc
pand xmm5, xmm6
pxor xmm5, xmm0
pslld xmm4, 5
movaps xmm3, xmm1
pslldq xmm2, 4
pslld xmm3, 7
movaps xmm0, xmm1
pslld xmm0, 2
pxor xmm2, xmm4
pxor xmm3, xmm0
movaps xmm0, xmm1
pslld xmm0, 1
pxor xmm3, xmm0
pxor xmm3, xmm1
pxor xmm3, xmm2
jmp 0x47e6d1
test ecx, ecx
je 0x47ea82
mov edx, dword [esp + 0x2c]
movaps xmm0, xmm4
psrad xmm0, 0x1f
push ecx
pshufd xmm0, xmm0, 0x93
pand xmm0, xmmword [0x4e2da0]
push eax
push dword [esp + 0x10]
pslld xmm4, 1
push edx
pxor xmm0, xmm4
movups xmmword [edx], xmm0
mov edx, dword [esp + 0x20]
call fcn.0047cfc8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc