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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2f0
movaps xmm3, xmmword [ecx + 0x40]
mov eax, dword [edx + 4]
movaps xmm4, xmmword [ecx + 0x50]
movaps xmm0, xmmword [ecx]
mov edi, dword [edx]
movdqa xmm1, xmmword [ecx + 0x20]
movaps xmm2, xmmword [ecx + 0x30]
xor esi, esi
mov dword [esp + 0x1c], ecx
movaps xmmword [esp + 0x110], xmm3
movaps xmm3, xmmword [ecx + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
movaps xmmword [esp + 0x100], xmm4
movaps xmm4, xmmword [ecx + 0x70]
movaps xmmword [esp + 0x150], xmm0
movdqa xmm0, xmmword [ecx + 0x10]
movaps xmmword [esp + 0x120], xmm2
mov dword [esp + 0x18], edi
movdqa xmmword [esp + 0x130], xmm1
movaps xmmword [esp + 0xf0], xmm3
movaps xmm3, xmmword [ecx + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
movaps xmmword [esp + 0xe0], xmm4
movaps xmm4, xmmword [ecx + 0x90]
movdqa xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0xd0], xmm3
movaps xmm3, xmmword [ecx + 0xa0]
mov dword [esp + 0xc], eax
shr eax, 3
movaps xmmword [esp + 0xc0], xmm4
mov dword [esp + 8], eax
movaps xmmword [esp + 0xb0], xmm3
cmp dword [esp + 8], esi
je 0x404a83
and dword [esp + 0xa0], 0
mov dword [esp + 4], esi
lea esi, [esp + 0x20]
push 8
pop ebx
mov ecx, esi
call fcn.0040eeb7
inc dword [esp + 0xa0]
add esi, 0x10
dec ebx
jne 0x404670
push 0x80
lea esi, [esp + 0x24]
push esi
lea eax, [esp + 0x1f0]
push eax
call fcn.00496910
add esp, 0xc
and dword [esp + 0xa0], 0
push 8
pop ebx
mov ecx, esi
call fcn.0040eeb7
inc dword [esp + 0xa0]
add esi, 0x10
dec ebx
jne 0x4046a9
push 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.00496910
add esp, 0xc
push 0xffffffffffffff80
pop ebx
mov esi, ebx
test esi, esi
je 0x40470e
lea ecx, [esp + 0x20]
mov edx, edi
call fcn.00404c55
movq xmm0, qword [esp + 0x20]
movq xmm1, qword [esp + 0x28]
movq qword [esp + esi + 0x1f0], xmm1
movq qword [esp + esi + 0x1e8], xmm0
add esi, 0x10
jmp 0x4046dc
movups xmm0, xmmword [esp + 0x168]
movaps xmm1, xmmword [esp + 0x150]
movups xmm2, xmmword [esp + 0x178]
movups xmm3, xmmword [esp + 0x188]
mov ecx, dword [esp + 4]
mov eax, ebx
xorps xmm0, xmm1
xorps xmm2, xmm1
xorps xmm3, xmm1
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm2
movups xmm2, xmmword [esp + 0x198]
movaps xmmword [esp + 0x40], xmm3
movups xmm3, xmmword [esp + 0x1a8]
xorps xmm2, xmm1
xorps xmm3, xmm1
movaps xmmword [esp + 0x50], xmm2
movups xmm2, xmmword [esp + 0x1b8]
movaps xmmword [esp + 0x60], xmm3
movups xmm3, xmmword [esp + 0x1c8]
xorps xmm2, xmm1
xorps xmm3, xmm1
movaps xmmword [esp + 0x70], xmm2
movups xmm2, xmmword [esp + 0x1d8]
movaps xmmword [esp + 0x80], xmm3
xorps xmm2, xmm1
movdqa xmm1, xmmword [esp + 0x140]
movaps xmmword [esp + 0x90], xmm2
test eax, eax
je 0x4047cb
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x4047ab
movdqa xmm1, xmmword [esp + 0x130]
mov eax, ebx
test eax, eax
je 0x4047f6
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x4047d6
movdqa xmm1, xmmword [esp + 0x120]
mov eax, ebx
test eax, eax
je 0x404821
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x404801
movdqa xmm1, xmmword [esp + 0x110]
mov eax, ebx
test eax, eax
je 0x40484c
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x40482c
movdqa xmm1, xmmword [esp + 0x100]
mov eax, ebx
test eax, eax
je 0x404877
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x404857
movdqa xmm1, xmmword [esp + 0xf0]
mov eax, ebx
test eax, eax
je 0x4048a2
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x404882
movdqa xmm1, xmmword [esp + 0xe0]
mov eax, ebx
test eax, eax
je 0x4048cd
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x4048ad
movdqa xmm1, xmmword [esp + 0xd0]
mov eax, ebx
test eax, eax
je 0x4048f8
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x4048d8
movdqa xmm1, xmmword [esp + 0xc0]
mov eax, ebx
test eax, eax
je 0x404923
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenc xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x404903
movdqa xmm1, xmmword [esp + 0xb0]
mov eax, ebx
test eax, eax
je 0x40494e
movdqa xmm0, xmmword [esp + eax + 0xa0]
aesenclast xmm0, xmm1
movdqa xmmword [esp + eax + 0xa0], xmm0
add eax, 0x10
jmp 0x40492e
movdqa xmm0, xmmword [esp + 0x20]
mov eax, dword [esp + 0x14]
movdqa xmm1, xmmword [esp + 0x30]
movaps xmm2, xmmword [esp + 0x40]
movaps xmm3, xmmword [esp + 0x50]
movaps xmm4, xmmword [esp + 0x60]
movaps xmm5, xmmword [esp + 0x70]
movaps xmm6, xmmword [esp + 0x80]
movaps xmm7, xmmword [esp + 0x90]
shl ecx, 7
mov dword [esp], ecx
movdqu xmmword [esp + 0x1e8], xmm0
movdqu xmmword [esp + 0x1f8], xmm1
movups xmmword [esp + 0x208], xmm2
movups xmmword [esp + 0x218], xmm3
movups xmmword [esp + 0x228], xmm4
movups xmmword [esp + 0x238], xmm5
movups xmmword [esp + 0x248], xmm6
add eax, ecx
movups xmmword [esp + 0x258], xmm7
push 0x80
push eax
lea eax, [esp + 0x270]
push eax
call fcn.00496910
add esp, 0xc
and dword [esp + 0xa0], 0
lea esi, [esp + 0x20]
push 8
pop ebx
mov ecx, esi
call fcn.0040eeb7
inc dword [esp + 0xa0]
add esi, 0x10
dec ebx
jne 0x4049f1
push 0x80
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x170]
push esi
call fcn.00496910
add esp, 0xc
mov ecx, esi
xor edi, edi
lea edx, [esp + 0x1e8]
lea esi, [esp + 0x268]
cmp edi, 8
je 0x404a58
push 0xfffffffffffffff0
pop ebx
test ebx, ebx
je 0x404a4c
mov al, byte [edx + ebx + 0x10]
xor al, byte [esi + ebx + 0x10]
mov byte [ecx + ebx + 0x10], al
inc ebx
jmp 0x404a39
inc edi
add esi, 0x10
add edx, 0x10
add ecx, 0x10
jmp 0x404a31
mov ecx, dword [esp]
mov esi, dword [esp + 4]
add ecx, dword [esp + 0x10]
inc esi
push 0x80
lea eax, [esp + 0x16c]
push eax
push ecx
call fcn.00496910
add esp, 0xc
mov edi, dword [esp + 0x18]
jmp 0x404653
lea esi, [esp + 0x20]
and dword [esi + 0x80], 0
push 8
pop ebx
mov ecx, esi
call fcn.0040eeb7
inc dword [esp + 0xa0]
add esi, 0x10
dec ebx
jne 0x404a91
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x168]
mov eax, edi
and edi, 7
and eax, 0xfffffff8
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
push 0x80
push eax
push esi
call fcn.00496910
add esp, 0xc
push 8
pop edx
mov ecx, esi
mov dword [esp + 0xc], edi
push edi
call fcn.00402cd6
pop ecx
mov edi, edx
mov esi, eax
mov ebx, eax
mov dword [esp], edx
shl edi, 4
test edi, edi
je 0x404b1d
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x20]
call fcn.00404c55
movdqu xmm0, xmmword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.00401306
mov ebx, dword [esp + 4]
add edi, 0xfffffff0
jmp 0x404aeb
mov eax, dword [esp + 8]
shl eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x10], eax
xor eax, eax
cmp eax, dword [esp + 0xc]
je 0x404ba5
cmp eax, dword [esp]
je 0x404bad
mov ecx, dword [esp + 0x10]
lea edi, [eax + 1]
shl eax, 4
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x14]
movq xmm0, qword [ecx + eax]
movq xmm1, qword [ecx + eax + 8]
lea ecx, [esp + 0x20]
movq qword [esp + 0x270], xmm1
movq qword [esp + 0x268], xmm0
call fcn.0040eeb7
push 0xfffffffffffffff0
pop eax
test eax, eax
je 0x404b89
mov cl, byte [esi + eax + 0x10]
xor cl, byte [esp + eax + 0x278]
mov byte [esp + eax + 0x30], cl
inc eax
jmp 0x404b73
movq xmm0, qword [esp + 0x20]
movq xmm1, qword [esp + 0x28]
add esi, 0x10
mov eax, edi
movq qword [ebx + 8], xmm1
movq qword [ebx], xmm0
jmp 0x404b2e
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
mov edx, ecx
push 0x4a9818
call fcn.004a5260
pop eax
ud2