Function at 0x40eb50
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, 0x98
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, ecx
push ecx
push edi
call fcn.00472020
mov eax, dword [edi + 0xc0]
add esp, 8
xor eax, dword [esi + 0x23]
mov ecx, edi
mov edx, dword [edi + 0x1a0]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xc4]
xor eax, dword [esi + 0x27]
mov dword [ebp - 0x34], eax
call fcn.0047d820
mov ecx, dword [edi + 0x1a0]
mov eax, dword [edi + 0x28]
xor eax, dword [edi + 8]
mov edx, dword [edi + 0x20]
xor edx, dword [edi]
mov esi, dword [edi + 0x24]
xor esi, dword [edi + 4]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edi + 0x2c]
xor ecx, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x3c]
xor eax, dword [edi + 0x1c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [edi + 0x38]
xor ecx, dword [edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x30]
xor ecx, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x34]
movq xmm0, qword [ebp - 0x10]
xor eax, dword [edi + 0x14]
mov edi, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
movq xmm3, qword [ebp - 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x68], edx
punpcklqdq xmm3, xmm0
lea eax, [esi + 8]
mov dword [ebp - 0x48], 0x40000
mov dword [ebp - 0x6c], eax
nop dword [eax]
nop word [eax + eax]
movq xmm0, qword [ebp - 0x60]
and edi, 0xffff0
movq xmm1, qword [ebp - 0x68]
punpcklqdq xmm1, xmm0
push 0
movups xmm2, xmmword [edi + esi]
aesenc xmm2, xmm1
movaps xmm0, xmm2
movaps xmmword [ebp - 0x90], xmm2
pxor xmm0, xmm3
movups xmmword [edi + esi], xmm0
movaps xmm0, xmm2
mov dl, byte [esi + edi + 0xb]
mov al, dl
movzx ecx, dl
and al, 1
shr ecx, 2
add al, al
psrldq xmm0, 4
and ecx, 0xc
or ecx, eax
mov eax, 0x75310
shr eax, cl
and al, 0x30
xor al, dl
movd edx, xmm0
mov byte [esi + edi + 0xb], al
xor edi, edi
movd eax, xmm2
push edx
push 0
or edi, eax
mov dword [ebp - 0x70], edx
mov eax, edi
and eax, 0xffff0
lea ecx, [eax + esi]
add eax, dword [ebp - 0x6c]
mov esi, dword [ecx]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [eax + 4]
push esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xc], eax
call fcn.0042bf70
push 0
push edi
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov esi, edx
call fcn.0042bf70
push 0
push edi
push 0
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], edx
call fcn.0042bf70
mov edi, eax
mov ecx, edx
mov eax, dword [ebp - 0x1c]
add edi, eax
adc ecx, esi
mov dword [ebp - 0x74], ecx
cmp ecx, esi
ja 0x40ed1b
jb 0x40ed0b
cmp edi, eax
jae 0x40ed1b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
jmp 0x40ed2f
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
xor esi, esi
add esi, eax
adc edi, dword [ebp - 0x54]
cmp edi, dword [ebp - 0x54]
ja 0x40ed54
jb 0x40ed44
cmp esi, eax
jae 0x40ed54
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
jmp 0x40ed68
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
push 0
push dword [ebp - 0x70]
push 0
push dword [ebp - 0x14]
call fcn.0042bf70
add eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x40]
adc edx, 0
movaps xmm3, xmmword [ebp - 0x90]
add eax, dword [ebp - 0x24]
adc edx, dword [ebp - 0x28]
add eax, dword [ebp - 4]
adc edx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x44]
adc eax, edx
mov edx, dword [ebp - 0x78]
add esi, dword [ebp - 0x30]
adc edi, dword [ebp - 0x38]
xor esi, dword [ebp - 0x2c]
xor edi, dword [ebp - 0x34]
mov dword [edx], ecx
xor ecx, dword [ebp - 0x3c]
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x7c]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x68], ecx
mov dword [edx], esi
mov dword [edx + 4], edi
mov edx, dword [ebp - 0x80]
xor edx, esi
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0xc]
xor edx, dword [ebp - 0x2c]
xor esi, edi
xor esi, dword [ebp - 0x34]
mov edi, ecx
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x5c], esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xc], eax
jne 0x40ec30
mov esi, dword [ebx + 0xc]
mov edx, esi
mov ecx, dword [esi + 0x1a0]
call fcn.0047d490
mov ecx, esi
call fcn.00471710
movzx eax, byte [esi]
push dword [ebx + 8]
and eax, 3
push 0xc8
push esi
mov eax, dword [eax*4 + 0x495ed0]
call eax
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret