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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xac
push esi
mov eax, dword [ebx + 0xc]
shr eax, 2
add eax, 6
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xa5b7e0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
movups xmm0, xmmword [edx + ecx - 0x10]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [ebx + 8]
push ecx
mov edx, dword [ebx + 0x10]
push edx
call fcn.00fa9b60
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea ecx, [eax*4 + 4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x10]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x30], ecx
mov edx, 1
test edx, edx
je 0xfa3a93
aeskeygenassist xmm0, xmmword [ebp - 0x20], 0
movaps xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [ebp - 0x50]
pextrd eax, xmm0, 3
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebx + 0x10]
xor eax, dword [ecx + edx]
mov edx, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx*4]
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
mov dword [eax + edx*4 + 4], ecx
mov ecx, 4
shl ecx, 1
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx*4 + 4]
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
mov dword [eax + edx*4 + 8], ecx
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebx + 0xc]
shr eax, 2
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov edx, dword [ecx + edx]
xor edx, dword [esi + eax*4 + 8]
mov eax, dword [ebx + 0xc]
shr eax, 2
mov ecx, dword [ebx + 0x10]
mov dword [ecx + eax*4 + 0xc], edx
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
lea ecx, [eax + edx*4 + 0x10]
cmp ecx, dword [ebp - 0x30]
jne 0xfa38d1
jmp 0xfa3a93
cmp dword [ebx + 0xc], 0x18
jne 0xfa3952
mov edx, 4
shl edx, 2
mov eax, 4
imul ecx, eax, 9
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xa
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 5
mov eax, 4
imul ecx, eax, 0xa
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 0xb
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 0xb
mov eax, dword [ebx + 0x10]
movaps xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [eax + edx], 3
movaps xmmword [ebp - 0x60], xmm0
movaps xmm0, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x20], xmm0
jmp 0xfa3a7f
cmp dword [ebx + 0xc], 0x20
jne 0xfa3a57
mov ecx, 4
imul edx, ecx, 0xb
mov eax, dword [ebx + 0x10]
movaps xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [eax + edx], 3
movaps xmmword [ebp - 0x70], xmm0
movaps xmm0, xmmword [ebp - 0x70]
movaps xmmword [ebp - 0x20], xmm0
aeskeygenassist xmm0, xmmword [ebp - 0x20], 0
movaps xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [ebp - 0x80]
pextrd ecx, xmm0, 2
mov edx, 4
shl edx, 2
mov eax, dword [ebx + 0x10]
xor ecx, dword [eax + edx]
mov edx, 4
imul eax, edx, 0xc
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 0xc
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xd
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 6
mov edx, 4
imul eax, edx, 0xd
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xe
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 7
mov edx, 4
imul eax, edx, 0xe
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xf
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 0xf
mov edx, dword [ebx + 0x10]
movaps xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [edx + ecx], 3
movaps xmmword [ebp - 0x90], xmm0
movaps xmm0, xmmword [ebp - 0x90]
movaps xmmword [ebp - 0x20], xmm0
jmp 0xfa3a7f
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebx + 0x10]
movaps xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [edx + ecx], 3
movaps xmmword [ebp - 0xa0], xmm0
movaps xmm0, xmmword [ebp - 0xa0]
movaps xmmword [ebp - 0x20], xmm0
mov eax, dword [ebx + 0xc]
shr eax, 2
mov ecx, dword [ebx + 0x10]
lea edx, [ecx + eax*4]
mov dword [ebx + 0x10], edx
jmp 0xfa37f4
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret