Removing Root for Sony SP
You can try repair option in Sony PC companion or SUS(Sony Update Service). If none of this works try the steps given below

Download the ftf file from here. 

Using flashtool flash the ftf. The tutorial on flashing can be found here