If you have to reformat (and if you have a virus sometimes it's easier to do that than to try and clean the infection) I would recommend you back up your whole Firefox profile
http://support.mozilla.org/en-US/kb/...refox-profiles
That way you don't have to re-enter all your saved passwords (along with your bookmarks) when you reinstall
