Hey Guys,
My first post and this one caught my eye. I figured it would be great to lend help before asking for it. I am a biochemist, I have 15 years in consumer packaged good, food, cosmetics, pharma. This is a GREAT question so lets address it scientifically.
As a whole, most extraction techniques should kill off the molds. Between the heat, the solvents, etc not much would survive. I would highly recommend going with an ethanol extraction, being very generous with your EtOH to bud ratio as ethanol is tried and true in the consumption industry. I'd also push the upper limits of extraction time to maximize EtOH contact.
What I would be most aware of is the type of mold. Many of these organism types release a self protective measure collectively called mycotoxins (think magic mushrooms but the ones I'm worried about will kill you, look up Alfatoxin as that is one of the more well known ones however there are many). From my own experience, mycotoxins can survive temperatures in excess of 500F
If its a small amount of bud, write it off and treasure your health. If it is a large amount, I would most definitely invest in mycotoxin testing POST EXTRACTION. It does not take much to hurt you and the minimum detention limit is not very respectable, so post concentration step will be best, just like pesticides. Any reputable lab with an HPLC should be able to perform this test at a cost under $100. I have negotiated it down to $30, but I was spending tens of thousands a year.
I hope this helps. Please note, I am new to your world, so the above is a general statement regarding mold in consumable products. Also, I work on the chemistry side, I usually have a biologist who works with me to consult on these specific issues so you're getting the summary version of what I understand.