From 0391f6710987f5b3e54c35c7a218b4b17535d688 Mon Sep 17 00:00:00 2001 From: nemerle Date: Sun, 1 May 2016 18:42:28 +0200 Subject: [PATCH] Per-Function flag to prevent decompilation/disassembly For now it just sets PROC_ISLIB flag --- include/Procedure.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/Procedure.h b/include/Procedure.h index 57879a8..992bbc1 100644 --- a/include/Procedure.h +++ b/include/Procedure.h @@ -210,6 +210,7 @@ public: // bool anyFlagsSet(uint32_t t) { return (flg&t)!=0;} bool hasRegArgs() const { return (flg & REG_ARGS)!=0;} + void markDoNotDecompile() { flg |= PROC_ISLIB; } bool isLibrary() const { return (flg & PROC_ISLIB)!=0;} void compoundCond(); void writeProcComments(); @@ -277,7 +278,7 @@ protected: bool findDerivedSeq(derSeq &derivedGi); bool nextOrderGraph(derSeq &derivedGi); void addOutEdgesForConditionalJump(BB* pBB, int next_ip, LLInst *ll); - + private: bool decodeIndirectJMP(ICODE &pIcode, STATE *pstate, CALL_GRAPH *pcallGraph); bool decodeIndirectJMP2(ICODE &pIcode, STATE *pstate, CALL_GRAPH *pcallGraph);