hi there and welcome to the forums,
some more information would be nice - like the model you own, visibility in the network, pingable ip address of the "nas" etc....
also i don´t know if you mean your firmware seems corrupt or if you just want to restore factory defaults using the web-gui....
Paul wrote a nice step-by-step guide regarding firmware updates/restore:
regards,
SilverFoX