Hi
At the moment the I think the best thing to do is cut both cables back to a good looking part on both sides the strip the wires of their outer coating leaving just the coloured wires behind
Then I would try and figure out that wires how where(eg red to red or blue to blue)then solder them back together accordingly
To finish it off it would isolate each wire in electrical tape and put some form of shrink wrap over it to seal it up
Hopefully this helps
Any questions please ask
Thanks:-)