10 years ago there used to be a guide on how to do it. Dunno if it's still present and correct. If you understood IOS layouts, the process was basically just replacing modified IOSes with factory ones, using tools that allowed you to do that.
Fun fact, I needed to virginize my Wii at one point...