If this was a result of a infection…system restore does not remove infected file (s)
It may disable it but any infected files will stil be there