Mystery cable

Hello - I feel really dumb for asking this I got into a hurry and wasn't paying attention to where I pulled this cable from. It a 1999 Corolla VE 3sp AT.
This comes from the firewall and it looks long enough to reach the battery but just don't see how it could attach to the battery. I haven't seen anything
not working dash lights, radio etc. Please help!