Step 1.
Install a decent anti-virus package.
Step 2.
OPTION 1.
If you are only dealing with a small quantity of files, suggest fixing manually.
I assume when you say 'converted to JPEG", you mean the file extension was changed by the virus, not actually converted to a JPEG image (which means the original AVI & MP3 is lost).
Before manually changing the file extension in Explorer, you need to turn on visibility to extensions (they are off by default). this is under TOOLS -> OPTIONS, then slect VIEW tab, and clear (untick) HIDE EXTENSIONS FOR KNOWN FILE TYPES.
OPTION 2.
If you have large quantities of files, without knowing a GUI mass file reanming tool off hand, I would go to a DOS session and do this with a DIR & FOR command combination.
The problem you are going to have is that
you have three files types now using the JPG extensions - JPEG's, MP3's & AVI's. So unless you have them each in their own directory structure, and not all mixed up, you are going to have to manually edit 2 lists to use with the FOR..DO loop to process.
To build a list of all JPG on you PC, open a DOS session (START -> RUN -> type "CMD" & enter)
At the prompt type:
DIR C:\*.JPG /s /b>%userprofile%\JPGList.txt
You will know have a list of every JPG file on you C drive in a text file on your desktop called JPGList.
Open th elist in NOTEPAD (once in suggest gointo to FORMAT menu and ensureing "WORD WRAP" is not ticked)
delete every entry (i.e. whole lines) that is a real JPG or AVI file.
back at the DOS prompt use the following command:
FOR /F "eol=;" %i in (%userprofile%\desktop\JPGList.txt) do @echo ren "%i" "*.mp3"
this will not change anthing, but you should get a list that looks like this:
REN "C:\DOCUMENTS AND SETTING\USERXXX\DOCUMENTS\FILE_ABC.jpg" "*.MP3"
If the list looks OK, then re-run the previous FOR..DO command without the '@ECHO', and the files will be renamed.
Repeat the process to to fix the AVI files.
Suggest trying this all in a test directory with some copied files 1st (just change the DIR C:\*.jpg, to be the directory with the test files, e.g. DIR C:\TESTDIR\*.jpg".
Other than this, I can only hope someone can suggest a handy GUI util to help. The closest I can think of is to use Windows Search to list all the JPG files, and manually go down the list and rename them.