As a first step, I'd be tracing the wires to see where they go inside the control box.

I'd guess only 4 of the wires are for the stepper, with the others being inputs for sensors/switches, and/or outputs for controlling locks/actuators.

Hopefully by tracing where the wires go, you'll be able to work out what they do.