So it seems pretty obvious that the mysterious hard drive is a back up to restore Tony's brain.
My take on the plan isn't that it's a Xanatos gambit so much as it is a gamble - Tony didn't actually know that Osborn wouldn't just kill his vegetative body but it was worth a shot.