Late-day market wrap: Energy, materials up; tech drags | Monexa