Did you try doing a Hard reset first? that should bring you right back to stock. And that didn't work, go here and read about flashing from the sd card, it's painless, but read the thread first. And what was the cab that borked the phone?
http://forum.ppcgeeks.com/showthread.php?t=95375