UltraTech Cement, Zomato, Mahindra & Mahindra, Sun Pharmaceutical Industries, and Tech Mahindra were the top gainers on Thursday