Function at 0x42f2d0
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, 0x200
mov eax, dword [edx]
mov esi, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov ecx, edx
mov dword [esp + 0x24], edx
and ecx, 7
cmp edx, 8
mov dword [esp + 0x2c], ecx
jb 0x42fa65
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
movaps xmm2, xmmword [ecx + 0x10]
movaps xmm1, xmmword [ecx + 0x20]
movdqa xmm0, xmmword [ecx]
shr edi, 3
movaps xmmword [esp + 0xe0], xmm2
movaps xmmword [esp + 0xd0], xmm1
movaps xmm2, xmmword [ecx + 0x30]
movaps xmm1, xmmword [ecx + 0x40]
movdqa xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0xc0], xmm2
movaps xmmword [esp + 0x50], xmm1
movaps xmm2, xmmword [ecx + 0x50]
movaps xmm1, xmmword [ecx + 0x60]
movaps xmmword [esp + 0x40], xmm2
movaps xmmword [esp + 0x30], xmm1
movaps xmm2, xmmword [ecx + 0x70]
movaps xmm1, xmmword [ecx + 0x80]
movaps xmmword [esp + 0x100], xmm2
movaps xmmword [esp + 0xb0], xmm1
movaps xmm2, xmmword [ecx + 0x90]
movaps xmm1, xmmword [ecx + 0xa0]
movaps xmmword [esp + 0xa0], xmm2
movaps xmmword [esp + 0x90], xmm1
movaps xmm2, xmmword [ecx + 0xb0]
movaps xmm1, xmmword [ecx + 0xc0]
movaps xmmword [esp + 0x80], xmm2
movaps xmmword [esp + 0x70], xmm1
movdqa xmm2, xmmword [ecx + 0xd0]
movdqa xmm1, xmmword [ecx + 0xe0]
movdqa xmmword [esp + 0x140], xmm2
movdqa xmmword [esp + 0x120], xmm1
nop dword [eax + eax]
mov eax, dword [esp]
mov dword [esp + 0x11c], edi
mov esi, dword [esp]
mov edi, dword [eax + 0x10]
mov eax, dword [esp]
mov ebx, dword [eax + 0x14]
mov eax, edi
add eax, 8
mov dword [esi + 0x10], eax
mov eax, dword [esp]
mov ecx, ebx
adc ecx, 0
mov dword [eax + 0x14], ecx
mov eax, dword [esp]
add edi, dword [eax]
mov eax, dword [esp]
adc ebx, dword [eax + 4]
mov eax, edi
mov esi, edi
mov dword [esp + 0xc], edi
add eax, 7
movd xmm2, eax
mov ecx, ebx
mov eax, ebx
adc ecx, 0
movd xmm4, ecx
mov ecx, edi
add ecx, 6
punpckldq xmm2, xmm4
movdqa xmm4, xmmword [esp + 0x100]
adc eax, 0
add esi, 5
movd xmm3, ecx
mov ecx, ebx
movd xmm0, eax
mov eax, ebx
movd xmm1, esi
mov esi, dword [esp]
adc eax, 0
movdqa xmmword [esp + 0x10], xmm0
movd xmm0, eax
mov eax, edi
mov edi, dword [esp + 8]
punpckldq xmm3, xmmword [esp + 0x10]
movdqa xmm7, xmm4
add eax, 4
movdqa xmmword [esp + 0x130], xmm0
adc ecx, 0
punpckldq xmm1, xmmword [esp + 0x130]
movd xmm0, ecx
mov ecx, dword [esp + 0xc]
movdqa xmmword [esp + 0x160], xmm0
movups xmm0, xmmword [edi + edx + 0x70]
add ecx, 3
movaps xmmword [esp + 0x150], xmm0
movq xmm0, qword [esi + 8]
punpcklqdq xmm2, xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmm0, xmmword [esp + 0xe0]
pxor xmm2, xmmword [esp + 0x60]
punpcklqdq xmm3, xmmword [esp + 0xf0]
punpcklqdq xmm1, xmmword [esp + 0xf0]
movdqa xmm6, xmm0
aesenc xmm2, xmm0
movdqa xmm0, xmmword [esp + 0x50]
pxor xmm3, xmmword [esp + 0x60]
pxor xmm1, xmmword [esp + 0x60]
aesenc xmm2, xmmword [esp + 0xd0]
aesenc xmm3, xmm6
movdqa xmm6, xmmword [esp + 0xd0]
aesenc xmm1, xmmword [esp + 0xe0]
aesenc xmm2, xmmword [esp + 0xc0]
aesenc xmm3, xmm6
aesenc xmm1, xmm6
movdqa xmm6, xmmword [esp + 0x70]
aesenc xmm2, xmm0
movups xmm0, xmmword [edi + edx + 0x60]
aesenc xmm2, xmmword [esp + 0x40]
movaps xmmword [esp + 0x10], xmm0
movdqa xmm0, xmmword [esp + 0xc0]
aesenc xmm2, xmmword [esp + 0x30]
aesenc xmm3, xmm0
aesenc xmm1, xmm0
movdqa xmm0, xmmword [esp + 0xa0]
aesenc xmm3, xmmword [esp + 0x50]
aesenc xmm2, xmm4
aesenc xmm1, xmmword [esp + 0x50]
movdqa xmm4, xmmword [esp + 0x140]
aesenc xmm2, xmmword [esp + 0xb0]
aesenc xmm3, xmmword [esp + 0x40]
aesenc xmm1, xmmword [esp + 0x40]
movdqa xmm5, xmm4
aesenc xmm2, xmmword [esp + 0xa0]
aesenc xmm3, xmmword [esp + 0x30]
aesenc xmm1, xmmword [esp + 0x30]
aesenc xmm2, xmmword [esp + 0x90]
aesenc xmm3, xmm7
aesenc xmm1, xmmword [esp + 0x100]
movups xmm7, xmmword [edi + edx + 0x40]
aesenc xmm3, xmmword [esp + 0xb0]
aesenc xmm2, xmmword [esp + 0x80]
movaps xmmword [esp + 0x130], xmm7
movdqa xmm7, xmmword [esp + 0x100]
aesenc xmm3, xmmword [esp + 0xa0]
aesenc xmm2, xmmword [esp + 0x70]
aesenc xmm3, xmmword [esp + 0x90]
aesenc xmm2, xmm4
movdqa xmm4, xmmword [esp + 0x120]
aesenc xmm3, xmmword [esp + 0x80]
aesenclast xmm2, xmm4
pxor xmm2, xmmword [esp + 0x150]
aesenc xmm3, xmmword [esp + 0x70]
movdqa xmmword [esp + 0x150], xmm2
movd xmm2, eax
mov eax, ebx
adc eax, 0
punpckldq xmm2, xmmword [esp + 0x160]
aesenc xmm3, xmm5
movdqa xmm5, xmmword [esp + 0xb0]
aesenclast xmm3, xmm4
movd xmm4, eax
mov eax, dword [esp + 0xc]
pxor xmm3, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm4
movdqu xmm4, xmmword [edi + edx + 0x50]
punpcklqdq xmm2, xmmword [esp + 0xf0]
aesenc xmm1, xmm5
aesenc xmm1, xmm0
mov esi, eax
aesenc xmm1, xmmword [esp + 0x90]
pxor xmm2, xmmword [esp + 0x60]
add esi, 2
aesenc xmm1, xmmword [esp + 0x80]
aesenc xmm2, xmmword [esp + 0xe0]
aesenc xmm1, xmm6
aesenc xmm2, xmmword [esp + 0xd0]
aesenc xmm1, xmmword [esp + 0x140]
aesenc xmm2, xmmword [esp + 0xc0]
aesenclast xmm1, xmmword [esp + 0x120]
aesenc xmm2, xmmword [esp + 0x50]
pxor xmm1, xmm4
movd xmm4, ecx
mov ecx, ebx
punpckldq xmm4, xmmword [esp + 0x10]
adc ecx, 0
aesenc xmm2, xmmword [esp + 0x40]
punpcklqdq xmm4, xmmword [esp + 0xf0]
aesenc xmm2, xmmword [esp + 0x30]
pxor xmm4, xmmword [esp + 0x60]
aesenc xmm2, xmm7
aesenc xmm2, xmm5
movdqa xmm5, xmmword [esp + 0x140]
aesenc xmm4, xmmword [esp + 0xe0]
aesenc xmm2, xmm0
movd xmm0, ecx
mov ecx, eax
mov eax, ebx
aesenc xmm2, xmmword [esp + 0x90]
add ecx, 1
adc eax, 0
aesenc xmm4, xmmword [esp + 0xd0]
aesenc xmm2, xmmword [esp + 0x80]
aesenc xmm4, xmmword [esp + 0xc0]
aesenc xmm2, xmm6
movdqa xmm6, xmmword [esp + 0x90]
aesenc xmm2, xmm5
aesenclast xmm2, xmmword [esp + 0x120]
aesenc xmm4, xmmword [esp + 0x50]
pxor xmm2, xmmword [esp + 0x130]
movdqa xmmword [esp + 0x130], xmm0
movups xmm0, xmmword [edi + edx + 0x30]
aesenc xmm4, xmmword [esp + 0x40]
movaps xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [edi + edx + 0x20]
aesenc xmm4, xmmword [esp + 0x30]
aesenc xmm4, xmm7
movdqa xmm7, xmmword [esp + 0x80]
aesenc xmm4, xmmword [esp + 0xb0]
aesenc xmm4, xmmword [esp + 0xa0]
aesenc xmm4, xmm6
aesenc xmm4, xmm7
aesenc xmm4, xmmword [esp + 0x70]
aesenc xmm4, xmm5
movd xmm5, esi
mov esi, edi
punpckldq xmm5, xmmword [esp + 0x130]
aesenclast xmm4, xmmword [esp + 0x120]
punpcklqdq xmm5, xmmword [esp + 0xf0]
pxor xmm4, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
movdqa xmm0, xmmword [esp + 0x140]
pxor xmm5, xmmword [esp + 0x60]
aesenc xmm5, xmmword [esp + 0xe0]
aesenc xmm5, xmmword [esp + 0xd0]
aesenc xmm5, xmmword [esp + 0xc0]
aesenc xmm5, xmmword [esp + 0x50]
aesenc xmm5, xmmword [esp + 0x40]
aesenc xmm5, xmmword [esp + 0x30]
aesenc xmm5, xmmword [esp + 0x100]
aesenc xmm5, xmmword [esp + 0xb0]
aesenc xmm5, xmmword [esp + 0xa0]
aesenc xmm5, xmm6
movd xmm6, eax
mov eax, dword [esp + 4]
aesenc xmm5, xmm7
movdqa xmm7, xmmword [esp + 0x120]
aesenc xmm5, xmmword [esp + 0x70]
aesenc xmm5, xmm0
aesenclast xmm5, xmm7
pxor xmm5, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm6
movd xmm6, ecx
punpckldq xmm6, xmmword [esp + 0x10]
punpcklqdq xmm6, xmmword [esp + 0xf0]
pxor xmm6, xmmword [esp + 0x60]
aesenc xmm6, xmmword [esp + 0xe0]
aesenc xmm6, xmmword [esp + 0xd0]
aesenc xmm6, xmmword [esp + 0xc0]
aesenc xmm6, xmmword [esp + 0x50]
aesenc xmm6, xmmword [esp + 0x40]
aesenc xmm6, xmmword [esp + 0x30]
aesenc xmm6, xmmword [esp + 0x100]
aesenc xmm6, xmmword [esp + 0xb0]
aesenc xmm6, xmmword [esp + 0xa0]
aesenc xmm6, xmmword [esp + 0x90]
aesenc xmm6, xmmword [esp + 0x80]
aesenc xmm6, xmmword [esp + 0x70]
aesenc xmm6, xmm0
movdqu xmm0, xmmword [edi + edx + 0x10]
aesenclast xmm6, xmm7
movd xmm7, ebx
pxor xmm6, xmm0
movd xmm0, dword [esp + 0xc]
punpckldq xmm0, xmm7
movdqu xmm7, xmmword [edi + edx]
mov edi, dword [esp + 0x11c]
punpcklqdq xmm0, xmmword [esp + 0xf0]
pxor xmm0, xmmword [esp + 0x60]
aesenc xmm0, xmmword [esp + 0xe0]
aesenc xmm0, xmmword [esp + 0xd0]
aesenc xmm0, xmmword [esp + 0xc0]
aesenc xmm0, xmmword [esp + 0x50]
aesenc xmm0, xmmword [esp + 0x40]
aesenc xmm0, xmmword [esp + 0x30]
aesenc xmm0, xmmword [esp + 0x100]
aesenc xmm0, xmmword [esp + 0xb0]
aesenc xmm0, xmmword [esp + 0xa0]
aesenc xmm0, xmmword [esp + 0x90]
aesenc xmm0, xmmword [esp + 0x80]
aesenc xmm0, xmmword [esp + 0x70]
aesenc xmm0, xmmword [esp + 0x140]
aesenclast xmm0, xmmword [esp + 0x120]
pxor xmm0, xmm7
movdqu xmmword [eax + edx], xmm0
movdqu xmmword [eax + edx + 0x10], xmm6
movdqu xmmword [eax + edx + 0x20], xmm5
movdqu xmmword [eax + edx + 0x30], xmm4
movdqu xmmword [eax + edx + 0x40], xmm2
movdqu xmmword [eax + edx + 0x50], xmm1
movdqa xmm1, xmmword [esp + 0x150]
movdqu xmmword [eax + edx + 0x60], xmm3
movdqu xmmword [eax + edx + 0x70], xmm1
sub edx, 0xffffff80
dec edi
jne 0x42f3e0
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp]
pxor xmm0, xmm0
movdqu xmmword [esp + 0x1ec], xmm0
movdqu xmmword [esp + 0x1dc], xmm0
movdqu xmmword [esp + 0x1cc], xmm0
movdqu xmmword [esp + 0x1bc], xmm0
movdqu xmmword [esp + 0x1ac], xmm0
movdqu xmmword [esp + 0x19c], xmm0
movdqu xmmword [esp + 0x18c], xmm0
movdqu xmmword [esp + 0x17c], xmm0
test ecx, ecx
je 0x42fcae
mov edx, dword [esp + 0x24]
mov ebx, dword [edi + 0x14]
shl ecx, 4
and edx, 0xffffff8
shl edx, 4
add esi, edx
add eax, edx
mov edx, dword [edi + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, edi
lea eax, [esp + 0x17c]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 8]
movaps xmm1, xmmword [esi + 0x10]
movaps xmm2, xmmword [esi + 0x20]
movdqa xmm0, xmmword [esi]
movdqa xmm3, xmmword [esi + 0xb0]
movdqa xmm4, xmmword [esi + 0xc0]
movdqa xmm5, xmmword [esi + 0xd0]
movdqa xmm6, xmmword [esi + 0xe0]
mov dword [esp + 0x50], edx
mov edx, dword [edi]
movaps xmmword [esp + 0xf0], xmm1
movaps xmmword [esp + 0xe0], xmm2
movaps xmm1, xmmword [esi + 0x30]
movaps xmm2, xmmword [esi + 0x40]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], edx
mov edx, dword [edi + 4]
movaps xmmword [esp + 0xd0], xmm1
movaps xmmword [esp + 0xc0], xmm2
movaps xmm1, xmmword [esi + 0x50]
movaps xmm2, xmmword [esi + 0x60]
mov dword [esp + 0x80], edx
mov edx, dword [edi + 0x10]
movaps xmmword [esp + 0xb0], xmm1
movaps xmmword [esp + 0xa0], xmm2
movaps xmm1, xmmword [esi + 0x70]
movaps xmm2, xmmword [esi + 0x80]
movaps xmmword [esp + 0x90], xmm1
movaps xmmword [esp + 0x70], xmm2
movdqa xmm1, xmmword [esi + 0x90]
movdqa xmm2, xmmword [esi + 0xa0]
movdqa xmmword [esp + 0x100], xmm1
mov esi, edx
movd xmm1, dword [esp + 0x60]
add esi, dword [esp + 0x40]
movd xmm7, esi
mov esi, ebx
adc esi, dword [esp + 0x80]
add edx, 1
adc ebx, 0
add ecx, 0xfffffff0
movd xmm0, esi
mov esi, edi
punpckldq xmm7, xmm0
movd xmm0, dword [esp + 0x50]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ebx
punpckldq xmm0, xmm1
punpcklqdq xmm7, xmm0
pxor xmm7, xmmword [esp + 0x30]
aesenc xmm7, xmmword [esp + 0xf0]
aesenc xmm7, xmmword [esp + 0xe0]
aesenc xmm7, xmmword [esp + 0xd0]
aesenc xmm7, xmmword [esp + 0xc0]
aesenc xmm7, xmmword [esp + 0xb0]
aesenc xmm7, xmmword [esp + 0xa0]
aesenc xmm7, xmmword [esp + 0x90]
aesenc xmm7, xmmword [esp + 0x70]
aesenc xmm7, xmmword [esp + 0x100]
aesenc xmm7, xmm2
aesenc xmm7, xmm3
aesenc xmm7, xmm4
aesenc xmm7, xmm5
aesenclast xmm7, xmm6
movdqu xmmword [eax], xmm7
lea eax, [eax + 0x10]
jne 0x42fbb0
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 4]
xor eax, eax
shl edx, 4
nop word cs:[eax + eax]
nop
movdqu xmm0, xmmword [edi + eax]
movdqu xmm1, xmmword [esp + eax + 0x17c]
pxor xmm1, xmm0
movdqu xmmword [ecx + eax], xmm1
add eax, 0x10
cmp edx, eax
jne 0x42fc90
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret