Function at 0x10002590
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor
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
mov eax, 0x1028
call fcn.1008c580
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1014], ecx
mov ecx, dword [ebx + 0x18]
push esi
mov dword [ebp - 0x1004], ecx
mov ecx, dword [ebx + 0x1c]
push edi
mov edi, dword [ebx + 0xc]
mov esi, edi
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0x1008], eax
mov eax, dword [ebx + 0x10]
push ecx
push eax
mov dword [ebp - 0x1020], edi
shr esi, 4
call fcn.10002ae0
add esp, 8
xor eax, eax
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x1000]
movups xmmword [ebp + eax - 0x100], xmm0
add eax, 0x10
cmp eax, 0xe0
jle 0x10002610
movaps xmm0, xmmword [ebp - 0x100]
lea eax, [ebp - 0xf0]
movaps xmmword [ebp - 0xf20], xmm0
lea ecx, [ebp - 0xf30]
mov edx, 0xd
nop dword [eax]
lea eax, [eax + 0x10]
lea ecx, [ecx - 0x10]
aesimc xmm0, xmmword [eax - 0x10]
movups xmmword [ecx + 0x10], xmm0
sub edx, 1
jne 0x10002650
mov ecx, dword [ebp - 0x1014]
mov edx, esi
mov eax, dword [ebp - 0x1004]
and edx, 0xfffffffc
movaps xmm6, xmmword [ebp - 0xf20]
movaps xmm7, xmmword [ebp - 0xf30]
movups xmm5, xmmword [ecx]
mov eax, dword [eax]
movaps xmm2, xmmword [ebp - 0xf40]
movaps xmm3, xmmword [ebp - 0xf50]
movaps xmm4, xmmword [ebp - 0xf60]
movaps xmm0, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1018], edx
jbe 0x10002949
mov edx, dword [ebp - 0x100c]
add eax, 0x30
sub edx, ecx
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x101c], edx
lea eax, [ecx + 0x20]
mov edx, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1014]
dec edx
mov edi, dword [ebp - 0x101c]
shr edx, 2
inc edx
nop dword [eax + eax]
movups xmm1, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
sub edx, 1
movups xmm2, xmmword [eax - 0x50]
lea ecx, [ecx + 0x40]
xorps xmm0, xmm1
aesdec xmm0, xmmword [ebp - 0xff0]
aesdec xmm0, xmmword [ebp - 0xfe0]
aesdec xmm0, xmmword [ebp - 0xfd0]
aesdec xmm0, xmmword [ebp - 0xfc0]
aesdec xmm0, xmmword [ebp - 0xfb0]
aesdec xmm0, xmmword [ebp - 0xfa0]
aesdec xmm0, xmmword [ebp - 0xf90]
aesdec xmm0, xmmword [ebp - 0xf80]
aesdec xmm0, xmmword [ebp - 0xf70]
aesdec xmm0, xmmword [ebp - 0xf60]
aesdec xmm0, xmmword [ebp - 0xf50]
aesdec xmm0, xmmword [ebp - 0xf40]
aesdec xmm0, xmm7
aesdeclast xmm0, xmm6
xorps xmm0, xmm5
movaps xmm5, xmmword [ebp - 0xf40]
movups xmm3, xmmword [eax - 0x40]
movups xmm4, xmmword [eax - 0x30]
movups xmmword [ecx - 0x70], xmm0
movaps xmm0, xmmword [ebp - 0x20]
xorps xmm0, xmm2
aesdec xmm0, xmmword [ebp - 0xff0]
aesdec xmm0, xmmword [ebp - 0xfe0]
aesdec xmm0, xmmword [ebp - 0xfd0]
aesdec xmm0, xmmword [ebp - 0xfc0]
aesdec xmm0, xmmword [ebp - 0xfb0]
aesdec xmm0, xmmword [ebp - 0xfa0]
aesdec xmm0, xmmword [ebp - 0xf90]
aesdec xmm0, xmmword [ebp - 0xf80]
aesdec xmm0, xmmword [ebp - 0xf70]
aesdec xmm0, xmmword [ebp - 0xf60]
aesdec xmm0, xmmword [ebp - 0xf50]
aesdec xmm0, xmm5
aesdec xmm0, xmm7
aesdeclast xmm0, xmm6
xorps xmm0, xmm1
movups xmmword [ecx - 0x60], xmm0
movaps xmm0, xmmword [ebp - 0x20]
xorps xmm0, xmm3
aesdec xmm0, xmmword [ebp - 0xff0]
aesdec xmm0, xmmword [ebp - 0xfe0]
aesdec xmm0, xmmword [ebp - 0xfd0]
aesdec xmm0, xmmword [ebp - 0xfc0]
aesdec xmm0, xmmword [ebp - 0xfb0]
aesdec xmm0, xmmword [ebp - 0xfa0]
aesdec xmm0, xmmword [ebp - 0xf90]
aesdec xmm0, xmmword [ebp - 0xf80]
aesdec xmm0, xmmword [ebp - 0xf70]
aesdec xmm0, xmmword [ebp - 0xf60]
aesdec xmm0, xmmword [ebp - 0xf50]
aesdec xmm0, xmm5
aesdec xmm0, xmm7
aesdeclast xmm0, xmm6
xorps xmm0, xmm2
movups xmmword [edi + eax - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
xorps xmm0, xmm4
aesdec xmm0, xmmword [ebp - 0xff0]
aesdec xmm0, xmmword [ebp - 0xfe0]
aesdec xmm0, xmmword [ebp - 0xfd0]
aesdec xmm0, xmmword [ebp - 0xfc0]
aesdec xmm0, xmmword [ebp - 0xfb0]
aesdec xmm0, xmmword [ebp - 0xfa0]
aesdec xmm0, xmmword [ebp - 0xf90]
aesdec xmm0, xmmword [ebp - 0xf80]
aesdec xmm0, xmmword [ebp - 0xf70]
aesdec xmm0, xmmword [ebp - 0xf60]
aesdec xmm0, xmmword [ebp - 0xf50]
aesdec xmm0, xmm5
aesdec xmm0, xmm7
aesdeclast xmm0, xmm6
xorps xmm0, xmm3
movaps xmm5, xmm4
movups xmmword [ecx - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
jne 0x100026f0
movaps xmm2, xmmword [ebp - 0xf40]
movaps xmm3, xmmword [ebp - 0xf50]
movaps xmm4, xmmword [ebp - 0xf60]
movaps xmm0, xmmword [ebp - 0x20]
mov edi, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp - 0x1018]
cmp edx, esi
jae 0x100029f0
sub ecx, dword [ebp - 0x100c]
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x100c]
sub esi, edx
lea eax, [eax + 0x10]
movups xmm1, xmmword [ecx + eax - 0x10]
xorps xmm0, xmm1
aesdec xmm0, xmmword [ebp - 0xff0]
aesdec xmm0, xmmword [ebp - 0xfe0]
aesdec xmm0, xmmword [ebp - 0xfd0]
aesdec xmm0, xmmword [ebp - 0xfc0]
aesdec xmm0, xmmword [ebp - 0xfb0]
aesdec xmm0, xmmword [ebp - 0xfa0]
aesdec xmm0, xmmword [ebp - 0xf90]
aesdec xmm0, xmmword [ebp - 0xf80]
aesdec xmm0, xmmword [ebp - 0xf70]
aesdec xmm0, xmm4
aesdec xmm0, xmm3
aesdec xmm0, xmm2
aesdec xmm0, xmm7
aesdeclast xmm0, xmm6
xorps xmm0, xmm5
movaps xmm5, xmm1
movups xmmword [eax - 0x10], xmm0
movaps xmm0, xmmword [ebp - 0x20]
sub esi, 1
jne 0x10002964
mov esi, dword [ebp - 0x1004]
mov eax, dword [esi]
movzx ecx, byte [edi + eax - 1]
mov eax, dword [ebp - 0x1010]
mov dword [eax], ecx
test ecx, ecx
je 0x10002a63
cmp ecx, 0x10
ja 0x10002a63
mov edx, 2
cmp ecx, edx
jb 0x10002a33
mov esi, dword [esi]
add esi, 0xfffffffe
add esi, edi
nop
movzx eax, byte [esi]
cmp ecx, eax
jne 0x10002a57
inc edx
dec esi
cmp edx, ecx
jbe 0x10002a20
mov esi, dword [ebp - 0x1004]
mov eax, dword [esi]
movzx eax, byte [edi + eax - 1]
sub edi, eax
mov eax, dword [ebp - 0x1010]
mov dword [eax], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x1010]
mov dword [eax], 0
push dword [esi]
call fcn.1008c574
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi], 0
xor ecx, ebp
pop edi
pop esi
call fcn.1008c543
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret