Function at 0x41c180
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, 0x90
push esi
mov esi, dword [ebx + 8]
lea eax, [edx*4]
push edi
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
test edx, edx
jle 0x41c297
lea eax, [edx + edx*2]
lea ecx, [esi + eax*8]
lea eax, [esi + edx*8]
mov dword [ebp - 4], eax
mov eax, edx
shl eax, 4
add eax, esi
nop
mov edx, dword [ebp - 4]
movsd xmm3, qword [esi + edi*8]
movsd xmm6, qword [eax]
movsd xmm2, qword [esi + edi*8 + 8]
movsd xmm7, qword [edx]
movsd xmm5, qword [edx + 8]
addsd xmm7, xmm3
subsd xmm3, qword [edx]
movsd xmm4, qword [eax + 8]
addsd xmm5, xmm2
subsd xmm2, qword [edx + 8]
movsd qword [ebp - 0x48], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [ecx]
subsd xmm6, qword [ecx]
movsd qword [ebp - 0x28], xmm2
movaps xmm2, xmm4
addsd xmm2, qword [ecx + 8]
subsd xmm4, qword [ecx + 8]
movsd xmm1, qword [ebp - 0x28]
movaps xmm0, xmm3
addsd xmm0, xmm7
subsd xmm7, xmm3
movsd qword [esi + edi*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm5
subsd xmm5, xmm2
movsd qword [esi + edi*8 + 8], xmm0
add edi, 2
movsd xmm0, qword [ebp - 0x48]
subsd xmm0, xmm4
movsd qword [eax], xmm7
addsd xmm4, qword [ebp - 0x48]
movsd qword [eax + 8], xmm5
add eax, 0x10
movsd qword [edx], xmm0
movaps xmm0, xmm6
addsd xmm0, xmm1
subsd xmm1, xmm6
movsd qword [edx + 8], xmm0
add edx, 0x10
movsd qword [ecx], xmm4
movsd qword [ecx + 8], xmm1
add ecx, 0x10
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
cmp edi, edx
jl 0x41c1d0
mov eax, dword [ebx + 0xc]
movsd xmm0, qword [eax + 0x10]
lea eax, [edx*4]
lea edi, [eax + edx]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 4], edi
mov ecx, eax
cmp eax, edi
jge 0x41c3ce
lea eax, [eax + edx*2]
add eax, edx
lea edi, [esi + eax*8]
mov eax, dword [ebp - 4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x1c], eax
lea eax, [edx*4]
lea eax, [eax + edx*2]
lea eax, [esi + eax*8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
movsd xmm3, qword [esi + ecx*8]
movsd xmm6, qword [eax]
movsd xmm7, qword [edx]
addsd xmm6, xmm3
subsd xmm3, qword [eax]
movsd xmm2, qword [esi + ecx*8 + 8]
movsd xmm5, qword [edx + 8]
movaps xmm4, xmm2
subsd xmm2, qword [eax + 8]
addsd xmm4, qword [eax + 8]
movsd qword [ebp - 0x48], xmm3
movaps xmm3, xmm7
addsd xmm3, qword [edi]
subsd xmm7, qword [edi]
movsd qword [ebp - 0x28], xmm2
movaps xmm2, xmm5
addsd xmm2, qword [edi + 8]
subsd xmm5, qword [edi + 8]
movaps xmm0, xmm3
addsd xmm0, xmm6
movaps xmm1, xmm7
addsd xmm1, qword [ebp - 0x28]
subsd xmm7, qword [ebp - 0x28]
subsd xmm6, xmm3
movsd qword [esi + ecx*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
subsd xmm2, xmm4
movsd qword [esi + ecx*8 + 8], xmm0
add ecx, 2
movsd qword [edx], xmm2
movsd xmm2, qword [ebp - 0x48]
subsd xmm2, xmm5
movsd qword [edx + 8], xmm6
movsd xmm6, qword [ebp - 0x40]
add edx, 0x10
addsd xmm5, qword [ebp - 0x48]
movaps xmm0, xmm2
subsd xmm0, xmm1
addsd xmm1, xmm2
mulsd xmm0, xmm6
mulsd xmm1, xmm6
movsd qword [eax], xmm0
movaps xmm0, xmm7
subsd xmm0, xmm5
addsd xmm7, xmm5
movsd qword [eax + 8], xmm1
add eax, 0x10
mulsd xmm0, xmm6
mulsd xmm7, xmm6
movsd qword [edi], xmm0
movsd qword [edi + 8], xmm7
add edi, 0x10
cmp ecx, dword [ebp - 4]
jl 0x41c2e2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x4c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x50]
jge 0x41c801
lea edi, [eax*8]
mov dword [ebp - 0x2c], edx
lea ecx, [edx*4]
mov dword [ebp - 0x64], edi
add ecx, eax
lea edi, [edx*4]
add eax, edx
mov dword [ebp - 0x34], ecx
lea eax, [esi + eax*8]
mov dword [ebp - 0x30], eax
lea eax, [ecx + edx]
lea eax, [esi + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
add eax, 0x18
sub dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0xc]
nop dword [eax]
mov esi, dword [ebx + 0xc]
add eax, 0x20
add esi, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebx + 0xc], esi
mov dword [ebp - 0x38], edi
movsd xmm3, qword [eax - 0x18]
movsd xmm0, qword [esi + 8]
movaps xmm5, xmm3
movsd xmm4, qword [eax - 0x10]
movaps xmm1, xmm0
movsd xmm2, qword [esi]
addsd xmm1, xmm0
mov esi, dword [ebp - 0x2c]
movsd qword [ebp - 0x48], xmm0
add esi, ecx
mov dword [ebp - 0x14], esi
cmp edi, esi
mov esi, dword [ebx + 8]
movaps xmm0, xmm1
movsd qword [ebp - 0x70], xmm2
mulsd xmm0, xmm4
mulsd xmm1, xmm3
movsd qword [ebp - 0x28], xmm3
subsd xmm5, xmm0
movsd qword [ebp - 0x40], xmm4
subsd xmm1, xmm4
movsd qword [ebp - 0x78], xmm5
movsd qword [ebp - 0x80], xmm1
jge 0x41c608
lea eax, [edi + edx*2]
mov ecx, edi
add eax, edx
lea eax, [esi + eax*8]
mov dword [ebp - 0x54], eax
lea eax, [edi + edx*2]
mov edi, dword [ebp - 0x54]
lea eax, [esi + eax*8]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
nop
movsd xmm3, qword [esi + ecx*8 + 8]
movsd xmm4, qword [edx + 8]
mov eax, dword [ebp - 0x10]
addsd xmm4, xmm3
subsd xmm3, qword [edx + 8]
movsd xmm2, qword [esi + ecx*8]
movsd xmm5, qword [edx]
movsd xmm6, qword [eax]
addsd xmm5, xmm2
subsd xmm2, qword [edx]
movsd xmm7, qword [eax + 8]
movsd xmm1, qword [ebp - 0x70]
movsd qword [ebp - 0x58], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edi]
subsd xmm6, qword [edi]
movsd qword [ebp - 0x60], xmm2
movsd xmm2, qword [edi + 8]
addsd xmm2, xmm7
subsd xmm7, qword [edi + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x60]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x60]
movsd qword [esi + ecx*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
movsd qword [esi + ecx*8 + 8], xmm0
add ecx, 2
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, xmm5
movsd xmm5, qword [ebp - 0x58]
addsd xmm2, xmm5
movsd qword [eax], xmm1
subsd xmm5, xmm6
movsd xmm1, qword [ebp - 0x70]
mulsd xmm1, xmm4
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, xmm2
movsd qword [eax + 8], xmm1
add eax, 0x10
movsd xmm1, qword [ebp - 0x28]
mulsd xmm1, xmm3
mov dword [ebp - 0x10], eax
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x28]
mulsd xmm0, xmm2
movsd qword [edx], xmm1
movsd xmm1, qword [ebp - 0x40]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x80]
mulsd xmm0, xmm5
movsd qword [edx + 8], xmm1
add edx, 0x10
movsd xmm1, qword [ebp - 0x78]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x80]
mulsd xmm0, xmm7
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x78]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [edi + 8], xmm1
add edi, 0x10
cmp ecx, dword [ebp - 0x14]
jl 0x41c4b0
movsd xmm2, qword [ebp - 0x70]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
movsd xmm3, qword [eax - 8]
movaps xmm1, xmm2
movsd xmm4, qword [eax]
addsd xmm1, xmm2
mov edx, dword [ebp - 0x14]
movaps xmm2, xmm3
add edx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], edx
cmp ecx, edx
mov edx, dword [ebp - 8]
movaps xmm0, xmm1
movsd qword [ebp - 0x40], xmm3
mulsd xmm0, xmm4
mov dword [ebp - 0x5c], ecx
mulsd xmm1, xmm3
movsd qword [ebp - 0x28], xmm4
subsd xmm2, xmm0
subsd xmm1, xmm4
movsd qword [ebp - 0x88], xmm2
movsd qword [ebp - 0x90], xmm1
jge 0x41c7e3
mov edi, dword [ebp - 4]
lea eax, [ecx + edx*2]
add eax, edx
lea eax, [esi + eax*8]
mov dword [ebp - 0x54], eax
lea eax, [ecx + edx*2]
mov edx, dword [ebp - 0x54]
lea eax, [esi + eax*8]
mov dword [ebp - 0x14], eax
mov eax, ecx
mov ecx, dword [ebp - 0x14]
nop
movsd xmm3, qword [esi + eax*8 + 8]
movsd xmm4, qword [edi + 8]
movsd xmm6, qword [ecx]
addsd xmm4, xmm3
subsd xmm3, qword [edi + 8]
movsd xmm2, qword [esi + eax*8]
movsd xmm5, qword [edi]
movsd xmm7, qword [ecx + 8]
addsd xmm5, xmm2
subsd xmm2, qword [edi]
movsd xmm1, qword [ebp - 0x48]
movsd qword [ebp - 0x78], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edx]
subsd xmm6, qword [edx]
movsd qword [ebp - 0x80], xmm2
movsd xmm2, qword [edx + 8]
addsd xmm2, xmm7
subsd xmm7, qword [edx + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x80]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x80]
movsd qword [esi + eax*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
xorps xmm1, xmmword [0x44cb90]
movsd qword [esi + eax*8 + 8], xmm0
add eax, 2
movsd xmm0, qword [ebp - 0x70]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, xmm4
movsd qword [ecx], xmm1
movsd xmm1, qword [ebp - 0x70]
mulsd xmm1, xmm5
movsd xmm5, qword [ebp - 0x78]
addsd xmm2, xmm5
subsd xmm5, xmm6
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x28]
mulsd xmm0, xmm2
movsd qword [ecx + 8], xmm1
add ecx, 0x10
movsd xmm1, qword [ebp - 0x40]
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, xmm2
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x28]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x90]
mulsd xmm0, xmm5
movsd qword [edi + 8], xmm1
add edi, 0x10
movsd xmm1, qword [ebp - 0x88]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x90]
mulsd xmm0, xmm7
movsd qword [edx], xmm1
movsd xmm1, qword [ebp - 0x88]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [edx + 8], xmm1
add edx, 0x10
cmp eax, dword [ebp - 0x10]
jl 0x41c680
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x64]
add ecx, dword [ebp - 0x1c]
add dword [ebp - 0x30], esi
add dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x34], ecx
cmp edi, dword [ebp - 0x50]
jl 0x41c420
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret