Skip to content

Commit

Permalink
Fixing minor bugs in constant obf removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Aug 17, 2020
1 parent 1e0edbb commit cbe48e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NoVmp/vmprotect/vtil_lifter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace vmp
//
if ( auto res = tracer( { it, base } )->evaluate( eval ); res.is_known() )
{
uint64_t rva = *res.get();
uint64_t rva = *res.get() + off;
if ( !vstate->img->has_relocs ) rva -= vstate->img->get_real_image_base();

// If in a read-only section:
Expand All @@ -87,7 +87,6 @@ namespace vmp
( +it )->base = &vtil::ins::mov;
( +it )->operands = { it->operands[ 0 ], vtil::operand{ value, it->access_size() } };
}
break;
}
}
}
Expand Down

0 comments on commit cbe48e4

Please sign in to comment.