The most effective way to handle this conversion is through specialized tools that wrap the original executable with a custom loader. Donut (Highly Recommended)