Parosmia is the term used for a perverted or distorted sense of smell.
In parosmia, familiar odors are perceived differently, often unpleasantly, than they normally would be.
Anosmia means complete loss of smell.
Hyposmia means partial loss or reduced sense of smell.
Cacosmia is a type of parosmia where the distortion is specifically unpleasant or foul.
Therefore, the general term for a perverted sense of smell is Parosmia.