add comments
This commit is contained in:
@@ -60,10 +60,12 @@ unsigned preprocess_calltrick(unsigned char *infile, unsigned insize, unsigned c
|
|||||||
do {
|
do {
|
||||||
//printf("infile_ptr = %p, count = %u\n", infile_ptr, count);
|
//printf("infile_ptr = %p, count = %u\n", infile_ptr, count);
|
||||||
unsigned al = *(infile_ptr++);
|
unsigned al = *(infile_ptr++);
|
||||||
al -= 0x0E8; // relative call opcode
|
al -= 0x0E8;
|
||||||
if (al > 1) {
|
if (al > 1) { // if != E8 and != E9
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// E8 dword: call rel32
|
||||||
|
// E9 dword: jmp rel32
|
||||||
if (count < 5) {
|
if (count < 5) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user