pip install pefile
pip install git+https://github.com/ohjeongwook/petool
pip install git+https://github.com/ohjeongwook/petool --upgrade
python %PYTHONHOME%\Lib\site-packages\petool\petool.py
- After dumping PE image from process, you can use petool to fix sections.
python -m petool.petool -c fix <input> <output>