Function at 0x641850
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
push edi
lea edi, [ebp - 0xac]
mov ecx, 0x2b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc]
shr eax, 2
add eax, 6
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x6e0900
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
movdqu xmm0, xmmword [edx + ecx - 0x10]
movdqa xmmword [ebp - 0x30], xmm0
movdqa xmm0, xmmword [ebp - 0x30]
movdqa 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.00568e40
add esp, 0xc
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x10]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x38], ecx
mov edx, 1
test edx, edx
je 0x641b88
aeskeygenassist xmm0, xmmword [ebp - 0x20], 0
movdqa xmmword [ebp - 0x50], xmm0
mov eax, 4
imul ecx, eax, 0
movdqa xmm0, xmmword [ebp - 0x50]
pextrd edx, xmm0, 3
mov eax, dword [ebx + 0x10]
xor edx, dword [eax + ecx]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx]
mov eax, dword [ebx + 0xc]
shr eax, 2
mov ecx, dword [ebx + 0x10]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx*4]
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
mov dword [edx + ecx*4 + 4], eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx*4 + 4]
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
mov dword [edx + ecx*4 + 8], eax
mov eax, 4
imul ecx, eax, 3
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 + 8]
mov edx, dword [ebx + 0xc]
shr edx, 2
mov eax, dword [ebx + 0x10]
mov dword [eax + edx*4 + 0xc], ecx
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
lea eax, [edx + ecx*4 + 0x10]
cmp eax, dword [ebp - 0x38]
jne 0x6419b4
jmp 0x641b88
cmp dword [ebx + 0xc], 0x18
jne 0x641a39
mov ecx, 4
shl ecx, 2
mov edx, 4
imul eax, edx, 9
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, 0xa
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 0xa
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, 0xb
mov edx, dword [ebx + 0x10]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 0xb
mov edx, dword [ebx + 0x10]
movdqa xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [edx + ecx], 3
movdqa xmmword [ebp - 0x60], xmm0
movdqa xmm0, xmmword [ebp - 0x60]
movdqa xmmword [ebp - 0x20], xmm0
jmp 0x641b74
cmp dword [ebx + 0xc], 0x20
jne 0x641b48
mov eax, 4
imul ecx, eax, 0xb
mov edx, dword [ebx + 0x10]
movdqa xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [edx + ecx], 3
movdqa xmmword [ebp - 0x70], xmm0
movdqa xmm0, xmmword [ebp - 0x70]
movdqa xmmword [ebp - 0x20], xmm0
aeskeygenassist xmm0, xmmword [ebp - 0x20], 0
movdqa xmmword [ebp - 0x80], xmm0
mov eax, 4
shl eax, 2
movdqa xmm0, xmmword [ebp - 0x80]
pextrd ecx, xmm0, 2
mov edx, dword [ebx + 0x10]
xor ecx, dword [edx + eax]
mov eax, 4
imul edx, eax, 0xc
mov eax, dword [ebx + 0x10]
mov dword [eax + edx], ecx
mov ecx, 4
imul edx, ecx, 5
mov eax, 4
imul ecx, eax, 0xc
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, 0xd
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 6
mov eax, 4
imul ecx, eax, 0xd
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, 0xe
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 7
mov eax, 4
imul ecx, eax, 0xe
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, 0xf
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx], edx
mov ecx, 4
imul edx, ecx, 0xf
mov eax, dword [ebx + 0x10]
movdqa xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [eax + edx], 3
movdqa xmmword [ebp - 0x90], xmm0
movdqa xmm0, xmmword [ebp - 0x90]
movdqa xmmword [ebp - 0x20], xmm0
jmp 0x641b74
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebx + 0x10]
movdqa xmm0, xmmword [ebp - 0x20]
pinsrd xmm0, dword [eax + edx], 3
movdqa xmmword [ebp - 0xa0], xmm0
movdqa xmm0, xmmword [ebp - 0xa0]
movdqa xmmword [ebp - 0x20], xmm0
mov ecx, dword [ebx + 0xc]
shr ecx, 2
mov edx, dword [ebx + 0x10]
lea eax, [edx + ecx*4]
mov dword [ebx + 0x10], eax
jmp 0x6418db
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret