I referenced this video to modify a Baofeng cable to make a programming cable for a Yaesu FT-4X.
Pulled 3.5 mm audio pin out of cable
Pulled out 3.5mm pin
Open case at USB end of the cable gently with small screwdriver. Pry at the cable stress relief end.
Watch this video and dig out the needed diode from your parts stock.
solder it upSoldered diode between TX/RX (anode to TX)
Test the cable with programming software available at yaesu.com
Reassemble the case