Yes, TestDisk, more specifically its PhotoRec component.
What it can recover will depend on what, exactly, the malware did as far as the disc drive. If it actually erased, as in cleared data blocks, as opposed to deleted (marking data blocks as unused and ready for reuse) it completely changes whether there's something to reconstruct files from or not.
If you use PhotoRec be aware that by default it will try to recover a lot more than photos. Take a look at his "how to use" page and be certain to unselect any of the file types you have no interest in getting back as part of the recovery. Also know that you may get multiple copies of the same photos if they've been copied to different folders over time and deleted from their original locations. Photorec will reconstruct any file it can find sufficient information to reconstruct, including deleted files, as it is a disaster recovery program.
Brian AKA Bri the Tech Guy (my website address is in my profile) Windows 10 Home, 64-bit, Version 1709, Build 16299
Here is a test to find out whether your mission in life is complete. If you’re alive, it isn’t.
~ Lauren Bacall