Spiral cable creation

Hi everyone, I’m after some inspiration on the simple creation of cable looped around a box. I have sort of got it but when I move the cable sections created on a spline I can’t fit the ends accurately. Is there a better way to approach this? I guess what I’d like to do is create a single spline in 3 dimensions not just 2