1 verses of the American Standard Version have both "moth" and "rotten".
Job 13:28 Though I am like a rotten thing that consumeth, Like a garment that is moth-eaten.
In other translations: KJV WEB YLT Darby Webster