Aberdeen have ended a run of 14 Scottish Premiership matches without victory, and have the chance to reassert themselves as a force at the top end of the table.