You need to reverse the connector on your Z-Axis steppers A+/A-/B-/B+ becomes B+/B-/A-/A+
This will make the motor spin in the correct direction.
If you don't want to bother with the motor connector and wiring, then you can change the direction in firmware source, and then upload it to your controller.
Move the endstop back to the bottom.