Skip to content
Snippets Groups Projects
Commit d4805133 authored by an7s's avatar an7s
Browse files

removed diagnostic msgs

parent f16010b4
No related branches found
No related tags found
No related merge requests found
......@@ -94,25 +94,21 @@ static bool isAddSubNonEspInstruction32(Instruction_t *p_instruction)
// look for "addl ..." or "subl ..."
p_instruction->Disassemble(disasm);
fprintf(stderr,"INT DEBUG: inst: 0x%x [%s] [%s]\n", p_instruction->GetAddress(), disasm.Instruction.Mnemonic, p_instruction->GetComment().c_str());
//fprintf(stderr,"INT DEBUG: inst: 0x%x [%s] [%s]\n", p_instruction->GetAddress(), disasm.Instruction.Mnemonic, p_instruction->GetComment().c_str());
// beaengine adds space at the end of the mnemonic string
if (strcasestr(disasm.Instruction.Mnemonic, "add ")
|| strcasestr(disasm.Instruction.Mnemonic, "addl"))
if (strcasestr(disasm.Instruction.Mnemonic, "add "))
{
return true;
}
else if (strcasestr(disasm.Instruction.Mnemonic, "sub ")
|| strcasestr(disasm.Instruction.Mnemonic, "subl"))
else if (strcasestr(disasm.Instruction.Mnemonic, "sub "))
{
/*
if (strcasestr(disasm.Argument1.ArgMnemonic,"esp") &&
(disasm.Argument2.ArgType & 0xFFFF0000 & (CONSTANT_TYPE | ABSOLUTE_)))
{
// optimization: filter out "sub esp, K"
return false;
}
*/
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment