From: notaz Date: Tue, 7 Apr 2015 00:20:34 +0000 (+0300) Subject: move notes to better place, update them X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4328117e09febd7f518b2ac7bb0a81be4bd79c02;p=ia32rtools.git move notes to better place, update them --- diff --git a/ida/notes.txt b/ida/notes.txt new file mode 100644 index 0000000..903fa68 --- /dev/null +++ b/ida/notes.txt @@ -0,0 +1,9 @@ + +manual adjust: +- (exe only) find constants in .text that are actually pointers + (adjust as needed): + [456][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]h + _[456][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]\+ +- get rid of function chunks where possible (they're usually tailcalls) +- search for 'dword_xx+N', make byte/word, also word->byte +- convert ds:0[eax*4] -> [eax*4+0] (h hotkey) diff --git a/run_sed.sh b/run_sed.sh index 29df071..637486a 100755 --- a/run_sed.sh +++ b/run_sed.sh @@ -26,16 +26,3 @@ s/\(\\)\tloc_/\1\tnear ptr loc_/;\ s/\> $f . $f - -# manual fixup: -# - 'end start' -> 'end' -# - 'mov edi, edi', 'lea ...' -> align -# - add 'near ptr' to some jumps -# - 'cmp [ebp+edx+0], cl' -> 'cmp [ebp+edx*1+0], cl' -# - 0FFxxh constants - masm treats a byte, ONLY sometimes prefix with 'word ptr' -# - jmp near: -# - jmp _strchr -# - search for 'dword_xx+N', make byte/word, also word->byte -# - get rid of type propagation, regenerate as 'simple' var_ -# - convert ds:0[eax*4] -> [eax*4+0] (h hotkey) -# - rm function chunks - they're funcs reached by tailcalls (usually)