Function at 0x41ed40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
movsd xmm3, qword [edx]
movsd xmm5, qword [edx + 0x20]
movaps xmm7, xmm3
subsd xmm3, qword [edx + 0x10]
movsd xmm2, qword [edx + 8]
addsd xmm7, qword [edx + 0x10]
movsd xmm4, qword [edx + 0x28]
movaps xmm6, xmm2
subsd xmm2, qword [edx + 0x18]
addsd xmm6, qword [edx + 0x18]
movsd qword [ebp - 0x20], xmm3
movaps xmm3, xmm5
addsd xmm3, qword [edx + 0x30]
subsd xmm5, qword [edx + 0x30]
movsd qword [ebp - 0x18], xmm2
movaps xmm2, xmm4
addsd xmm2, qword [edx + 0x38]
subsd xmm4, qword [edx + 0x38]
movsd xmm1, qword [ebp - 0x18]
movaps xmm0, xmm3
addsd xmm0, xmm7
subsd xmm7, xmm3
movsd xmm3, qword [edx + 0x40]
mov edi, dword [ebx + 8]
movsd qword [edx], xmm0
lea esi, [edi + 0x10]
movaps xmm0, xmm2
movsd qword [edx + 0x20], xmm7
addsd xmm0, xmm6
movsd xmm7, qword [edx + 0x60]
subsd xmm6, xmm2
movsd xmm2, qword [edx + 0x48]
movsd qword [edx + 8], xmm0
movsd xmm0, qword [ebp - 0x20]
subsd xmm0, xmm4
movsd qword [edx + 0x28], xmm6
addsd xmm4, qword [ebp - 0x20]
movaps xmm6, xmm3
subsd xmm3, qword [edx + 0x50]
addsd xmm6, qword [edx + 0x50]
movsd qword [edx + 0x10], xmm0
movaps xmm0, xmm5
addsd xmm0, xmm1
movsd qword [edx + 0x30], xmm4
subsd xmm1, xmm5
movaps xmm4, xmm2
subsd xmm2, qword [edx + 0x58]
movsd xmm5, qword [edx + 0x68]
addsd xmm4, qword [edx + 0x58]
movsd qword [edx + 0x18], xmm0
movsd qword [ebp - 0x20], xmm3
movaps xmm3, xmm7
addsd xmm3, qword [edx + 0x70]
subsd xmm7, qword [edx + 0x70]
movsd qword [edx + 0x38], xmm1
movsd xmm0, qword [esi]
movsd qword [ebp - 0x10], xmm0
movsd qword [ebp - 0x18], xmm2
movaps xmm0, xmm3
addsd xmm0, xmm6
movaps xmm2, xmm5
addsd xmm2, qword [edx + 0x78]
subsd xmm5, qword [edx + 0x78]
movaps xmm1, xmm7
subsd xmm6, xmm3
addsd xmm1, qword [ebp - 0x18]
movsd qword [edx + 0x40], xmm0
movaps xmm0, xmm2
subsd xmm2, xmm4
addsd xmm0, xmm4
movsd qword [edx + 0x68], xmm6
movsd xmm6, qword [ebp - 0x10]
movsd qword [edx + 0x60], xmm2
movsd xmm2, qword [ebp - 0x20]
subsd xmm2, xmm5
movsd qword [edx + 0x48], xmm0
movaps xmm0, xmm2
subsd xmm0, xmm1
mulsd xmm0, xmm6
movsd qword [edx + 0x50], xmm0
addsd xmm1, xmm2
subsd xmm7, qword [ebp - 0x18]
addsd xmm5, qword [ebp - 0x20]
mulsd xmm1, xmm6
movaps xmm0, xmm7
addsd xmm7, xmm5
subsd xmm0, xmm5
movsd qword [edx + 0x58], xmm1
mulsd xmm7, xmm6
mulsd xmm0, xmm6
movsd qword [edx + 0x78], xmm7
movsd qword [edx + 0x70], xmm0
cmp ecx, 0x10
jle 0x41f1e9
lea eax, [ecx - 0x11]
add edx, 0xa0
shr eax, 4
inc eax
movsd xmm0, qword [edi + 0x10]
add esi, 0x20
movsd qword [ebp - 8], xmm0
add edi, 0x10
movsd xmm7, qword [edx - 0x20]
movsd xmm5, qword [edx]
movsd xmm1, qword [esi - 8]
movsd xmm0, qword [edi + 8]
movsd xmm2, qword [esi - 0x10]
movaps xmm4, xmm0
addsd xmm4, xmm0
movsd qword [ebp - 0x20], xmm0
movaps xmm3, xmm2
movsd qword [ebp - 0x10], xmm1
movsd qword [ebp - 0x18], xmm2
subsd xmm5, qword [edx + 0x10]
movsd xmm6, qword [edx + 8]
movaps xmm0, xmm4
mulsd xmm4, xmm2
mulsd xmm0, xmm1
movsd xmm2, qword [edx - 0x18]
subsd xmm4, xmm1
movsd xmm1, qword [edx - 0x10]
subsd xmm6, qword [edx + 0x18]
subsd xmm3, xmm0
movups xmm0, xmmword [edx + 0x10]
movsd qword [ebp - 0x38], xmm4
movaps xmm4, xmm1
addsd xmm4, xmm7
movsd qword [ebp - 0x30], xmm3
subsd xmm7, xmm1
movsd xmm3, qword [edx - 8]
addsd xmm3, xmm2
subsd xmm2, qword [edx - 8]
movaps xmm1, xmm4
movsd qword [ebp - 0x28], xmm2
movups xmm2, xmmword [edx]
addpd xmm2, xmm0
movaps xmm0, xmm3
unpcklpd xmm1, xmm0
subsd xmm4, xmm2
movsd xmm0, qword [ebp - 0x20]
addpd xmm1, xmm2
unpckhpd xmm2, xmm2
movups xmmword [edx - 0x20], xmm1
movsd xmm1, qword [ebp - 8]
subsd xmm3, xmm2
mulsd xmm1, xmm4
movaps xmm2, xmm5
mulsd xmm0, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x20]
mulsd xmm0, xmm4
movsd xmm4, qword [ebp - 0x28]
addsd xmm2, xmm4
movsd qword [edx], xmm1
subsd xmm4, xmm5
movsd xmm1, qword [ebp - 8]
mulsd xmm1, xmm3
movaps xmm3, xmm7
subsd xmm3, xmm6
addsd xmm6, xmm7
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x10]
mulsd xmm0, xmm2
movsd qword [edx + 8], xmm1
movsd xmm1, qword [ebp - 0x18]
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x10]
mulsd xmm0, xmm3
movsd xmm3, qword [ebp - 0x38]
movsd qword [edx - 0x10], xmm1
movsd xmm1, qword [ebp - 0x18]
mulsd xmm1, xmm2
movsd xmm2, qword [ebp - 0x30]
addsd xmm0, xmm1
movaps xmm1, xmm2
mulsd xmm1, xmm6
movsd qword [edx - 8], xmm0
movaps xmm0, xmm3
mulsd xmm0, xmm4
mulsd xmm2, xmm4
movsd xmm4, qword [ebp - 8]
subsd xmm1, xmm0
mulsd xmm3, xmm6
addsd xmm4, xmm4
movsd xmm7, qword [edx + 0x20]
movsd xmm5, qword [edx + 0x40]
subsd xmm5, qword [edx + 0x50]
addsd xmm2, xmm3
movsd qword [edx + 0x10], xmm1
movsd xmm6, qword [edx + 0x48]
movaps xmm0, xmm4
subsd xmm6, qword [edx + 0x58]
movsd qword [edx + 0x18], xmm2
movsd xmm1, qword [esi + 8]
movsd xmm2, qword [esi]
mulsd xmm0, xmm1
movaps xmm3, xmm2
mulsd xmm4, xmm2
movsd qword [ebp - 0x10], xmm2
movsd xmm2, qword [edx + 0x28]
subsd xmm3, xmm0
movups xmm0, xmmword [edx + 0x50]
subsd xmm4, xmm1
movsd qword [ebp - 0x18], xmm1
movsd xmm1, qword [edx + 0x30]
movsd qword [ebp - 0x30], xmm3
movsd xmm3, qword [edx + 0x38]
addsd xmm3, xmm2
subsd xmm2, qword [edx + 0x38]
movsd qword [ebp - 0x28], xmm4
movaps xmm4, xmm1
addsd xmm4, xmm7
subsd xmm7, xmm1
movsd qword [ebp - 0x38], xmm2
movups xmm2, xmmword [edx + 0x40]
movaps xmm1, xmm4
addpd xmm2, xmm0
movaps xmm0, xmm3
unpcklpd xmm1, xmm0
subsd xmm4, xmm2
movsd xmm0, qword [ebp - 8]
addpd xmm1, xmm2
unpckhpd xmm2, xmm2
movups xmmword [edx + 0x20], xmm1
subsd xmm3, xmm2
movsd xmm2, qword [ebp - 0x20]
movaps xmm1, xmm2
mulsd xmm1, xmm4
mulsd xmm0, xmm3
mulsd xmm2, xmm3
movaps xmm3, xmm7
xorps xmm1, xmmword [0x4fe020]
subsd xmm3, xmm6
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 8]
mulsd xmm0, xmm4
addsd xmm6, xmm7
movsd xmm4, qword [ebp - 0x38]
movsd qword [edx + 0x40], xmm1
movsd xmm1, qword [ebp - 0x10]
subsd xmm0, xmm2
movaps xmm2, xmm5
mulsd xmm1, xmm3
addsd xmm2, xmm4
subsd xmm4, xmm5
movsd qword [edx + 0x48], xmm0
movsd xmm0, qword [ebp - 0x18]
mulsd xmm0, xmm2
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x18]
mulsd xmm0, xmm3
movsd qword [edx + 0x30], xmm1
movsd xmm1, qword [ebp - 0x10]
mulsd xmm1, xmm2
movsd xmm2, qword [ebp - 0x30]
addsd xmm0, xmm1
movaps xmm1, xmm2
mulsd xmm1, xmm6
movsd qword [edx + 0x38], xmm0
movsd xmm3, qword [ebp - 0x28]
movaps xmm0, xmm3
mulsd xmm2, xmm4
mulsd xmm0, xmm4
mulsd xmm3, xmm6
subsd xmm1, xmm0
addsd xmm2, xmm3
movsd qword [edx + 0x50], xmm1
movsd qword [edx + 0x58], xmm2
sub edx, 0xffffff80
sub eax, 1
jne 0x41ef02
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret