refactor: IAT stuff to ExeHost

This commit is contained in:
Dobin
2024-02-25 09:20:47 +00:00
parent d61f358ae4
commit 4b1e6811f8
9 changed files with 60 additions and 55 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import phases.compiler
import phases.assembler
import phases.injector
from observer import observer
from pehelper import extract_code_from_exe
from peparser.pehelper import extract_code_from_exe
from model.project import Project
from model.settings import Settings
@@ -168,7 +168,7 @@ def start(settings: Settings):
# Decide if we can use IAT_REUSE (all function calls available as import)
required_functions = phases.compiler.get_function_stubs(main_asm_file)
if project.exe_host.has_all_functions(required_functions):
if project.exe_host.has_all_iat_functions(required_functions):
settings.source_style = SourceStyle.iat_reuse
logger.warning("--[ SourceStyle: Using IAT_REUSE".format())
# all good, patch ASM