1 # Test false detection cases.
3 # .text start RVA and end RVA
6 # .reloc start RVA and end RVA
12 # Assume ImageBase = 00400000. This does not affect the test.
15 00401001: 8B EC mov ebp,esp
16 00401003: B8 E8 00 00 00 mov eax,0E8h # E8 00 00 00 00
17 00401008: 00 C0 add al,al
20 0040100C: B9 00 00 00 E9 mov ecx,0E9000000h # E9 E8 00 00 00
21 00401011: E8 00 00 00 00 call 00401016
24 00401018: B1 0F mov cl,0Fh # 0F 80 C0 00 00 00
25 0040101A: 80 C0 00 add al,0
26 0040101D: 00 00 add byte ptr [eax],al
29 00401021: B8 E8 00 00 00 mov eax,0E8h # E8 00 00 00 E8
30 00401026: E8 00 00 00 00 call 0040102B
33 0040102D: E8 00 E9 00 00 call 0040F932 # E9 00 00 00 00
34 00401032: 00 00 add byte ptr [eax],al
43 # 1012 => False negative: shadowed by 1011
45 # 1023 => Potential false positive, but suppressed since target is outside .text
46 1027 # Emerges since it's not shadowed by 1023
47 1030 # False positive: target of 102E was outside .text, so fall back to this