Matching exported attachments with accounts?

Matching exported attachments with accounts?

I have a need to export all the attachments from my CRM and then match them to accounts. Is this possible? The attachments have a string appended to the file name, so they look like this:

2xzfz6925f0c086d74118bda59a23dab14671_FileName.JPG

Does that string match anything in the CRM? How can I match the files to their accounts, without going to each account one-by-one to download the attachments?

Thanks!