the drug is most likely amphetamine
One of the effect of amphetamine is to numb your nervous system to lower your anxiety which could help you if you're having difficulties in sleeping.
The side effect of this is that it could create feeling fo euphoria and pleasures until the drugs get out of your system