The final goal of AI is whatever it was programmed to be. If an ASI decides to kill all of humanity, it's not necessarily because it dislikes humans; rather, it sees humans as an obstruction to its final goal.