Decrypt Moonsec V3 -

with open("unpacked_payload.exe", "wb") as f: f.write(out)

Look for this hex pattern in the stub: 2B 7E 15 92 3A C4 6F 81 ... (example). Decrypt Moonsec V3

out = decrypt_moonsec_v3(enc_data, key)