NaC-L / Mergen

Deobfuscation via optimization with usage of LLVM IR and parsing assembly.
GNU General Public License v3.0
324 stars 29 forks source link

replaceAllUsesWithandReplaceRMap should update the pointer and value in lifterMemoryBuffer #16

Closed NaC-L closed 2 months ago

NaC-L commented 3 months ago

https://github.com/NaC-L/Mergen/blob/main/lifter/PathSolver.cpp#L19C6-L19C38

NaC-L commented 3 months ago
    for (auto user : v->users()) {
       if (auto userI = dyn_cast<GetElementPtrInst>(user)) {
            // do some stuff here
        }
    }
NaC-L commented 3 months ago

https://github.com/NaC-L/Mergen/commit/8923d3ad8a92d28eb2d8948fe25f1feedee0ae13 should fix?