Anyone know what this little black box is?

Whatever it was made a mess of the wiring bundle.
Does it appear there were any exterior lights on the bumper, a-pillars or anywhere else that may have been removed?
Check the trailer wires near the hitch, also.

Wait, I just found this:

https://www.jk-forum.com/how-tos/a/jeep-wrangler-jk-how-to-install-esp-kill-switch-408280

It looks like the same wire used in this tutorial/how-to on installing an ESP kill switch.
I have a kill switch under the dash. Works great, problem is I have trouble finding it! Hope the bad guys do too.