-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
85,419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<compiler_spec> | ||
<data_organization> | ||
<absolute_max_alignment value="0" /> | ||
<machine_alignment value="2" /> | ||
<default_alignment value="1" /> | ||
<default_pointer_alignment value="4" /> | ||
<pointer_size value="4" /> | ||
<char_type signed="false" /> | ||
<char_size value="2" /> | ||
<wchar_size value="2" /> | ||
<short_size value="2" /> | ||
<integer_size value="4" /> | ||
<long_size value="8" /> | ||
<long_long_size value="8" /> | ||
<float_size value="4" /> | ||
<double_size value="8" /> | ||
<long_double_size value="16" /> | ||
<size_alignment_map> | ||
<entry size="1" alignment="1" /> | ||
<entry size="2" alignment="2" /> | ||
<entry size="4" alignment="4" /> | ||
<entry size="8" alignment="4" /> | ||
</size_alignment_map> | ||
</data_organization> | ||
|
||
<global> | ||
<range space="ram"/> | ||
</global> | ||
|
||
<stackpointer register="sp" space="ram" growth="negative"/> | ||
|
||
<default_proto> | ||
<prototype name="__stdcall" extrapop="0" stackshift="0"> | ||
<input> | ||
<pentry minsize="1" maxsize="500" align="4" extension="inttype"> | ||
<addr offset="0x100" space="register"/> | ||
</pentry> | ||
</input> | ||
<output> | ||
<pentry maxsize="8" minsize="1" extension="inttype"> | ||
<register name="resultregw"/> | ||
</pentry> | ||
</output> | ||
<unaffected> | ||
<register name="fp"/> | ||
<varnode space="register" offset="0x1000" size="0x400"/> | ||
</unaffected> | ||
<pcode inject="uponentry" dynamic="true"/> <!-- Dynamically generate p-code to map input to registers --> | ||
</prototype> | ||
</default_proto> | ||
|
||
<callotherfixup targetop="moveRangeToIV"> | ||
<pcode dynamic="true"/> | ||
</callotherfixup> | ||
|
||
</compiler_spec> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<processor_spec> | ||
<properties> | ||
<property key="DisableAllAnalyzers" value="value ignored, just turns them off"/> | ||
<property key="Analyzers.Android DEX/CDEX Condense Filler Bytes" value="true"/> | ||
<property key="Analyzers.Android DEX/CDEX Data Markup" value="true"/> | ||
<property key="Analyzers.Android DEX/CDEX Exception Handlers" value="true"/> | ||
<property key="Analyzers.Android DEX/CDEX Header Format" value="true"/> | ||
<property key="Analyzers.Android DEX/CDEX Instruction Markup" value="true"/> | ||
<property key="Analyzers.Android DEX/CDEX Switch Table Markup" value="true"/> | ||
<property key="Analyzers.Android ODEX Header Format" value="true"/> | ||
<property key="pcodeInjectLibraryClass" value="ghidra.dalvik.dex.inject.PcodeInjectLibraryDex"/> | ||
</properties> | ||
|
||
<inferptrbounds> | ||
<range space="ram" first="0" last="0"/> <!-- Don't try to infer pointers from constants in the body of a function --> | ||
</inferptrbounds> | ||
|
||
<jumpassist name="switchAssist"> | ||
<case_pcode> | ||
<input name="index" size="4"/> | ||
<input name="tableSize" size="4"/> | ||
<input name="defaultAddr" size="4"/> | ||
<input name="table" size="4"/> | ||
<input name="distance" size="4"/> | ||
<output name="finaladdr" size="4"/> | ||
<body><![CDATA[ | ||
finaladdr = *(table + distance + 4 + index * 4); | ||
]]></body> | ||
</case_pcode> | ||
<addr_pcode> | ||
<input name="index" size="4"/> | ||
<input name="tableSize" size="4"/> | ||
<input name="defaultAddr" size="4"/> | ||
<input name="table" size="4"/> | ||
<input name="distance" size="4"/> | ||
<output name="finaladdr" size="4"/> | ||
<body><![CDATA[ | ||
finaladdr = *(table + distance + 4 + tableSize * 4 + index * 4); | ||
finaladdr = table + finaladdr * 2; | ||
]]></body> | ||
</addr_pcode> | ||
<default_pcode> | ||
<input name="index" size="4"/> | ||
<input name="tableSize" size="4"/> | ||
<input name="defaultAddr" size="4"/> | ||
<input name="table" size="4"/> | ||
<input name="distance" size="4"/> | ||
<output name="finaladdr" size="4"/> | ||
<body><![CDATA[ | ||
finaladdr = defaultAddr; | ||
]]></body> | ||
</default_pcode> | ||
</jumpassist> | ||
</processor_spec> |
Oops, something went wrong.