{"id":{"repo_id":"maryland","oai_identifier":"oai:drum.lib.umd.edu:1903/36156"},"canonical_url":"https://search.ndltd.org/etd/maryland/oai:drum.lib.umd.edu:1903/36156","repository":{"repo_id":"maryland","name":"University of Maryland","base_url":"https://api.drum.lib.umd.edu/server/oai/request"},"display":{"title":"IMPROVING BINARY DECOMPILATION: FROM FORENSICALLY EQUIVALENT TRANSFORMATION TO LLM-DRIVEN DECOMPILATION","abstract":"Reverse-engineering malware is a crucial capability for investigating the details of cyberattacks. In particular, a decompiler is a highly desirable reverse-engineering tool that can translate a malware binary into a human-readable source code representation. Despite decades of research, decompilers remain unreliable: they either fail outright on certain inputs or, worse, silently produce incorrect output that misleads downstream analysis. This dissertation improves binary decompilation reliability and quality through two complementary, decompiler-agnostic techniques that operate before and after the decompilation process, respectively. First, we address decompilation of Python binaries, which have become a prevalent malware vector. We systematically analyze over 2,000 decompilation failures across five Python decompilers and identify four root causes: missing parsing rules, conflicting parsing rules, unsupported instructions, and implementation bugs. To address these failures without modifying any decompiler, we propose Forensically Equivalent Transformation (FET), a new class of binary transformation that relaxes the semantic-preserving constraint to enable decompilation while retaining sufficient semantics for forensic analysis. We implement FET in Pyfet, a system that transforms error-inducing Python binaries into decompilable forms. We are also the first to systematically detect and repair implicit errors—cases where a decompiler silently produces logically incorrect code. We evaluate Pyfet on 17,117 real-world Python malware samples, identifying and fixing all 77,022 decompilation errors across five decompilers. Second, we tackle decompilation of ARM binaries, where both traditional and LLM-based decompilers suffer from structural errors: traditional tools produce convoluted control flows, while LLM-based tools hallucinate incorrect structures. We present DeARM, a structure-aware decompilation framework that decomposes binaries into structural slices and applies structure specialized LLMs (for loops, conditionals, and switches). DeARM then iteratively repairs the decompiled output through a CFG-guided structural repair pipeline that enforces topological faithfulness with the original binary, complemented by a dataflow validation and repair stage that maps variables across decompiled outputs and corrects inconsistencies against the ground-truth assembly using dataflow graph (DFG) similarity. We evaluate DeARM on 3,816 functions from real-world and malware datasets against Ghidra, Nova, and LLM4Decompile, achieving 89.9% CFG similarity and 79.3% DFG similarity overall. We further show that DeARM’s repair pipeline serves as a universal, model-agnostic refinement layer, improving CFG similarity by 10.17% on average when applied to five decompilers, including four external tools and its own base model.","abstract_html":"Reverse-engineering malware is a crucial capability for investigating the details of cyberattacks. In particular, a decompiler is a highly desirable reverse-engineering tool that can translate a malware binary into a human-readable source code representation. Despite decades of research, decompilers remain unreliable: they either fail outright on certain inputs or, worse, silently produce incorrect output that misleads downstream analysis. This dissertation improves binary decompilation reliability and quality through two complementary, decompiler-agnostic techniques that operate before and after the decompilation process, respectively. First, we address decompilation of Python binaries, which have become a prevalent malware vector. We systematically analyze over 2,000 decompilation failures across five Python decompilers and identify four root causes: missing parsing rules, conflicting parsing rules, unsupported instructions, and implementation bugs. To address these failures without modifying any decompiler, we propose Forensically Equivalent Transformation (FET), a new class of binary transformation that relaxes the semantic-preserving constraint to enable decompilation while retaining sufficient semantics for forensic analysis. We implement FET in Pyfet, a system that transforms error-inducing Python binaries into decompilable forms. We are also the first to systematically detect and repair implicit errors—cases where a decompiler silently produces logically incorrect code. We evaluate Pyfet on 17,117 real-world Python malware samples, identifying and fixing all 77,022 decompilation errors across five decompilers. Second, we tackle decompilation of ARM binaries, where both traditional and LLM-based decompilers suffer from structural errors: traditional tools produce convoluted control flows, while LLM-based tools hallucinate incorrect structures. We present DeARM, a structure-aware decompilation framework that decomposes binaries into structural slices and applies structure specialized LLMs (for loops, conditionals, and switches). DeARM then iteratively repairs the decompiled output through a CFG-guided structural repair pipeline that enforces topological faithfulness with the original binary, complemented by a dataflow validation and repair stage that maps variables across decompiled outputs and corrects inconsistencies against the ground-truth assembly using dataflow graph (DFG) similarity. We evaluate DeARM on 3,816 functions from real-world and malware datasets against Ghidra, Nova, and LLM4Decompile, achieving 89.9% CFG similarity and 79.3% DFG similarity overall. We further show that DeARM’s repair pipeline serves as a universal, model-agnostic refinement layer, improving CFG similarity by 10.17% on average when applied to five decompilers, including four external tools and its own base model.","abstract_has_math":false,"creators":["Ahad, Ali"],"institution":"Digital Repository at the University of Maryland","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Electrical Engineering","school":null,"contributors":[],"advisors":["Kwon, Yonghwi"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T08:46:02Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1903/36156"],"render_values":[{"text":"http://hdl.handle.net/1903/36156","href":"https://hdl.handle.net/1903/36156","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.13016/oaz6-ylhs","outbound_label":"DOI","outbound_source":"dc:identifier","record_url":"https://doi.org/10.13016/oaz6-ylhs","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Amaryland%3Aoai%3Adrum.lib.umd.edu%3A1903%2F36156","prefix":"oai_dc"},"source_record":{"url":"https://api.drum.lib.umd.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adrum.lib.umd.edu%3A1903%2F36156","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Kwon, Yonghwi"]},{"key":"dc:contributor.department","label":"Department","values":["Electrical Engineering"]},{"key":"dc:creator","label":"Author","values":["Ahad, Ali"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-10-27T05:42:18Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Digital Repository at the University of Maryland","University of Maryland (College Park, Md.)"]},{"key":"dc:type","label":"Dc Type","values":["Dissertation"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["Cybersecurity","Decompilers","Forensics","Reverse-Engineering","Security","Software"]},{"key":"dc:subject.proquest","label":"Dc Subject Proquest","values":["Computer science","Computer engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://doi.org/10.13016/oaz6-ylhs"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1903/36156"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Reverse-engineering malware is a crucial capability for investigating the details of cyberattacks. In particular, a decompiler is a highly desirable reverse-engineering tool that can translate a malware binary into a human-readable source code representation. Despite decades of research, decompilers remain unreliable: they either fail outright on certain inputs or, worse, silently produce incorrect output that misleads downstream analysis. This dissertation improves binary decompilation reliability and quality through two complementary, decompiler-agnostic techniques that operate before and after the decompilation process, respectively. First, we address decompilation of Python binaries, which have become a prevalent malware vector. We systematically analyze over 2,000 decompilation failures across five Python decompilers and identify four root causes: missing parsing rules, conflicting parsing rules, unsupported instructions, and implementation bugs. To address these failures without modifying any decompiler, we propose Forensically Equivalent Transformation (FET), a new class of binary transformation that relaxes the semantic-preserving constraint to enable decompilation while retaining sufficient semantics for forensic analysis. We implement FET in Pyfet, a system that transforms error-inducing Python binaries into decompilable forms. We are also the first to systematically detect and repair implicit errors—cases where a decompiler silently produces logically incorrect code. We evaluate Pyfet on 17,117 real-world Python malware samples, identifying and fixing all 77,022 decompilation errors across five decompilers. Second, we tackle decompilation of ARM binaries, where both traditional and LLM-based decompilers suffer from structural errors: traditional tools produce convoluted control flows, while LLM-based tools hallucinate incorrect structures. We present DeARM, a structure-aware decompilation framework that decomposes binaries into structural slices and applies structure specialized LLMs (for loops, conditionals, and switches). DeARM then iteratively repairs the decompiled output through a CFG-guided structural repair pipeline that enforces topological faithfulness with the original binary, complemented by a dataflow validation and repair stage that maps variables across decompiled outputs and corrects inconsistencies against the ground-truth assembly using dataflow graph (DFG) similarity. We evaluate DeARM on 3,816 functions from real-world and malware datasets against Ghidra, Nova, and LLM4Decompile, achieving 89.9% CFG similarity and 79.3% DFG similarity overall. We further show that DeARM’s repair pipeline serves as a universal, model-agnostic refinement layer, improving CFG similarity by 10.17% on average when applied to five decompilers, including four external tools and its own base model."]},{"key":"dc:title","label":"Title","values":["IMPROVING BINARY DECOMPILATION: FROM FORENSICALLY EQUIVALENT TRANSFORMATION TO LLM-DRIVEN DECOMPILATION"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Kwon, Yonghwi"],"dc:contributor.department":["Electrical Engineering"],"dc:creator":["Ahad, Ali"],"dc:date.accessioned":["2026-10-27T05:42:18Z"],"dc:date.issued":["2026"],"dc:description.abstract":["Reverse-engineering malware is a crucial capability for investigating the details of cyberattacks. In particular, a decompiler is a highly desirable reverse-engineering tool that can translate a malware binary into a human-readable source code representation. Despite decades of research, decompilers remain unreliable: they either fail outright on certain inputs or, worse, silently produce incorrect output that misleads downstream analysis. This dissertation improves binary decompilation reliability and quality through two complementary, decompiler-agnostic techniques that operate before and after the decompilation process, respectively. First, we address decompilation of Python binaries, which have become a prevalent malware vector. We systematically analyze over 2,000 decompilation failures across five Python decompilers and identify four root causes: missing parsing rules, conflicting parsing rules, unsupported instructions, and implementation bugs. To address these failures without modifying any decompiler, we propose Forensically Equivalent Transformation (FET), a new class of binary transformation that relaxes the semantic-preserving constraint to enable decompilation while retaining sufficient semantics for forensic analysis. We implement FET in Pyfet, a system that transforms error-inducing Python binaries into decompilable forms. We are also the first to systematically detect and repair implicit errors—cases where a decompiler silently produces logically incorrect code. We evaluate Pyfet on 17,117 real-world Python malware samples, identifying and fixing all 77,022 decompilation errors across five decompilers. Second, we tackle decompilation of ARM binaries, where both traditional and LLM-based decompilers suffer from structural errors: traditional tools produce convoluted control flows, while LLM-based tools hallucinate incorrect structures. We present DeARM, a structure-aware decompilation framework that decomposes binaries into structural slices and applies structure specialized LLMs (for loops, conditionals, and switches). DeARM then iteratively repairs the decompiled output through a CFG-guided structural repair pipeline that enforces topological faithfulness with the original binary, complemented by a dataflow validation and repair stage that maps variables across decompiled outputs and corrects inconsistencies against the ground-truth assembly using dataflow graph (DFG) similarity. We evaluate DeARM on 3,816 functions from real-world and malware datasets against Ghidra, Nova, and LLM4Decompile, achieving 89.9% CFG similarity and 79.3% DFG similarity overall. We further show that DeARM’s repair pipeline serves as a universal, model-agnostic refinement layer, improving CFG similarity by 10.17% on average when applied to five decompilers, including four external tools and its own base model."],"dc:identifier":["https://doi.org/10.13016/oaz6-ylhs"],"dc:identifier.uri":["http://hdl.handle.net/1903/36156"],"dc:language.iso":["en"],"dc:publisher":["Digital Repository at the University of Maryland","University of Maryland (College Park, Md.)"],"dc:subject.keyword":["Cybersecurity","Decompilers","Forensics","Reverse-Engineering","Security","Software"],"dc:subject.proquest":["Computer science","Computer engineering"],"dc:title":["IMPROVING BINARY DECOMPILATION: FROM FORENSICALLY EQUIVALENT TRANSFORMATION TO LLM-DRIVEN DECOMPILATION"],"dc:type":["Dissertation"],"others:access_status":["open.access"]},"updated_at":"2026-11-19T08:46:02Z"}