Skip to content

Instantly share code, notes, and snippets.

@islem-esi
Created October 23, 2020 08:32
Show Gist options
  • Save islem-esi/f76472c1c81e5713be19b3ff9e669499 to your computer and use it in GitHub Desktop.
Save islem-esi/f76472c1c81e5713be19b3ff9e669499 to your computer and use it in GitHub Desktop.
main code disassemble
exe_file_path = 'path/to/exe/file'
try:
#parse exe file
exe = pefile.PE(exe_file_path)
try:
#call the function we created earlier
fine_disassemble(exe)
except:
print('something is wrong with this exe file')
except:
print('pefile cannot parse this file')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment