HPCL back in black with Rs 5,827 crore net