My phone keeps restarting after factory reset
I have been in the same situation. I rooted my phone Sony Xperia and it kept restarting. I reset it via the recovery menu and Kinguser was still there and I finally got rid of it. Do these steps and you will have your phone working again: 


Go to Google
Search for Kingoroot
Install Kingoroot for Android
Click "root" at the bottom
Your phone will reboot and Kinguser is gone
Android 4.2.2 is working again