C软件加密解密之动态跟踪-3

  • 3、显示并保存跟踪结果
  • printf("\n Record Count = %d107",number);
    if( number > 0 )
    {
        printf("\n AX CX DX O_AX PSW par[11]");
        for(i = 0;i <number;i++)
        {
            printf("\n %04x %04x %04x %04x %04x",record[i].ax,record[i].cx,cxrecord[i].dx,record[i].out_ax,record[i].flags);
        for(j = 0;j<11;j++)
        {
            printf("%02x",record[i].parameter[j]);
        }
        }
    printf("\n");
    fp = fopen (file_dat,"wb+");
    /*记录加密程序读写特殊扇区的次数*/
    for(i = 0;i = number;i++)
    {
        fwrite(&record[i],sizeof(structrec),1,fp);
        fclose(fp);
    }
    }

    你可能感兴趣的:(加密解密)