Old smegma can be adherent and difficult to remove: a bit of vegetable oil may help to loosen it. It's also possible the dots are natural sebaceous glands: these are often called Fordyce spots on the genitalia, and Tyson's glands on the foreskin, though these don't smell.

If it is a yeast infection then any antifungal cream can be used. Anything for tinea (athlete's foot) or ringworm or thrush will be acceptable. (Yeasts are single-celled fungi, so yeast infections and fungal infections refer to the same thing.) There might be something already in the medicine cupboard at home, or you can buy antifungal creams at a pharmacy without prescription. It will not hurt to use one if you don't have an infection. Rub in well twice a day: if it makes a difference, keep using it for at least a week after symptoms have cleared up, or it may come back (with resistance).

Yeast/fungal infections often do smell, which should be cleared up by an antifungal cream; but it won't clear up the smell of smegma, which is caused by bacteria, which antifungal creams don't touch.

There are separate creams for bacterial skin infections (again available at a pharmacy without prescription), but if it's just bacteria working on smegma, the usual solution is to get rid of the smegma (which any cream should help loosen). If necessary, any antiseptic cream should deal with surface bacteria.