Please avoid importing 'cryptography' package directly in pyinstaller. It could cause any side effects.
You can get the _SSLBinding._modules value when running that code in a subprocess. For this there are functions

- hookutils.eval_script()
- hookutils.eval_statement()
- hookutils.exec_statement()
- hookutils.exec_script()