1 verses of the World English Bible have both "moth" and "rotten".
Job 13:28 though I am decaying like a rotten thing, like a garment that is moth-eaten.
In other translations: KJV ASV YLT Darby Webster