Cocaine exerts its effects by interfering with the normal functioning of the brain's dopamine system. It blocks the reuptake of dopamine, a neurotransmitter associated with pleasure and reward, leading to an accumulation in the brain and resulting in intense feelings of euphoria. This physiological action contributes to its addictive potential.