When your content and settings have been erased, you'll abide by these directions to restore your iPhone from your iCloud backup. You should definitely restore with a backup that was designed prior to your iPhone was compromised with malware. Not just they replicate themselves but may include some malicious codes https://helpdesksupportnumber.com/call-1-855-611-0111-for-virus-ransomware-trojan-malware-removal-support/