Do you have a auto-manual swap? In my car some of these various connectors are like yours but taped up in a bundle and tucked out of the way by the PO who did the swap. I've used a pin on one the the connections to make a ground connection to eliminate (mostly) a trans program error as I need the trans computer hooked up to continue to get ASC.
As for what they're for-- if you had the swap, then they probably feed back to the trans computer with shift lever information. If you haven't had a swap I couldn't tell you what they're for.