Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Code for you mrexodia #2211

Closed
wants to merge 2,557 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
2557 commits
Select commit Hold shift + click to select a range
876abcd
DBG: change findSymbolsByPrefix to take a callback
mrexodia Jan 6, 2018
73b30ed
DBG: actually use findSymbolsByPrefix
mrexodia Jan 6, 2018
aec262b
GUI: remove unused ColumnCompare class from StdTable
mrexodia Jan 8, 2018
ffc168f
DBG: rename SymbolSourcePDB to SymbolSourceDIA
mrexodia Jan 9, 2018
66017a7
DBG: refactor SymbolInfo to use VA instead of RVA
mrexodia Jan 9, 2018
3ab8362
DBG: remove some useless dbghelp calls
mrexodia Jan 9, 2018
ba6ad4c
DBG: initial version of Wininet download library
mrexodia Jan 9, 2018
637815b
DBG: symdownload now works without dbghelp
mrexodia Feb 9, 2018
ff11a39
DBG: attempt to load symbols from multiple locations
mrexodia Feb 11, 2018
d5ae04d
DBG: fully implement symdownload command without dbghelp usage
mrexodia Feb 11, 2018
0cbf519
Fix undecorated name being uninitialized.
ZehMatt Feb 11, 2018
4fa1b9a
DBG: fix a buffer overflow in the symbol autocomplete function
mrexodia Feb 11, 2018
a2c5226
DBG: remove unused imports field from MODINFO
mrexodia Feb 11, 2018
bee62fb
DBG: add missing locks for ModInfoFromAddr
mrexodia Feb 12, 2018
476bc09
DBG: add export and import parsing routines in module.cpp
mrexodia Feb 12, 2018
73a5ffe
DBG: use export/import data from modules instead of from memory
mrexodia Feb 12, 2018
45b4999
DBG: fall back to resolving modules exports when no symbol is found
mrexodia Feb 12, 2018
c8af1f9
Use correct PDBDiaFile instance.
ZehMatt Feb 12, 2018
cad8aed
Refactor PDB data loading via IStream, explicit file access.
ZehMatt Feb 13, 2018
72ccf42
Fix too early stream deletion.
ZehMatt Feb 14, 2018
aa8a215
DBG: use win32 threads instead of std::thread
mrexodia Feb 14, 2018
4e88b39
Update DIA to 14.13.26128.0 + XP support
mrexodia Mar 11, 2018
fc9285e
[DBG] Work on modinfo improvements:
Mattiwatti Mar 18, 2018
5ad21c6
- ReadDebugDirectory(): add about 20 years worth of missing debug dir…
Mattiwatti Mar 18, 2018
a94c250
[DBG] Rewrite ReadImportDirectory()
Mattiwatti Mar 18, 2018
013cd1e
DBG: dont copy MODINFO and MODIMPORT/MODEXPORT structures
mrexodia Mar 20, 2018
9b0f9b5
Add clarifying comment/TODO re: invalid RVAs to ReadExportDirectory()…
Mattiwatti Mar 18, 2018
a4638d2
DBG: misc. changes and fixes in SymbolSourceDIA:
Mattiwatti Mar 18, 2018
28c0396
RvaToVa(): use SizeOfRawData instead of VirtualSize as the upper boun…
Mattiwatti Mar 20, 2018
6df9535
Rewrite ReadTlsCallbacks() to use RtlImageDirectoryEntryToData and re…
Mattiwatti Mar 20, 2018
14da6c4
DBG: clean up downslib
mrexodia Mar 21, 2018
1f485f3
DBG: more robust debug directory parsing. Validate the RVA, type and …
Mattiwatti Mar 24, 2018
f515484
ReadBaseRelocationTable() refactor. Is it better now? Dunno really. T…
Mattiwatti Mar 24, 2018
0bb2efc
Improve performance and crash resistance when loading PE files contai…
Mattiwatti Mar 24, 2018
70b3149
WIP: new symbol gui mostly working
mrexodia Mar 20, 2018
d79586d
DBG: fix a crash in the Cleanup in downslib
mrexodia May 8, 2018
62cd2bb
BRIDGE: fix truncation crash in DbgGetLabelAt
mrexodia May 8, 2018
408b6ee
GUI: don't filter symbol list when not necessary
mrexodia May 8, 2018
87c3238
DBG (WIP): set up DIA file stream for profiling of a handle leak
mrexodia May 8, 2018
2665df4
DBG: added mod.headerva expression function
mrexodia May 9, 2018
05378fa
GUI: add copy header VA to disassembly menu
mrexodia May 9, 2018
7d1afa0
DBG+GUI: change layout of window title to be more helpful in the task…
mrexodia May 11, 2018
9e68ea3
DBG: only store file hash in database if there is other data as well
mrexodia May 11, 2018
d30bd42
PROJECT: change default startup project
mrexodia May 14, 2018
0bf7bd1
GUI: fix ReferenceView signals not being called correctly
mrexodia May 14, 2018
8af904f
DBG: fix assert in debug mode on pluginunloadall
mrexodia May 14, 2018
34279eb
GUI: fix performance bottleneck with Qt signals
mrexodia May 14, 2018
4098dc8
DBG: finally fix the handle leak in PDBDiaFile
mrexodia May 15, 2018
c8b6abd
DBG: add pushfq mnemonic redirect
mrexodia May 15, 2018
717ded1
DBG: Fix solution dependency for Zydis
mrexodia May 24, 2018
df31f0d
DBG: change symbol load order + add debuggee.pdb to the search list
mrexodia Jun 8, 2018
d70ed83
DBG: fix a bug in getLabel where jmp [MessageBoxA] would not be recog…
mrexodia Jun 8, 2018
b8ae4b1
DBG: invalidate symbol source when MODINFO is destroyed
mrexodia Jun 12, 2018
47d6efb
DBG: do not fully escape debug strings
mrexodia Jun 29, 2018
b634020
DBG: implement findSourceLineInfo by fileName + line in symbol source
mrexodia Jun 29, 2018
8c169ae
DBG+BRIDGE+GUI: fix source loading
mrexodia Jun 29, 2018
32b400b
GUI: correctly show address column in search list view
mrexodia Jul 1, 2018
0c8956f
DBG+GUI: disable source debugging per default
mrexodia Jul 1, 2018
e5467cf
DBG: correctly update module list when changing module type
mrexodia Jul 1, 2018
7bde267
GUI: allow collapsing the side bar
mrexodia Jul 1, 2018
9804400
DBG: do not step if there is an enable breakpoint at CIP
mrexodia Jul 1, 2018
c1e6260
PROJECT: new README
mrexodia Jul 1, 2018
c11659d
Merge pull request #1820 from ZehMatt/symcache
mrexodia Jul 1, 2018
144dbd4
DBG: undecorate import/export names
mrexodia Jul 4, 2018
d7eac45
DBG: better error messages in PDBDiaFile::open
mrexodia Jul 5, 2018
bcb1df3
DBG: include DIA in deps
mrexodia Jul 5, 2018
fa82c80
DBG: temporary fix for AutoPatchExporter
mrexodia Jul 5, 2018
8ab605b
Input NaN & Inf into FPU registers
torusrxxx Jul 2, 2018
91924de
Really copy bytes HTML
torusrxxx Jul 2, 2018
d09e896
Allow folding a function when first instruction is selected. Add code…
torusrxxx Jul 3, 2018
681eb3e
GUI: fix a crash in the CPUSideBar
mrexodia Jul 14, 2018
62b6be9
DBG: allow the "-p PID -e EVENT" command line for JIT debugging
mrexodia Jul 15, 2018
bbf2dc2
LAUNCHER: fix a bug in forwarding of the command line parameters
mrexodia Jul 15, 2018
f042e81
LAUNCHER: clean up command line handling and allow the launcher as JI…
mrexodia Jul 15, 2018
1d510d6
DBG+GUI: update Zydis to fix a crash when disassembling certain instr…
mrexodia Jul 15, 2018
7526b7e
DBG: update TitanEngine
mrexodia Jul 19, 2018
0baa39c
Use keys to select in dump
torusrxxx Aug 7, 2018
ea3943c
const functions
torusrxxx Aug 7, 2018
a4756fe
slight changes of registers view key press event
torusrxxx Aug 8, 2018
f6216e2
Add ctrl/alt modifiers to dump
torusrxxx Aug 12, 2018
80c303d
Merge pull request #2001 from torusrxxx/patch0000008f
mrexodia Aug 12, 2018
c5830e5
close and delete trace file
torusrxxx Aug 19, 2018
b3b7cee
Stop tracing when closing trace file
torusrxxx Aug 21, 2018
c29eba9
no errors anymore
torusrxxx Aug 21, 2018
d4ec06f
Fixed a crash when tracing into far jump
torusrxxx Aug 21, 2018
863f83d
improve nop detection
torusrxxx Aug 24, 2018
7aab39f
Revert "DBG: do not step if there is an enable breakpoint at CIP"
mrexodia Sep 1, 2018
09fe1e3
BRIDGE: fix incorrect message being sent in some GuiMenuXXX functions
mrexodia Sep 13, 2018
da913f7
DBG: fix a possible crash in disasmget
mrexodia Sep 13, 2018
03f596c
Stricter ordinal name check
torusrxxx Oct 9, 2018
d7f1dad
DBG: exclude some invalid imports + give ordinal imports a name
mrexodia Aug 7, 2018
521195e
DBG: small refactor for SymAutoComplete
mrexodia Aug 7, 2018
b1188c3
DBG: fix crash in stackgetsuspectedcallstack when CSP is not pointing…
mrexodia Aug 22, 2018
70cfec4
DBG: add (undocumented) option to force load PDB
mrexodia Sep 11, 2018
23c2f04
DBG: add some more undocumented Visual C++ exceptions
mrexodia Oct 10, 2018
22861d6
Add some analysis for exceptions containing FACILITY_VISUALCPP in exinfo
mrexodia Oct 10, 2018
25a67b7
DBG: fix buffer overflow and assert when tracing fxsave or invalid in…
mrexodia Oct 10, 2018
da69e82
DBG: improve memory usage and performance with line numbers
mrexodia Sep 27, 2018
69db449
ADDED: trace file can now auto-scroll the disassembly view to current…
Oct 5, 2018
cf763ad
CHANGED: renamed toggleAutoDisassemblyFollowSelectionSlot() to follow…
Oct 5, 2018
a406a8e
GUI: Fix build for latest Qt
InKahootz Oct 3, 2018
d149f6d
Do not leave empty or corrupt PDBs in the store if a download failed.…
Mattiwatti Aug 29, 2018
94fcc52
support copy individual x87 registers
tathanhdinh Aug 27, 2018
2821121
FIXED: setting up the auto-follow context menu entry
Oct 11, 2018
cf14987
Merge branch 'development' into patch00000092
torusrxxx Oct 12, 2018
6705ce1
Disassembly popup in references
torusrxxx Oct 12, 2018
753ecd3
FIXED: uninitialized variable was used for height calculation and cau…
wschoech Oct 12, 2018
707cd44
Moved disassembly popup to AbstractTableView and added its support in…
torusrxxx Oct 13, 2018
594319a
Refactored old disassembly popup in CPUDisassembly
torusrxxx Oct 13, 2018
64db2ce
No popups for some views
torusrxxx Oct 13, 2018
9d58503
Don't use Qt wheel scrolling
torusrxxx Oct 13, 2018
788ecf2
Use integer index for register names
torusrxxx Jun 20, 2018
8c6a9e5
remove some signal slots about SIMD display mode
torusrxxx Jun 20, 2018
f5395cb
Added x87stX register names and menu action to switch ordering
torusrxxx Jun 20, 2018
ae9bf8c
st(X) can be edited
torusrxxx Jun 20, 2018
5669e13
temporary
torusrxxx Aug 15, 2018
ba79150
Set FPU registers to one/zero
torusrxxx Oct 10, 2018
be8dfae
Add clear log hotkey (Ctrl+L)
Atvaark Oct 12, 2018
7d1b0f6
Change CONTRIBUTING.md
Atvaark Oct 12, 2018
98e509b
GUI: fix really triggering misalignment of the comments column in Tra…
mrexodia Oct 16, 2018
49fe03c
GUI: remove pointless "to clipboard" part in RegistersView
mrexodia Oct 16, 2018
25b154b
Use Bridge clipboard funcs instead of QClipboard for status bar msg
torusrxxx Oct 17, 2018
d316405
Fixed uninitialized var with opcode grouping
torusrxxx Oct 24, 2018
744ccc5
GUI: change bNoDisassemblyPopup to bDisassemblyPopupEnabled for clarity
mrexodia Oct 29, 2018
fba7af6
Merge branch 'torusrxxx-patch00000092' into development
mrexodia Oct 29, 2018
b32c975
ADDED: dependency setup for debug builds (#2044)
wrongway88 Oct 31, 2018
5a4f15e
DBG: add OptionalHeader.AddressOfEntryPoint to the displayed symbols
balintf Oct 28, 2018
0065f20
Add DLL ordinal to symbol table and fix symbol table comparator
balintf Oct 29, 2018
e0052d6
ZYDIS: Use ZydisOperandAction as an enum instead of a flag
balintf Oct 29, 2018
0c87d87
DBG: fix getting raw int value for float typed watch points
balintf Oct 31, 2018
25a7e80
PROJECT: update deps
mrexodia Oct 31, 2018
60c54ea
Fixed incorrect comparator used in sorting xrefs
homo-programmatis Nov 1, 2018
de678ae
Fixed incorrect error message when memory could not be allocated
homo-programmatis Nov 1, 2018
eef5d07
GUI: fix negative zero floating point display (#2058)
balintf Nov 2, 2018
a304748
Remove extraneous "code helpers" badage
torusrxxx Nov 2, 2018
c710737
DBG: remove capstone references
balintf Oct 29, 2018
a3b5812
GUI: rename CapstoneTokenizer to ZydisTokenizer
balintf Oct 29, 2018
4ae573d
Remove capstone references from zydis_wrapper
balintf Oct 29, 2018
806e096
Remove Zydis-Capstone diff logic comment block
balintf Oct 29, 2018
5058078
GUI: fix merge error in Disassembly.cpp
balintf Nov 4, 2018
5162450
Fix yara crash when used with a single argument
balintf Nov 1, 2018
836a544
Run "AStyleWhore"
torusrxxx Nov 13, 2018
0adb663
Fixed Symbol::GetList() for symbols without undecorated name
homo-programmatis Nov 1, 2018
1e9bf1a
DBG: Fix mapped area overrun in ReadDebugDirectory for bogus debugDir…
balintf Nov 6, 2018
edbaedb
Graph zoom mode feature (#2068)
raiseman Nov 18, 2018
49f5780
GUI: only show logging enabled/disabled in status bar
mrexodia Nov 18, 2018
418541e
DBG: improve the skipInt3Stepping feature to work for long int3 instr…
mrexodia Nov 18, 2018
688e2cc
DBG+GUI: AStyle
mrexodia Nov 18, 2018
0e2febe
PROJECT: update TitanEngine for better SafeAttach option
mrexodia Nov 18, 2018
24e71e8
fix graph reopen bug (#2083)
raiseman Nov 27, 2018
e5c838c
opcode grouping in trace view
torusrxxx Nov 13, 2018
8cf2276
GUI: fix qword memory operand info in x32dbg
mrexodia Dec 28, 2018
98d38d9
GUI: fix warnings in DisassemblerGraphView
mrexodia Dec 28, 2018
f1fbfd9
DBG: don't use CreateProcessInfo->lpStartAddress because it is broken
mrexodia Jan 10, 2019
cc15cde
DBG: correctly handle executables with entry points inside the MZ header
mrexodia Jan 10, 2019
e5e96f7
DBG: analyze all xrefs in the module with XrefsAnalysis
mrexodia Jan 10, 2019
d04288c
DBG: improve performance of MemoryMapUpdate
mrexodia Jan 10, 2019
223ea58
DBG: add some more helpful format functions
mrexodia Jan 10, 2019
85e9635
DBG+BRIDGE+GUI: put in the title whether x64dbg is elevated or not
mrexodia Jan 20, 2019
9f5ce50
DBG: fix a mistake in MemUpdateMap
mrexodia Jan 20, 2019
661360b
GUI: fix duplicate &p in PatchDialog
mrexodia Jan 20, 2019
7d53b1a
DBG: fix potential crashes in GetModuleInfo
mrexodia Jan 20, 2019
435b208
Fix filename bug in patch menu
dl471 Mar 3, 2019
62c6d40
zoom overview fix
raiseman Feb 28, 2019
c325ccd
Graph breakpoints fix (#2137)
raiseman Mar 7, 2019
e36779d
DBG: more robust validation of PE directory sizes
Mattiwatti Jan 21, 2019
c54c968
DBG: ReadExportDirectory: do bounds checks on all export dir entries …
Mattiwatti Jan 22, 2019
e38adf1
DBG: AddressOfNameOrdinals is WORD[], not DWORD[]
Mattiwatti Jan 22, 2019
6e18613
DBG: ReadExportDirectory: put upper bound on the number of imports
Mattiwatti Mar 13, 2019
e687207
Add struct and map for relative register positions
dl471 Mar 4, 2019
39880b1
Add ability to move between general purpose registers with arrow keys
dl471 Mar 4, 2019
02129b5
Account for up/down keys in register view
dl471 Mar 5, 2019
2815ca2
Add arrow key movements for flag registers
dl471 Mar 5, 2019
115b90d
Add arrow movements for rest of non-FPU registers
dl471 Mar 12, 2019
c669c34
Add arrow key movements for first set of FPU registers
dl471 Mar 12, 2019
9d1c72f
Arrow key movements for middle group of FPU registers
dl471 Mar 12, 2019
54bd25b
Add arrow key movements for remaining FPU registers
dl471 Mar 12, 2019
8253a84
Add arrow key movements for x64 registers
dl471 Mar 12, 2019
21d03ce
Clean up control flow of arrow key logic
dl471 Mar 12, 2019
f3e0a4e
Scroll to keep selected register in view
dl471 Mar 14, 2019
6f60175
Fix a minor problem with trace browser (#2138)
torusrxxx Mar 28, 2019
ee411b0
DBG: some more improvements to safely reading the PE info
mrexodia Jan 21, 2019
41978f9
DBG: show full command line near 'Process Started' log entry
mrexodia Feb 5, 2019
7d727d0
GUI: remove entropy view
mrexodia Apr 6, 2019
386e242
DBG+GUI: removed yara
mrexodia Apr 6, 2019
3b8469b
DBG: print rex info in Zydis command
mrexodia Nov 27, 2018
61020f7
GUI: rewrite SourceView to work on 2gb+ files
mrexodia Aug 31, 2018
deef25b
GUI: implement follow in disassembler + go to line in SourceView
mrexodia Sep 7, 2018
b67b5eb
GUI: improve TraceFileSearch (now also searches r8-r15 on x64)
mrexodia Apr 9, 2019
2a3bc1d
GUI: implement \t correctly in SourceView
mrexodia Apr 9, 2019
9b602ee
GUI: setup copy menu for SourceView
mrexodia Apr 9, 2019
4af8ff6
DBG: (performance) improvements to SymbolSourceDIA
mrexodia Apr 12, 2019
51f53ee
GUI: implement all the missing SourceView features from before
mrexodia Apr 12, 2019
6bc16f8
PROJECT: remove and ignore vcxproj.user files
mrexodia Apr 12, 2019
d13b2ee
GUI: better handling of xbegin tokenizing
mrexodia Apr 17, 2019
1d9df16
DBG: fix missing module name in symbol log and implement source mapping
mrexodia Apr 17, 2019
ed5d085
Fix compilation in VS2019
Mattiwatti Apr 9, 2019
425a531
DBG: fix use after free derp
mrexodia Apr 22, 2019
1874da8
Fix export name parsing
StarsunYzL Apr 27, 2019
36741fd
Fix ThreadGetSuspendCount if the suspend count limit is reached
Mattiwatti Apr 28, 2019
1c02305
GUI: rename repaintGui signal to updateDisassembly
mrexodia Apr 28, 2019
4c08468
GUI: update the source view if the disassembly updates
mrexodia Apr 28, 2019
2cbafa3
DBG: add mod.isexport expression function
mrexodia Apr 30, 2019
c664ad1
DBG: add dis.iscallsystem expression function
mrexodia Apr 30, 2019
d623590
PROJECT: update README
mrexodia Apr 30, 2019
b244c81
DBG: removed sortedlru
mrexodia Apr 30, 2019
dcbe4e1
GUI: save script type when restarting
mrexodia May 2, 2019
4273fce
Fix export name is not parsed correctly
StarsunYzL May 3, 2019
72d76bb
Add GetExports and GetImports to the module scripting API.
ZehMatt May 2, 2019
59ddfa6
Added action filter box
kdma May 12, 2019
23968f1
Iterating QMap with ranged for. Inlined renderShortcuts. Save button …
kdma May 12, 2019
4ce5b0b
Fix other minor things
mrexodia May 19, 2019
1e07514
DBG: add symload command to manually load a PDB
mrexodia Jun 12, 2019
0a77a1c
DBG: add expression functions for exception information
mrexodia Jun 13, 2019
32c8e33
Removed backtab key substitution
kdma Jun 15, 2019
d62f7f4
disable warnings for dbghelp.h
mrexodia May 19, 2019
728f0ea
DBG: fix various issues pointed out by Visual Studio code analysis
mrexodia Jun 17, 2019
34318e3
GUI: introduce AbstractTableView::getCellColor
mrexodia Jun 17, 2019
d969087
GUI: refactor StdSearchListView to allow passing a custom StdTableSea…
mrexodia Jun 18, 2019
80d84e7
DBG: implement symunload command
mrexodia Jun 18, 2019
cc30f10
DBG: implement DbgFunctions()->ModSymbolStatus
mrexodia Jun 18, 2019
bb2a369
DBG: add colors and column to indicate symbol load status
mrexodia Jun 18, 2019
17d8f8e
GUI: remove snowman
mrexodia Jun 21, 2019
3c5a1ad
DBG: fix _plugin_menuentrysetvisible
mrexodia Jun 21, 2019
7114c71
DBG: trim debug strings before showing them
mrexodia Jun 22, 2019
c345647
DBG: allow plugstop to indicate FreeLibrary should not be called
mrexodia Jun 22, 2019
3dc120d
GUI: refactor BridgeResult and fix a bunch of bugs in the process
mrexodia Jun 22, 2019
fc9f9a5
BRIDGE+GUI: GuiExecuteOnGuiThreadEx
mrexodia Jun 22, 2019
0b7d840
DBG+BRIDGE+GUI: fix bugs and add Graph+Memory Map+Symbol Module plugi…
mrexodia Jun 22, 2019
1e7d4ce
PROJECT: remove snowman
mrexodia Jun 22, 2019
d17852b
DBG: fix a weird bug where dll breakpoints could not be deleted in ce…
mrexodia Jun 25, 2019
bf413de
GUI: better sorting behavior in the HandlesView
mrexodia Jun 26, 2019
021ea4f
GUI: properly encapsulate mSearchBox in SearchListView
mrexodia Jul 2, 2019
ab9f2d2
GUI: fixed some minor undefined behavior
mrexodia Jul 2, 2019
f57d69f
GUI: add a timer to SearchListView to properly deal with millions of …
mrexodia Jul 2, 2019
60e1dff
DBG: fix signature verification for PDB v2.0 and improve symbol log
mrexodia Aug 9, 2019
3bad6cb
GUI: Added Implemented color (orange/cyan) directional differentiatio…
ahkrichards Aug 3, 2019
de2d930
DBG+GUI: add transparent exception stepping option
mrexodia Aug 17, 2019
593b5f1
DBG: fix out of bounds access in valapifromstring
mrexodia Aug 17, 2019
8a07bd2
DBG+GUI: implement auto completion for exports in goto dialog
mrexodia Aug 17, 2019
7212e85
DBG: better heuristics for detecting the debuggee did not terminate a…
mrexodia Jul 7, 2019
c6e3441
GUI: don't follow patch in disasm and dump when toggling
mrexodia Aug 22, 2019
bbc93a9
DBG: improve symbol handling
mrexodia Aug 22, 2019
d6b2732
DBG: fix bugfix
mrexodia Aug 22, 2019
2c37afc
DBG: truncate copy data in DISASM_INSTR
mrexodia Aug 18, 2019
d50675c
DBG: fix some edge cases with page protections in the memory map
mrexodia Aug 22, 2019
249d538
DBG: update patterntransform to reject invalid patterns
mrexodia Sep 1, 2019
8e2fb7f
DBG: use patterntransform in the find command
mrexodia Sep 1, 2019
12cf712
DBG: add bswap format function
mrexodia Sep 1, 2019
31443c2
DBG: allow various more advanced pattern finding techniques
mrexodia Sep 1, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

DBG: remove unused imports field from MODINFO

  • Loading branch information...
mrexodia committed Feb 11, 2018
commit a2c52260f75add88c06b302ad7e23e74280f27b9
@@ -327,9 +327,6 @@ void GetModuleInfo(MODINFO & Info, ULONG_PTR FileMapVA)
Info.sections.push_back(curSection);
}

// Clear imports by default
Info.imports.clear();

ReadTlsCallbacks(Info, FileMapVA);
ReadBaseRelocationTable(Info, FileMapVA);
ReadDebugDirectory(Info, FileMapVA);
@@ -691,20 +688,6 @@ bool ModSectionsFromAddr(duint Address, std::vector<MODSECTIONINFO>* Sections)
return true;
}

bool ModImportsFromAddr(duint Address, std::vector<MODIMPORTINFO>* Imports)
{
SHARED_ACQUIRE(LockModules);

auto module = ModInfoFromAddr(Address);

if(!module)
return false;

// Copy vector <-> vector
*Imports = module->imports;
return true;
}

duint ModEntryFromAddr(duint Address)
{
SHARED_ACQUIRE(LockModules);
@@ -751,35 +734,6 @@ void ModEnum(const std::function<void(const MODINFO &)> & cbEnum)
cbEnum(mod.second);
}

bool ModAddImportToModule(duint Base, const MODIMPORTINFO & importInfo)
{
SHARED_ACQUIRE(LockModules);

if(!Base || !importInfo.addr)
return false;

auto module = ModInfoFromAddr(Base);

if(!module)
return false;

// Search in Import Vector
auto pImports = &(module->imports);
auto it = std::find_if(pImports->begin(), pImports->end(), [&importInfo](const MODIMPORTINFO & currentImportInfo)->bool
{
return (importInfo.addr == currentImportInfo.addr);
});

// Import in the list already
if(it != pImports->end())
return false;

// Add import to imports vector
pImports->push_back(importInfo);

return true;
}

int ModGetParty(duint Address)
{
SHARED_ACQUIRE(LockModules);
@@ -53,7 +53,6 @@ struct MODINFO
char path[MAX_PATH]; // File path (in UTF8)

std::vector<MODSECTIONINFO> sections;
std::vector<MODIMPORTINFO> imports;
std::vector<MODRELOCATIONINFO> relocations;
std::vector<duint> tlsCallbacks;

@@ -94,7 +93,6 @@ duint ModBaseFromName(const char* Module);
duint ModSizeFromAddr(duint Address);
std::string ModNameFromHash(duint Hash);
bool ModSectionsFromAddr(duint Address, std::vector<MODSECTIONINFO>* Sections);
bool ModImportsFromAddr(duint Address, std::vector<MODIMPORTINFO>* Imports);
duint ModEntryFromAddr(duint Address);
int ModPathFromAddr(duint Address, char* Path, int Size);
int ModPathFromName(const char* Module, char* Path, int Size);
@@ -108,7 +106,6 @@ void ModEnum(const std::function<void(const MODINFO &)> & cbEnum);

int ModGetParty(duint Address);
void ModSetParty(duint Address, int Party);
bool ModAddImportToModule(duint Base, const MODIMPORTINFO & importInfo);
bool ModRelocationsFromAddr(duint Address, std::vector<MODRELOCATIONINFO> & Relocations);
bool ModRelocationAtAddr(duint Address, MODRELOCATIONINFO* Relocation);
bool ModRelocationsInRange(duint Address, duint Size, std::vector<MODRELOCATIONINFO> & Relocations);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.