The key is the module on the left. I think the 4 wires coming out the top go to a (4-wire, dual coil) stepper motor. The black chip is a microcontroller with custom software that does who knows what. DC power would need to get into the box. That might be one of the two "audio" connectors. The other audio connector might be a trigger to activate it. The control knobs, if this indeed drives a stepper motor, could adjust the rate and duration of the motion in response to a trigger.
It looks to be a one-off and cannot imagine this was commercially produced.
I think the other contents of your surprise box and the previous owner (was it a train guy?) would be the best clues as to whether this is a plant, animal, or mineral...