The cable length is 700 mm, from 4-pin JST-XH4 connector to 6-pin JST-XH6 connector.
This cable is wired by default for the Nema17 motor with 40 mm gears.
The specific wiring for this cable is shown below:
Controller side Motor side
PIN 1 ---------------- PIN 1
PIN 2 ----------------- PIN 4 PIN
3
----------------- PIN 4 ----------------- PIN 6