lib/pe32-support.js
/**
     * Remove any alignment NOP/int3 opcodes and replace them by a single line "..."
     */
Remove any alignment NOP/int3 opcodes and replace them by a single line "..."
Remove any alignment NOP / int3 opcodes and replace them by a single line " ... "
shortenInt3s() {
        let lineIdx = 0;
        let inInt3 = false;
        while (lineIdx < this.asmLines.length) {
            const line = this.asmLines[lineIdx];
            if (this.int3Regex.test(line)) {
                if (inInt3) {
                    this.asmLines.splice(lineIdx, 1);
                    lineIdx--;
                } else {
                    inInt3 = true;
                    this.asmLines[lineIdx] = '...';
                }
            } else {
                inInt3 = false;
            }
            lineIdx++;
        }
    }
shortenInt3s ( ) { let lineIdx = 0 ; let inInt3 = false ; while ( lineIdx < this . asmLines . length ) { const line = this . asmLines [ lineIdx ] ; if ( this . int3Regex . test ( line ) ) { if ( inInt3 ) { this . asmLines . splice ( lineIdx , 1 ) ; lineIdx -- ; } else { inInt3 = true ; this . asmLines [ lineIdx ] = '...' ; } } else { inInt3 = false ; } lineIdx ++ ; } }
Remove any alignment NOP/int3 opcodes and replace them by a single line "..."
Remove any alignment NOP / int3 opcodes and replace them by a single line " ... "