How to sync music off Iphone to Itunes.music not purchased?

I had to get my computer re-imaged due to viruses and such and was unable to back up any of my music, pics, etc… All my music is on my phone still and I have downloaded the newest version of itunes, is there a way to get my music back on my computer? None of my music is purchased with itunes, its all converted from youtube. A few years back when I tried, I lost all my music. Is it possible to get it back on itunes and computer?

You just get MobileGo to help you.

http://mac.allvideoconvert.com/transfer-anything-from-iphone-ipad-ipod-to-itunes-pc-back/

It works brilliant.