What does "ever" mean here?
"Ever" here means "at any point in time". Here it refers to the past, but "ever" can refer to the past or future. You can think of this sentence as, "What did I do to you in the past?" Ex: If you ever need me, I will be there for you. ("Ever" here refers to the future)