Skip to content

Commit

Permalink
08/23/2024 00:51:31:404
Browse files Browse the repository at this point in the history
  • Loading branch information
invalid committed Aug 22, 2024
1 parent 5cdb147 commit 065a2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ __attribute((__annotate__(("x-cfg,ind-br,alias-access")))) void crypt_func2(uint
var[i]^=key[i%key_size];
}
}
__attribute((__annotate__(("x-vm,x-cfg,alias-access")))) void crypt_func3(uint8_t *var,uint8_t*key,size_t var_size,size_t key_size){
__attribute((__annotate__(("x-cfg,x-vm,ind-br,alias-access")))) void crypt_func3(uint8_t *var,uint8_t*key,size_t var_size,size_t key_size){
for(auto i=0;i<var_size;i++){
var[i]^=key[i%key_size];
}
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Obfuscation/AliasAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Function* AliasAccess::buildGetterFunction(Module &M) {
IRBuilder<> IRB(Entry);
IRB.CreateRet(Ptr);
if(get_vm_fla_level()!=7) {
F->setAnnotationStrings("x-vm,x-cfg,ind-br");
ollvm::bogus(*F);
ollvm::doF(*F->getParent(),*F);
}
Expand Down

0 comments on commit 065a2f1

Please sign in to comment.