Follow the wires back, the yellow item looks like a ( Charge Guard ). It is a basic timer and relay for when the ignition source has been turned off. It should have a ground, 12 volt input, ignition input, 12 volt timed output. The cat 5 splice looks like a siren/lights control cable. just follow them back and heat shrink the ends.