I started this quest a long time ago here: Decrypting DUKPT Encrypted Track Data
Here is a .Net implementation: https://github.com/sgbj/Dukpt.NET
Here is a java implementation from jPOS: https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/security/jceadapter/JCESecurityModule.java#L1843-1856
Good luck!