I suppose it has pretty much every other use case.
Without futherado heres the guide:
All you need to do is in 7 easy steps.
What you Need:
A Stock Rom FTF file (for now)
If you are not sure download the GENERIC version for your device.
1: Unzip Flashtool to your desktop
2: Place ftf rom file in %desktop%/FlashTool/firmwares
3: Run FlashTool.exe, Click the Flash button and select the Firmware you downloaded.
Be Sure that your phone is off before connecting in flashmode, or it wont turn green.
5: Press OK
If you receve an error, please open the 'drivers' folder (%desktop%/flashtool/drivers/) and run the exe file. to install the flash driver, once installed. try step 3-5 again!
7: Now your phone should be stock. You should be crying and happy at the same time.
BONUS STEP: for easy root, turn on phone and open flash tool (connect phone.) and press ROOT (make sure you have USB Debugging enabled)
If this helps you, comment confirm and thanks