Most of us have cheap Baofeng headsets around consider building something like this. World's Smallest fully-capable HF Go Kit? - YouTube
You can figure out the connections by looking at the Baofeng pinout and probing the wires vs the connector once you cut the cord, then match those to the appropriate KX2 pins on a new connector.
Adam
K6ARK