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.1008c5a0
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1008], 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 - 0x1018], ecx
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebx + 0x10]
push ecx
push eax
mov dword [ebp - 0x101c], edi
shr esi, 4
call fcn.10002b00
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 edi, dword [ebp - 0x1008]
mov eax, esi
mov edx, dword [ebp - 0x1004]
and eax, 0xfffffffc
movaps xmm6, xmmword [ebp - 0xf20]
movaps xmm7, xmmword [ebp - 0xf30]
movups xmm5, xmmword [edi]
mov ecx, dword [edx]
movaps xmm2, xmmword [ebp - 0xf40]
movaps xmm3, xmmword [ebp - 0xf50]
movaps xmm4, xmmword [ebp - 0xf60]
movaps xmm0, xmmword [ebp - 0x20]
mov edi, dword [ebp - 0x101c]
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1014], eax
jbe 0x10002957
mov edx, dword [ebp - 0x1010]
lea eax, [ecx + 0x30]
mov ecx, dword [ebp - 0x100c]
sub edx, ecx
mov dword [ebp - 0x1024], edx
mov edx, dword [ebp - 0x1014]
mov edi, dword [ebp - 0x1024]
dec edx
shr edx, 2
inc edx
mov dword [ebp - 0x1020], eax
lea eax, [ecx + 0x20]
mov dword [ebp - 0x1008], edx
mov edx, dword [ebp - 0x1004]
mov ecx, dword [ebp - 0x1020]
nop dword [eax]
movups xmm1, xmmword [eax - 0x20]
sub dword [ebp - 0x1008], 1
lea eax, [eax + 0x40]
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 0x10002700
movaps xmm2, xmmword [ebp - 0xf40]
movaps xmm3, xmmword [ebp - 0xf50]
movaps xmm4, xmmword [ebp - 0xf60]
movaps xmm0, xmmword [ebp - 0x20]
mov edi, dword [ebp - 0x101c]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x100c]
cmp eax, esi
jae 0x10002a0c
sub ecx, dword [ebp - 0x1010]
shl eax, 4
add eax, dword [ebp - 0x1010]
sub esi, dword [ebp - 0x1014]
nop word [eax + eax]
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 0x10002980
mov eax, dword [edx]
movzx esi, byte [edi + eax - 1]
mov eax, dword [ebp - 0x1018]
mov dword [eax], esi
lea eax, [esi - 1]
cmp eax, 0xf
ja 0x10002a70
mov ecx, 2
cmp esi, ecx
jb 0x10002a46
mov edx, dword [edx]
add edx, 0xfffffffe
add edx, edi
movzx eax, byte [edx]
cmp esi, eax
jne 0x10002a6a
inc ecx
dec edx
cmp ecx, esi
jbe 0x10002a33
mov edx, dword [ebp - 0x1004]
mov eax, dword [edx]
movzx eax, byte [edi + eax - 1]
sub edi, eax
mov eax, dword [ebp - 0x1018]
mov dword [eax], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x1018]
mov dword [eax], 0
push dword [edx]
call fcn.1008c593
mov ecx, dword [ebp - 0x1004]
add esp, 4
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret