Id keep all the moldy shit, dry it out in an oven at a really low temp. around 200 ish. this will activate the thc and should help kill the mold and dry it out so any still alive will be lacking water to stay alive.
then id put it all into a bag or tupperware and toss it into the freezer. This will have effects on the taste and the smell terpines probably, but most of the thc and canabinoids should be salvagable.
After that id run it through alcohol, butane, dry ice, etc... and allow that extract to fully evaporate all its volatile chemicals.
Also if anyone has lung infections such as bronchitis or a bad cough i wouldnt let them smoke the first few tests just incase there is any mold left that could get into there lungs and cause some sort of increase or different infection/disease.
But for those with health immune systems and bodies we can handle most molds to a degree.