Gains on the ASX were dragged by mining and energy stock on Wednesday morning, after US stocks rose after more companies said they made bigger profits at the end of last year.