You have decent past academics and your chances to get in old IIM's based on your scores is average. It is not that you can't get admission in the old IIM's. There are other judging criterias as well like GD/PI/WAT and mainly the entrance exam.
70% weight age is given to CAT exam so don't you worry about your past academics. BUT because the competition is high to get a seat in old IIMs aim at getting a percentile near 99.8 to get admission in the ones you desire. This may sound big but thats the number to get.
Also the selection criteria may vary in all IIM's and just to give to an idea for the same I am sharing a link which states the detailed selection process for IIMs.
IIM's Admission Criteria
All the best!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile