It was recently brought to my attention by a Mod. in this forum that malware removal is not to be discussed in this section of the Avast forum, but instead should be discussed in the Virus & Worms section. However the Malware Removal Specialist in that section of the forum only remove Windows malware. So you have three options:
1. Open a thread in the Virus & Worms section in Avast and I will attempt to get a Mod. in that forum to assist you who is familiar with Macs.
2. Go to Geeks To Go and register there under the Mac section for assistance in Malware removal
http://www.geekstogo.com/forum/forum/176-apple-osx/3. Contact apple tech. support or bring your machine into a retail apple store for diagnostics, which usually takes 2 days, and they will most likely wipe your HD.
In the meatime, turn OFF Time Machine, if Time Machine is connected to an external HD also disconnect this, do not sync this machine with any other devices, turn off iCloud for this machine until a malware specialist has given you further instructions. Do not insert a USB drive into this machine. Thank you.