I'm also confused about the ranking system. it's definitely not mission success rate, because I haven't failed many missions as a mercenary at all, yet my rank is currently an E. I'm pretty sure the biggest factor is how much money you're making, because while I usually succeed on missions, Its not uncommon for me to not get paid enough to cover ac repair. So I've lost a lot of money as a merc and my rank has slowly gone down.