Showing
4 changed files
with
4 additions
and
0 deletions
... | @@ -21,9 +21,11 @@ namespace { | ... | @@ -21,9 +21,11 @@ namespace { |
21 | bool inserted = false; | 21 | bool inserted = false; |
22 | std::ofstream functionFile("functions.txt", std::ios_base::app); | 22 | std::ofstream functionFile("functions.txt", std::ios_base::app); |
23 | if (functionFile.is_open()) { | 23 | if (functionFile.is_open()) { |
24 | + if (!F.getName().contains("__cxx") && !F.getName().contains("_GLOBAL")) | ||
24 | functionFile << F.getName().str() << "\n"; | 25 | functionFile << F.getName().str() << "\n"; |
25 | functionFile.close(); | 26 | functionFile.close(); |
26 | } | 27 | } |
28 | + if (!F.getName().contains("__cxx") && !F.getName().contains("_GLOBAL")) { | ||
27 | for (auto &BB : F) { | 29 | for (auto &BB : F) { |
28 | for (auto &I : BB) { | 30 | for (auto &I : BB) { |
29 | if (I.getOpcode() == Instruction::Ret) { | 31 | if (I.getOpcode() == Instruction::Ret) { |
... | @@ -41,6 +43,8 @@ namespace { | ... | @@ -41,6 +43,8 @@ namespace { |
41 | BB->setName("obfuscatedreturn"); | 43 | BB->setName("obfuscatedreturn"); |
42 | } | 44 | } |
43 | } | 45 | } |
46 | + | ||
47 | + } | ||
44 | return true; | 48 | return true; |
45 | } | 49 | } |
46 | 50 | ... | ... |
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
-
Please register or login to post a comment