Some figures show charity content on their social media channels, but apparently, it is only later discovered that they obtained their wealth from the proceeds that were forbidden.
Actually, can you not give alms from the proceeds that are haram?
The first is certainly not allowed to obtain property from prohibited proceeds, both legal ones such as usury, let alone illegal ones. As a Muslim, property must be obtained by halal means.
"O believers! Do not eat one another's property in an unrighteous way, except in consensual trade among yourselves. And do not kill yourself. Truly, Allah is merciful to you" (An Nisa : 29)
Consequently, if you obtain property by means of haram, then the property must be removed entirely, because haram property has a bad impact, both on oneself, such as prayers that will not be answered or even istidraj, as well as to others, such as the doom of natural disasters.
So alms from illicit property is not appropriate, the illicit property must be issued entirely, not almsgiving, not almsgiving, not partially issued and then shown as a form of generosity, but must be issued in whole whether returned if the proceeds are stolen, issued for public use or given to the poor if the proceeds of usury for example.
"It is not acceptable to pray without purification, nor alms from ghulul (haram treasure)" (Narrated by Muslim)
The release of the illegal property is a form of repentance, so then stop with the haram way, replace it with the halal way. There is relief if the release of the illicit property causes the perpetrator to become poor, then it is okay to take a small part to continue living, because he has been poor.
Wallahu a'lam bishawab