some virus always corrupt my windows registry. Is there any way to restore the registry at it initial state? please help me.
Not really since the registry is always changing.
http://en.wikipedia.org/wiki/Windows_Registry
What you can do is prevent changes to your registry.
http://helpdeskgeek.com/windows-vista-tips/disable-registry-editing/