Ethical hacking in ransomware questions

Sir please one question Jaise Agar Kisi computer per ransamware type ka attack Hua Hai To Ham ka access Wapas Le sakte hain Ki Nahin