p.config() engine.set_processor(p) if hasattr(p, "help_text"): help.set_cpu_help(p.help_text) APP.cpu_plugin = p APP.aspace = engine.ADDRESS_SPACE APP.is_ui = False engine.ADDRESS_SPACE.is_loading = True # Calc various offset based on show_bytes value APP.set_show_bytes(APP.show_bytes) # Strip suffix if any from def filename project_dir = project_name + ".scratchabit" if saveload.save_exists(project_dir): saveload.load_state(project_dir) else: for label, addr in ENTRYPOINTS: if engine.ADDRESS_SPACE.is_exec(addr): engine.add_entrypoint(addr) engine.ADDRESS_SPACE.make_unique_label(addr, label) def _progress(cnt): sys.stdout.write("Performing initial analysis... %d\r" % cnt) engine.analyze(_progress) print() #engine.print_address_map() if args.script: for script in args.script: