Function at 0x41f200
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, 0x88
push esi
mov esi, dword [ebx + 8]
lea eax, [edx*4]
push edi
xor edi, edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], eax
test edx, edx
jle 0x41f31e
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 - 0x40], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [ecx]
subsd xmm6, qword [ecx]
movsd qword [ebp - 0x20], xmm2
movaps xmm2, xmm4
addsd xmm2, qword [ecx + 8]
subsd xmm4, qword [ecx + 8]
movsd xmm1, qword [ebp - 0x20]
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 - 0x40]
subsd xmm0, xmm4
movsd qword [eax], xmm7
addsd xmm4, qword [ebp - 0x40]
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 - 0x14]
cmp edi, edx
jl 0x41f250
lea eax, [edx*4]
mov ecx, dword [ebx + 0xc]
lea edi, [eax + edx]
mov dword [ebp - 4], edi
movsd xmm0, qword [ecx + 0x10]
mov ecx, eax
movsd qword [ebp - 0x38], xmm0
cmp eax, edi
jge 0x41f44f
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 - 0xc], eax
lea eax, [edx*4]
lea eax, [eax + edx*2]
lea eax, [esi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
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 xmm4, qword [eax + 8]
movsd xmm5, qword [edx + 8]
addsd xmm4, xmm2
subsd xmm2, qword [eax + 8]
movsd qword [ebp - 0x40], xmm3
movaps xmm3, xmm7
addsd xmm3, qword [edi]
subsd xmm7, qword [edi]
movsd qword [ebp - 0x20], xmm2
movaps xmm2, xmm5
addsd xmm2, qword [edi + 8]
subsd xmm5, qword [edi + 8]
movaps xmm0, xmm3
movaps xmm1, xmm7
addsd xmm1, qword [ebp - 0x20]
addsd xmm0, xmm6
subsd xmm7, qword [ebp - 0x20]
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 - 0x40]
subsd xmm2, xmm5
movsd qword [edx + 8], xmm6
movsd xmm6, qword [ebp - 0x38]
add edx, 0x10
addsd xmm5, qword [ebp - 0x40]
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 0x41f362
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x44]
jge 0x41f86a
add ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea edi, [eax*8]
add eax, edx
mov dword [ebp - 0x60], edi
mov edi, edx
lea eax, [esi + eax*8]
mov dword [ebp - 0x24], eax
lea eax, [ecx + edx]
lea eax, [esi + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
add eax, 0x18
sub edi, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebx + 0xc]
add eax, 0x20
mov esi, dword [ebp - 0x5c]
add edi, 0x10
add esi, ecx
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x30], esi
movsd xmm3, qword [eax - 0x18]
movsd xmm0, qword [edi + 8]
movaps xmm5, xmm3
movsd xmm4, qword [eax - 0x10]
movaps xmm1, xmm0
movsd xmm2, qword [edi]
addsd xmm1, xmm0
mov edi, dword [ebp - 0x18]
cmp edi, esi
mov esi, dword [ebx + 8]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], eax
movaps xmm0, xmm1
movsd qword [ebp - 0x68], xmm2
mulsd xmm0, xmm4
mov dword [ebp - 0x28], edi
mulsd xmm1, xmm3
movsd qword [ebp - 0x20], xmm3
subsd xmm5, xmm0
movsd qword [ebp - 0x38], xmm4
subsd xmm1, xmm4
movsd qword [ebp - 0x70], xmm5
movsd qword [ebp - 0x78], xmm1
jge 0x41f682
lea eax, [edi + edx*2]
add eax, edx
lea eax, [esi + eax*8]
mov dword [ebp - 0x2c], eax
lea eax, [edi + edx*2]
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + eax*8]
mov dword [ebp - 0x54], eax
mov eax, edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
nop word [eax + eax]
movsd xmm3, qword [esi + eax*8 + 8]
movsd xmm6, qword [edx]
movaps xmm4, xmm3
subsd xmm3, qword [edi + 8]
movsd xmm2, qword [esi + eax*8]
movsd xmm7, qword [edx + 8]
movaps xmm5, xmm2
subsd xmm2, qword [edi]
addsd xmm5, qword [edi]
addsd xmm4, qword [edi + 8]
movsd xmm1, qword [ebp - 0x68]
movsd qword [ebp - 0x50], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [ecx]
subsd xmm6, qword [ecx]
movsd qword [ebp - 0x58], xmm2
movaps xmm2, xmm7
addsd xmm2, qword [ecx + 8]
subsd xmm7, qword [ecx + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x58]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x58]
movsd qword [esi + eax*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
movsd qword [esi + eax*8 + 8], xmm0
add eax, 2
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, xmm5
movsd xmm5, qword [ebp - 0x50]
addsd xmm2, xmm5
movsd qword [edx], xmm1
subsd xmm5, xmm6
movsd xmm1, qword [ebp - 0x68]
mulsd xmm1, xmm4
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x38]
mulsd xmm0, xmm2
movsd qword [edx + 8], xmm1
add edx, 0x10
movsd xmm1, qword [ebp - 0x20]
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x20]
mulsd xmm0, xmm2
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x38]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x78]
mulsd xmm0, xmm5
movsd qword [edi + 8], xmm1
add edi, 0x10
movsd xmm1, qword [ebp - 0x70]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x78]
mulsd xmm0, xmm7
movsd qword [ecx], xmm1
movsd xmm1, qword [ebp - 0x70]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [ecx + 8], xmm1
add ecx, 0x10
cmp eax, dword [ebp - 0x30]
jl 0x41f530
movsd xmm2, qword [ebp - 0x68]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movsd xmm3, qword [eax - 8]
lea esi, [edx + ecx]
movsd xmm4, qword [eax]
movaps xmm1, xmm2
addsd xmm1, xmm2
mov dword [ebp - 0x28], esi
movaps xmm2, xmm3
movsd qword [ebp - 0x38], xmm3
cmp ecx, esi
movsd qword [ebp - 0x20], xmm4
mov esi, dword [ebx + 8]
mov dword [ebp - 0x30], ecx
movaps xmm0, xmm1
mulsd xmm1, xmm3
mulsd xmm0, xmm4
subsd xmm1, xmm4
subsd xmm2, xmm0
movsd qword [ebp - 0x88], xmm1
movsd qword [ebp - 0x80], xmm2
jge 0x41f84c
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 - 0x2c], eax
mov eax, ecx
mov ecx, dword [ebp - 0x2c]
movsd xmm3, qword [esi + eax*8 + 8]
movsd xmm6, qword [ecx]
movaps xmm4, xmm3
subsd xmm3, qword [edi + 8]
movsd xmm2, qword [esi + eax*8]
movsd xmm7, qword [ecx + 8]
movaps xmm5, xmm2
subsd xmm2, qword [edi]
addsd xmm5, qword [edi]
addsd xmm4, qword [edi + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [ebp - 0x70], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edx]
subsd xmm6, qword [edx]
movsd qword [ebp - 0x78], xmm2
movaps xmm2, xmm7
addsd xmm2, qword [edx + 8]
subsd xmm7, qword [edx + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x78]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x78]
movsd qword [esi + eax*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
xorps xmm1, xmmword [0x4fe020]
movsd qword [esi + eax*8 + 8], xmm0
add eax, 2
movsd xmm0, qword [ebp - 0x68]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x40]
mulsd xmm0, xmm4
movsd qword [ecx], xmm1
movsd xmm1, qword [ebp - 0x68]
mulsd xmm1, xmm5
movsd xmm5, qword [ebp - 0x70]
addsd xmm2, xmm5
subsd xmm5, xmm6
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x20]
mulsd xmm0, xmm2
movsd qword [ecx + 8], xmm1
add ecx, 0x10
movsd xmm1, qword [ebp - 0x38]
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x38]
mulsd xmm0, xmm2
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x20]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x88]
mulsd xmm0, xmm5
movsd qword [edi + 8], xmm1
add edi, 0x10
movsd xmm1, qword [ebp - 0x80]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x88]
mulsd xmm0, xmm7
movsd qword [edx], xmm1
movsd xmm1, qword [ebp - 0x80]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [edx + 8], xmm1
add edx, 0x10
cmp eax, dword [ebp - 0x28]
jl 0x41f6f2
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add edi, dword [ebp - 8]
mov esi, dword [ebp - 0x60]
add ecx, dword [ebp - 8]
add dword [ebp - 0x24], esi
add dword [ebp - 4], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ecx
cmp edi, dword [ebp - 0x44]
jl 0x41f492
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret