Actually my understanding is a factory reset will only wipe your data (stuff you installed) and the stock recovery will not change any system files. You may need to go to the XDA forum and read up on flashing the latest firmwares to the most recent MF9 update and flash it with Odin3.07 Lots of reading cause then youalso need a custom recovery to flash the stock kernel then flash the rom then when all is said and working you can flash the stock recovery back. First you need to try and install a Custom recovery like TWRP.
Should never mess with System files without a Custom recovery.
I'm sorry I don't do ADB so if it can be fixed that way IDK. If you already have Debugging turned on and it boots maybe somebody else can help u.