Function at 0x428b50
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x3a0
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0xc]
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov ebx, dword [edx + 8]
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
and edx, 7
cmp ecx, 8
mov dword [esp + 0x1c], edx
jb 0x4293e5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 8], ebx
movaps xmm2, xmmword [eax + 0x10]
movaps xmm1, xmmword [eax + 0x20]
movdqa xmm0, xmmword [eax]
shr ecx, 3
movaps xmmword [esp + 0x60], xmm2
movaps xmmword [esp + 0x50], xmm1
movaps xmm2, xmmword [eax + 0x30]
movaps xmm1, xmmword [eax + 0x40]
movdqa xmmword [esp + 0x1d0], xmm0
movaps xmmword [esp + 0x90], xmm2
movaps xmmword [esp + 0x20], xmm1
movaps xmm2, xmmword [eax + 0x50]
movaps xmm1, xmmword [eax + 0x60]
movaps xmmword [esp + 0x40], xmm2
movaps xmmword [esp + 0x80], xmm1
movaps xmm2, xmmword [eax + 0x70]
movaps xmm1, xmmword [eax + 0x80]
movaps xmmword [esp + 0x70], xmm2
movaps xmmword [esp + 0x30], xmm1
movaps xmm2, xmmword [eax + 0x90]
movaps xmm1, xmmword [eax + 0xa0]
movaps xmmword [esp + 0xf0], xmm2
movaps xmmword [esp + 0xe0], xmm1
movaps xmm2, xmmword [eax + 0xb0]
movaps xmm1, xmmword [eax + 0xc0]
movaps xmmword [esp + 0xd0], xmm2
movaps xmmword [esp + 0xc0], xmm1
movdqa xmm2, xmmword [eax + 0xd0]
movdqa xmm1, xmmword [eax + 0xe0]
movdqa xmmword [esp + 0x160], xmm2
movdqa xmmword [esp + 0xb0], xmm1
nop dword [eax]
mov dword [esp + 0xa8], esi
mov esi, 0x80
mov dword [esp + 0xac], ecx
push esi
push 0
lea ebx, [esp + 0x288]
push ebx
call fcn.00588b30
add esp, 0xc
push esi
push 0
push ebx
call fcn.00588b30
add esp, 0xc
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov ebx, dword [edi + 4]
movaps xmm0, xmmword [esp + 0x1d0]
mov esi, dword [esi + 8]
lea edi, [ecx + eax]
mov dword [esp + 0x280], edx
mov dword [esp + 0x284], ebx
mov dword [esp + 0x310], edx
mov dword [esp + 0x314], ebx
mov dword [esp + 0x150], edx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x130], edx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x110], edx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
bswap edi
mov dword [esp + 0x288], esi
mov dword [esp + 0x28c], edi
lea edi, [ecx + eax + 1]
mov dword [esp + 0x318], esi
mov dword [esp + 0x158], esi
mov dword [esp + 0x148], esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x128], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x108], esi
mov esi, dword [esp + 0xa8]
bswap edi
mov dword [esp + 0x31c], edi
lea edi, [ecx + eax + 2]
bswap edi
mov dword [esp + 0x15c], edi
lea edi, [ecx + eax + 3]
bswap edi
mov dword [esp + 0x14c], edi
lea edi, [ecx + eax + 4]
bswap edi
mov dword [esp + 0x13c], edi
lea edi, [ecx + eax + 5]
bswap edi
mov dword [esp + 0x12c], edi
lea edi, [ecx + eax + 6]
lea ecx, [ecx + eax + 7]
add eax, 8
bswap edi
bswap ecx
mov dword [esp + 0x11c], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10c], ecx
mov dword [edi + 0x10], eax
mov eax, 0x80
movaps xmm1, xmmword [esp + 0x100]
movups xmm2, xmmword [edx + esi]
xorps xmm1, xmm0
movaps xmmword [esp + 0x270], xmm2
movups xmm2, xmmword [edx + esi + 0x20]
movaps xmmword [esp + 0x1c0], xmm1
movaps xmm1, xmmword [esp + 0x110]
movaps xmmword [esp + 0x230], xmm2
movups xmm2, xmmword [edx + esi + 0x40]
xorps xmm1, xmm0
movaps xmmword [esp + 0x1b0], xmm1
movaps xmm1, xmmword [esp + 0x120]
movaps xmmword [esp + 0x210], xmm2
movups xmm2, xmmword [edx + esi + 0x60]
xorps xmm1, xmm0
movaps xmmword [esp + 0x190], xmm1
movaps xmm1, xmmword [esp + 0x130]
movaps xmmword [esp + 0x1f0], xmm2
xorps xmm1, xmm0
movaps xmmword [esp + 0x170], xmm1
movaps xmm1, xmmword [esp + 0x140]
xorps xmm1, xmm0
movaps xmmword [esp + 0x180], xmm1
movaps xmm1, xmmword [esp + 0x150]
xorps xmm1, xmm0
movaps xmmword [esp + 0x1a0], xmm1
movaps xmm1, xmmword [esp + 0x310]
xorps xmm1, xmm0
movaps xmmword [esp + 0x240], xmm1
movaps xmm1, xmmword [esp + 0x280]
xorps xmm1, xmm0
movaps xmmword [esp + 0x260], xmm1
movups xmm1, xmmword [edx + esi + 0x10]
movaps xmmword [esp + 0x250], xmm1
movups xmm1, xmmword [edx + esi + 0x30]
movaps xmmword [esp + 0x220], xmm1
movups xmm1, xmmword [edx + esi + 0x50]
movaps xmmword [esp + 0x200], xmm1
movups xmm1, xmmword [edx + esi + 0x70]
movaps xmmword [esp + 0x1e0], xmm1
push eax
push 0
lea eax, [esp + 0x288]
push eax
call fcn.00588b30
mov ecx, dword [esp + 0xb8]
add esp, 0xc
movdqa xmm0, xmmword [esp + 0x1c0]
movdqa xmm7, xmmword [esp + 0x90]
movdqa xmm1, xmmword [esp + 0x20]
movdqa xmm6, xmmword [esp + 0xe0]
movdqa xmm4, xmmword [esp + 0xd0]
movdqa xmm2, xmmword [esp + 0xc0]
aesenc xmm0, xmmword [esp + 0x60]
movdqa xmm3, xmm1
aesenc xmm0, xmmword [esp + 0x50]
aesenc xmm0, xmm7
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0x80]
aesenc xmm0, xmmword [esp + 0x40]
movdqa xmm5, xmm1
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0x60]
aesenc xmm0, xmmword [esp + 0x70]
aesenc xmm0, xmmword [esp + 0x30]
aesenc xmm0, xmmword [esp + 0xf0]
aesenc xmm0, xmm6
aesenc xmm0, xmm4
aesenc xmm0, xmm2
aesenc xmm0, xmmword [esp + 0x160]
aesenclast xmm0, xmmword [esp + 0xb0]
pxor xmm0, xmmword [esp + 0x1e0]
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmm0, xmmword [esp + 0x1b0]
aesenc xmm0, xmm1
aesenc xmm0, xmmword [esp + 0x50]
aesenc xmm0, xmm7
movdqa xmm7, xmmword [esp + 0x30]
aesenc xmm0, xmm3
movdqa xmm3, xmmword [esp + 0xf0]
aesenc xmm0, xmmword [esp + 0x40]
aesenc xmm0, xmm5
movdqa xmm5, xmmword [esp + 0x50]
aesenc xmm0, xmmword [esp + 0x70]
aesenc xmm0, xmm7
aesenc xmm0, xmm3
aesenc xmm0, xmm6
movdqa xmm6, xmmword [esp + 0x70]
aesenc xmm0, xmm4
movdqa xmm4, xmmword [esp + 0x90]
aesenc xmm0, xmm2
movdqa xmm2, xmmword [esp + 0x160]
aesenc xmm0, xmm2
aesenclast xmm0, xmmword [esp + 0xb0]
pxor xmm0, xmmword [esp + 0x1f0]
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmm0, xmmword [esp + 0x190]
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0x60]
aesenc xmm0, xmm5
aesenc xmm0, xmm4
aesenc xmm0, xmmword [esp + 0x20]
aesenc xmm0, xmmword [esp + 0x40]
aesenc xmm0, xmmword [esp + 0x80]
aesenc xmm0, xmm6
aesenc xmm0, xmm7
movdqa xmm7, xmmword [esp + 0xc0]
aesenc xmm0, xmm3
movdqa xmm3, xmmword [esp + 0xe0]
aesenc xmm0, xmm3
aesenc xmm0, xmmword [esp + 0xd0]
aesenc xmm0, xmm7
aesenc xmm0, xmm2
movdqa xmm2, xmmword [esp + 0xb0]
aesenclast xmm0, xmm2
pxor xmm0, xmmword [esp + 0x200]
movdqa xmmword [esp + 0x190], xmm0
movdqa xmm0, xmmword [esp + 0x170]
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0xf0]
aesenc xmm0, xmm5
movdqa xmm5, xmmword [esp + 0x40]
aesenc xmm0, xmm4
movdqa xmm4, xmmword [esp + 0xd0]
aesenc xmm0, xmmword [esp + 0x20]
aesenc xmm0, xmm5
aesenc xmm0, xmmword [esp + 0x80]
aesenc xmm0, xmm6
aesenc xmm0, xmmword [esp + 0x30]
aesenc xmm0, xmm1
aesenc xmm0, xmm3
movdqa xmm3, xmmword [esp + 0x160]
aesenc xmm0, xmm4
aesenc xmm0, xmm7
movdqa xmm7, xmmword [esp + 0x80]
aesenc xmm0, xmm3
aesenclast xmm0, xmm2
movdqa xmm2, xmmword [esp + 0x90]
pxor xmm0, xmmword [esp + 0x210]
movdqa xmmword [esp + 0x170], xmm0
movdqa xmm0, xmmword [esp + 0x180]
aesenc xmm0, xmmword [esp + 0x60]
aesenc xmm0, xmmword [esp + 0x50]
aesenc xmm0, xmm2
aesenc xmm0, xmmword [esp + 0x20]
aesenc xmm0, xmm5
movdqa xmm5, xmmword [esp + 0xb0]
aesenc xmm0, xmm7
aesenc xmm0, xmm6
movdqa xmm6, xmmword [esp + 0x30]
aesenc xmm0, xmm6
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0xe0]
aesenc xmm0, xmm1
aesenc xmm0, xmm4
movdqa xmm4, xmmword [esp + 0x50]
aesenc xmm0, xmmword [esp + 0xc0]
aesenc xmm0, xmm3
aesenclast xmm0, xmm5
pxor xmm0, xmmword [esp + 0x220]
movdqa xmmword [esp + 0x180], xmm0
movdqa xmm0, xmmword [esp + 0x1a0]
aesenc xmm0, xmmword [esp + 0x60]
aesenc xmm0, xmm4
aesenc xmm0, xmm2
movdqa xmm2, xmmword [esp + 0xc0]
aesenc xmm0, xmmword [esp + 0x20]
aesenc xmm0, xmmword [esp + 0x40]
aesenc xmm0, xmm7
aesenc xmm0, xmmword [esp + 0x70]
aesenc xmm0, xmm6
movdqa xmm6, xmmword [esp + 0x60]
aesenc xmm0, xmmword [esp + 0xf0]
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0xd0]
aesenc xmm0, xmm1
aesenc xmm0, xmm2
aesenc xmm0, xmm3
aesenclast xmm0, xmm5
movdqa xmm5, xmmword [esp + 0x70]
pxor xmm0, xmmword [esp + 0x230]
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmm0, xmmword [esp + 0x240]
aesenc xmm0, xmm6
aesenc xmm0, xmm4
movdqa xmm4, xmmword [esp + 0x40]
aesenc xmm0, xmmword [esp + 0x90]
aesenc xmm0, xmmword [esp + 0x20]
aesenc xmm0, xmm4
aesenc xmm0, xmm7
movdqa xmm7, xmmword [esp + 0xf0]
aesenc xmm0, xmm5
aesenc xmm0, xmmword [esp + 0x30]
aesenc xmm0, xmm7
aesenc xmm0, xmmword [esp + 0xe0]
aesenc xmm0, xmm1
movdqa xmm1, xmmword [esp + 0x260]
aesenc xmm0, xmm2
movdqa xmm2, xmmword [esp + 0xb0]
aesenc xmm0, xmm3
aesenc xmm1, xmm6
aesenc xmm1, xmmword [esp + 0x50]
aesenclast xmm0, xmm2
pxor xmm0, xmmword [esp + 0x250]
aesenc xmm1, xmmword [esp + 0x90]
aesenc xmm1, xmmword [esp + 0x20]
aesenc xmm1, xmm4
aesenc xmm1, xmmword [esp + 0x80]
aesenc xmm1, xmm5
aesenc xmm1, xmmword [esp + 0x30]
aesenc xmm1, xmm7
aesenc xmm1, xmmword [esp + 0xe0]
aesenc xmm1, xmmword [esp + 0xd0]
aesenc xmm1, xmmword [esp + 0xc0]
aesenc xmm1, xmm3
aesenclast xmm1, xmm2
movaps xmm2, xmmword [esp + 0x1a0]
pxor xmm1, xmmword [esp + 0x270]
movdqu xmmword [ebx + esi], xmm1
movaps xmm1, xmmword [esp + 0x180]
movdqu xmmword [ebx + esi + 0x10], xmm0
movups xmmword [ebx + esi + 0x20], xmm2
movaps xmm2, xmmword [esp + 0x170]
movups xmmword [ebx + esi + 0x30], xmm1
movaps xmm1, xmmword [esp + 0x190]
movups xmmword [ebx + esi + 0x40], xmm2
movdqa xmm2, xmmword [esp + 0x1b0]
movups xmmword [ebx + esi + 0x50], xmm1
movdqa xmm1, xmmword [esp + 0x1c0]
movdqu xmmword [ebx + esi + 0x60], xmm2
movdqu xmmword [ebx + esi + 0x70], xmm1
sub esi, 0xffffff80
dec ecx
jne 0x428c60
lea esi, [esp + 0x280]
push 0x80
push 0
push esi
call fcn.00588b30
add esp, 0xc
lea edi, [esp + 0x310]
push 0x80
push esi
push edi
call fcn.005885b0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4295ae
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0xc]
movaps xmm0, xmmword [esi]
and edx, 0xffffff8
movdqa xmm1, xmmword [esi + 0x90]
movdqa xmm2, xmmword [esi + 0xa0]
movdqa xmm3, xmmword [esi + 0xb0]
movdqa xmm4, xmmword [esi + 0xc0]
movdqa xmm5, xmmword [esi + 0xd0]
movdqa xmm6, xmmword [esi + 0xe0]
shl edx, 4
add eax, edx
add dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov eax, ecx
movaps xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [esi + 0x10]
shl eax, 4
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [esi + 0x20]
movaps xmmword [esp + 0x50], xmm0
movaps xmm0, xmmword [esi + 0x30]
movaps xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [esi + 0x40]
movaps xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [esi + 0x50]
movaps xmmword [esp + 0x90], xmm0
movaps xmm0, xmmword [esi + 0x60]
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esi + 0x70]
movaps xmmword [esp + 0x70], xmm0
movdqa xmm0, xmmword [esi + 0x80]
nop dword [eax]
movsd xmm7, qword [ebx]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
movsd qword [esp + 0x280], xmm7
add edx, ecx
inc ecx
add eax, 0xfffffff0
mov esi, dword [ebx + 8]
bswap edx
mov dword [esp + 0x288], esi
mov dword [esp + 0x28c], edx
movdqa xmm7, xmmword [esp + 0x280]
mov dword [ebx + 0x10], ecx
pxor xmm7, xmmword [esp + 0x20]
aesenc xmm7, xmmword [esp + 0x60]
aesenc xmm7, xmmword [esp + 0x50]
aesenc xmm7, xmmword [esp + 0x40]
aesenc xmm7, xmmword [esp + 0x30]
aesenc xmm7, xmmword [esp + 0x90]
aesenc xmm7, xmmword [esp + 0x80]
aesenc xmm7, xmmword [esp + 0x70]
aesenc xmm7, xmm0
aesenc xmm7, xmm1
aesenc xmm7, xmm2
aesenc xmm7, xmm3
aesenc xmm7, xmm4
aesenc xmm7, xmm5
aesenclast xmm7, xmm6
movdqu xmmword [edi], xmm7
lea edi, [edi + 0x10]
jne 0x4294d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
shl edx, 4
nop word cs:[eax + eax]
movdqu xmm0, xmmword [esi + eax]
movdqu xmm1, xmmword [esp + eax + 0x310]
pxor xmm1, xmm0
movdqu xmmword [ecx + eax], xmm1
add eax, 0x10
cmp edx, eax
jne 0x429590
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret