找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 3473|回复: 4

长度反汇编引擎

[复制链接]
发表于 2015-10-28 22:38:06 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×
顾名思义,只取得当前地址指令长度,从q管驱动中逆向出来的,也属蛋疼之举
  1. int DisasmLen(unsigned char* bytecode)
  2. {
  3.         unsigned long decode1[256][7]=
  4.         {
  5.                 {0x00,0x02,0x02,0x01,0x00,0x00,0x00,},
  6.                 {0x01,0x02,0x02,0x01,0x00,0x00,0x00,},
  7.                 {0x02,0x02,0x02,0x01,0x00,0x00,0x00,},
  8.                 {0x03,0x02,0x02,0x01,0x00,0x00,0x00,},
  9.                 {0x04,0x01,0x01,0x00,0x00,0x00,0x00,},
  10.                 {0x05,0x01,0x01,0x00,0x00,0x00,0x00,},
  11.                 {0x06,0x02,0x02,0x00,0x00,0x00,0x00,},
  12.                 {0x07,0x01,0x01,0x00,0x00,0x00,0x00,},
  13.                 {0x08,0x02,0x02,0x00,0x00,0x00,0x00,},
  14.                 {0x09,0x02,0x02,0x00,0x00,0x00,0x00,},
  15.                 {0x0a,0x01,0x01,0x00,0x00,0x00,0x00,},
  16.                 {0x0b,0x02,0x02,0x00,0x00,0x00,0x00,},
  17.                 {0x0c,0x01,0x01,0x00,0x00,0x00,0x00,},
  18.                 {0x0d,0x02,0x02,0x01,0x00,0x00,0x00,},
  19.                 {0x0e,0x02,0x02,0x00,0x00,0x00,0x00,},
  20.                 {0x0f,0x03,0x03,0x02,0x00,0x00,0x00,},
  21.                 {0x10,0x02,0x02,0x01,0x00,0x00,0x00,},
  22.                 {0x11,0x02,0x02,0x01,0x00,0x00,0x00,},
  23.                 {0x12,0x02,0x02,0x01,0x00,0x00,0x00,},
  24.                 {0x13,0x02,0x02,0x01,0x00,0x00,0x00,},
  25.                 {0x14,0x02,0x02,0x01,0x00,0x00,0x00,},
  26.                 {0x15,0x02,0x02,0x01,0x00,0x00,0x00,},
  27.                 {0x16,0x02,0x02,0x01,0x00,0x00,0x00,},
  28.                 {0x17,0x02,0x02,0x01,0x00,0x00,0x00,},
  29.                 {0x18,0x02,0x02,0x01,0x00,0x00,0x00,},
  30.                 {0x19,0x01,0x01,0x00,0x00,0x00,0x00,},
  31.                 {0x1a,0x01,0x01,0x00,0x00,0x00,0x00,},
  32.                 {0x1b,0x01,0x01,0x00,0x00,0x00,0x00,},
  33.                 {0x1c,0x01,0x01,0x00,0x00,0x00,0x00,},
  34.                 {0x1d,0x01,0x01,0x00,0x00,0x00,0x00,},
  35.                 {0x1e,0x01,0x01,0x00,0x00,0x00,0x00,},
  36.                 {0x1f,0x01,0x01,0x00,0x00,0x00,0x00,},
  37.                 {0x20,0x02,0x02,0x01,0x00,0x00,0x00,},
  38.                 {0x21,0x02,0x02,0x01,0x00,0x00,0x00,},
  39.                 {0x22,0x02,0x02,0x01,0x00,0x00,0x00,},
  40.                 {0x23,0x02,0x02,0x01,0x00,0x00,0x00,},
  41.                 {0x24,0x01,0x01,0x00,0x00,0x00,0x00,},
  42.                 {0x25,0x01,0x01,0x00,0x00,0x00,0x00,},
  43.                 {0x26,0x01,0x01,0x00,0x00,0x00,0x00,},
  44.                 {0x27,0x01,0x01,0x00,0x00,0x00,0x00,},
  45.                 {0x28,0x02,0x02,0x01,0x00,0x00,0x00,},
  46.                 {0x29,0x02,0x02,0x01,0x00,0x00,0x00,},
  47.                 {0x2a,0x02,0x02,0x01,0x00,0x00,0x00,},
  48.                 {0x2b,0x02,0x02,0x01,0x00,0x00,0x00,},
  49.                 {0x2c,0x02,0x02,0x01,0x00,0x00,0x00,},
  50.                 {0x2d,0x02,0x02,0x01,0x00,0x00,0x00,},
  51.                 {0x2e,0x02,0x02,0x01,0x00,0x00,0x00,},
  52.                 {0x2f,0x02,0x02,0x01,0x00,0x00,0x00,},
  53.                 {0x30,0x02,0x02,0x00,0x00,0x00,0x00,},
  54.                 {0x31,0x02,0x02,0x00,0x00,0x00,0x00,},
  55.                 {0x32,0x02,0x02,0x00,0x00,0x00,0x00,},
  56.                 {0x33,0x02,0x02,0x00,0x00,0x00,0x00,},
  57.                 {0x34,0x02,0x02,0x00,0x00,0x00,0x00,},
  58.                 {0x35,0x02,0x02,0x00,0x00,0x00,0x00,},
  59.                 {0x36,0x01,0x01,0x00,0x00,0x00,0x00,},
  60.                 {0x37,0x01,0x01,0x00,0x00,0x00,0x00,},
  61.                 {0x38,0x01,0x01,0x00,0x00,0x00,0x00,},
  62.                 {0x39,0x01,0x01,0x00,0x00,0x00,0x00,},
  63.                 {0x3a,0x01,0x01,0x00,0x00,0x00,0x00,},
  64.                 {0x3b,0x01,0x01,0x00,0x00,0x00,0x00,},
  65.                 {0x3c,0x01,0x01,0x00,0x00,0x00,0x00,},
  66.                 {0x3d,0x01,0x01,0x00,0x00,0x00,0x00,},
  67.                 {0x3e,0x01,0x01,0x00,0x00,0x00,0x00,},
  68.                 {0x3f,0x01,0x01,0x00,0x00,0x00,0x00,},
  69.                 {0x40,0x02,0x02,0x01,0x00,0x00,0x00,},
  70.                 {0x41,0x02,0x02,0x01,0x00,0x00,0x00,},
  71.                 {0x42,0x02,0x02,0x01,0x00,0x00,0x00,},
  72.                 {0x43,0x02,0x02,0x01,0x00,0x00,0x00,},
  73.                 {0x44,0x02,0x02,0x01,0x00,0x00,0x00,},
  74.                 {0x45,0x02,0x02,0x01,0x00,0x00,0x00,},
  75.                 {0x46,0x02,0x02,0x01,0x00,0x00,0x00,},
  76.                 {0x47,0x02,0x02,0x01,0x00,0x00,0x00,},
  77.                 {0x48,0x02,0x02,0x01,0x00,0x00,0x00,},
  78.                 {0x49,0x02,0x02,0x01,0x00,0x00,0x00,},
  79.                 {0x4a,0x02,0x02,0x01,0x00,0x00,0x00,},
  80.                 {0x4b,0x02,0x02,0x01,0x00,0x00,0x00,},
  81.                 {0x4c,0x02,0x02,0x01,0x00,0x00,0x00,},
  82.                 {0x4d,0x02,0x02,0x01,0x00,0x00,0x00,},
  83.                 {0x4e,0x02,0x02,0x01,0x00,0x00,0x00,},
  84.                 {0x4f,0x02,0x02,0x01,0x00,0x00,0x00,},
  85.                 {0x50,0x02,0x02,0x01,0x00,0x00,0x00,},
  86.                 {0x51,0x02,0x02,0x01,0x00,0x00,0x00,},
  87.                 {0x52,0x02,0x02,0x01,0x00,0x00,0x00,},
  88.                 {0x53,0x02,0x02,0x01,0x00,0x00,0x00,},
  89.                 {0x54,0x02,0x02,0x01,0x00,0x00,0x00,},
  90.                 {0x55,0x02,0x02,0x01,0x00,0x00,0x00,},
  91.                 {0x56,0x02,0x02,0x01,0x00,0x00,0x00,},
  92.                 {0x57,0x02,0x02,0x01,0x00,0x00,0x00,},
  93.                 {0x58,0x02,0x02,0x01,0x00,0x00,0x00,},
  94.                 {0x59,0x02,0x02,0x01,0x00,0x00,0x00,},
  95.                 {0x5a,0x02,0x02,0x01,0x00,0x00,0x00,},
  96.                 {0x5b,0x02,0x02,0x01,0x00,0x00,0x00,},
  97.                 {0x5c,0x02,0x02,0x01,0x00,0x00,0x00,},
  98.                 {0x5d,0x02,0x02,0x01,0x00,0x00,0x00,},
  99.                 {0x5e,0x02,0x02,0x01,0x00,0x00,0x00,},
  100.                 {0x5f,0x02,0x02,0x01,0x00,0x00,0x00,},
  101.                 {0x60,0x02,0x02,0x01,0x00,0x00,0x00,},
  102.                 {0x61,0x02,0x02,0x01,0x00,0x00,0x00,},
  103.                 {0x62,0x02,0x02,0x01,0x00,0x00,0x00,},
  104.                 {0x63,0x02,0x02,0x01,0x00,0x00,0x00,},
  105.                 {0x64,0x02,0x02,0x01,0x00,0x00,0x00,},
  106.                 {0x65,0x02,0x02,0x01,0x00,0x00,0x00,},
  107.                 {0x66,0x02,0x02,0x01,0x00,0x00,0x00,},
  108.                 {0x67,0x02,0x02,0x01,0x00,0x00,0x00,},
  109.                 {0x68,0x02,0x02,0x01,0x00,0x00,0x00,},
  110.                 {0x69,0x02,0x02,0x01,0x00,0x00,0x00,},
  111.                 {0x6a,0x02,0x02,0x01,0x00,0x00,0x00,},
  112.                 {0x6b,0x02,0x02,0x01,0x00,0x00,0x00,},
  113.                 {0x6c,0x02,0x02,0x01,0x00,0x00,0x00,},
  114.                 {0x6d,0x02,0x02,0x01,0x00,0x00,0x00,},
  115.                 {0x6e,0x02,0x02,0x01,0x00,0x00,0x00,},
  116.                 {0x6f,0x02,0x02,0x01,0x00,0x00,0x00,},
  117.                 {0x70,0x03,0x03,0x01,0x00,0x01,0x00,},
  118.                 {0x71,0x03,0x03,0x01,0x00,0x01,0x00,},
  119.                 {0x72,0x03,0x03,0x01,0x00,0x01,0x00,},
  120.                 {0x73,0x03,0x03,0x01,0x00,0x01,0x00,},
  121.                 {0x74,0x02,0x02,0x01,0x00,0x00,0x00,},
  122.                 {0x75,0x02,0x02,0x01,0x00,0x00,0x00,},
  123.                 {0x76,0x02,0x02,0x01,0x00,0x00,0x00,},
  124.                 {0x77,0x02,0x02,0x00,0x00,0x00,0x00,},
  125.                 {0x78,0x01,0x01,0x00,0x00,0x00,0x00,},
  126.                 {0x79,0x01,0x01,0x00,0x00,0x00,0x00,},
  127.                 {0x7a,0x01,0x01,0x00,0x00,0x00,0x00,},
  128.                 {0x7b,0x01,0x01,0x00,0x00,0x00,0x00,},
  129.                 {0x7c,0x01,0x01,0x00,0x00,0x00,0x00,},
  130.                 {0x7d,0x01,0x01,0x00,0x00,0x00,0x00,},
  131.                 {0x7e,0x02,0x02,0x01,0x00,0x00,0x00,},
  132.                 {0x7f,0x02,0x02,0x01,0x00,0x00,0x00,},
  133.                 {0x80,0x05,0x03,0x00,0x01,0x00,0x00,},
  134.                 {0x81,0x05,0x03,0x00,0x01,0x00,0x00,},
  135.                 {0x82,0x05,0x03,0x00,0x01,0x00,0x00,},
  136.                 {0x83,0x05,0x03,0x00,0x01,0x00,0x00,},
  137.                 {0x84,0x05,0x03,0x00,0x01,0x00,0x00,},
  138.                 {0x85,0x05,0x03,0x00,0x01,0x00,0x00,},
  139.                 {0x86,0x05,0x03,0x00,0x01,0x00,0x00,},
  140.                 {0x87,0x05,0x03,0x00,0x01,0x00,0x00,},
  141.                 {0x88,0x05,0x03,0x00,0x01,0x00,0x00,},
  142.                 {0x89,0x05,0x03,0x00,0x01,0x00,0x00,},
  143.                 {0x8a,0x05,0x03,0x00,0x01,0x00,0x00,},
  144.                 {0x8b,0x05,0x03,0x00,0x01,0x00,0x00,},
  145.                 {0x8c,0x05,0x03,0x00,0x01,0x00,0x00,},
  146.                 {0x8d,0x05,0x03,0x00,0x01,0x00,0x00,},
  147.                 {0x8e,0x05,0x03,0x00,0x01,0x00,0x00,},
  148.                 {0x8f,0x05,0x03,0x00,0x01,0x00,0x00,},
  149.                 {0x90,0x02,0x02,0x01,0x00,0x00,0x00,},
  150.                 {0x91,0x02,0x02,0x01,0x00,0x00,0x00,},
  151.                 {0x92,0x02,0x02,0x01,0x00,0x00,0x00,},
  152.                 {0x93,0x02,0x02,0x01,0x00,0x00,0x00,},
  153.                 {0x94,0x02,0x02,0x01,0x00,0x00,0x00,},
  154.                 {0x95,0x02,0x02,0x01,0x00,0x00,0x00,},
  155.                 {0x96,0x02,0x02,0x01,0x00,0x00,0x00,},
  156.                 {0x97,0x02,0x02,0x01,0x00,0x00,0x00,},
  157.                 {0x98,0x02,0x02,0x01,0x00,0x00,0x00,},
  158.                 {0x99,0x02,0x02,0x01,0x00,0x00,0x00,},
  159.                 {0x9a,0x02,0x02,0x01,0x00,0x00,0x00,},
  160.                 {0x9b,0x02,0x02,0x01,0x00,0x00,0x00,},
  161.                 {0x9c,0x02,0x02,0x01,0x00,0x00,0x00,},
  162.                 {0x9d,0x02,0x02,0x01,0x00,0x00,0x00,},
  163.                 {0x9e,0x02,0x02,0x01,0x00,0x00,0x00,},
  164.                 {0x9f,0x02,0x02,0x01,0x00,0x00,0x00,},
  165.                 {0xa0,0x02,0x02,0x00,0x00,0x00,0x00,},
  166.                 {0xa1,0x02,0x02,0x00,0x00,0x00,0x00,},
  167.                 {0xa2,0x02,0x02,0x00,0x00,0x00,0x00,},
  168.                 {0xa3,0x02,0x02,0x01,0x00,0x00,0x00,},
  169.                 {0xa4,0x03,0x03,0x01,0x00,0x01,0x00,},
  170.                 {0xa5,0x02,0x02,0x01,0x00,0x00,0x00,},
  171.                 {0xa6,0x01,0x01,0x00,0x00,0x00,0x00,},
  172.                 {0xa7,0x01,0x01,0x00,0x00,0x00,0x00,},
  173.                 {0xa8,0x02,0x02,0x00,0x00,0x00,0x00,},
  174.                 {0xa9,0x02,0x02,0x00,0x00,0x00,0x00,},
  175.                 {0xaa,0x02,0x02,0x00,0x00,0x00,0x00,},
  176.                 {0xab,0x02,0x02,0x01,0x00,0x00,0x00,},
  177.                 {0xac,0x03,0x03,0x01,0x00,0x01,0x00,},
  178.                 {0xad,0x02,0x02,0x01,0x00,0x00,0x00,},
  179.                 {0xae,0x02,0x02,0x01,0x00,0x00,0x00,},
  180.                 {0xaf,0x02,0x02,0x01,0x00,0x00,0x00,},
  181.                 {0xb0,0x02,0x02,0x01,0x00,0x00,0x00,},
  182.                 {0xb1,0x02,0x02,0x01,0x00,0x00,0x00,},
  183.                 {0xb2,0x02,0x02,0x01,0x00,0x00,0x00,},
  184.                 {0xb3,0x02,0x02,0x01,0x00,0x00,0x00,},
  185.                 {0xb4,0x02,0x02,0x01,0x00,0x00,0x00,},
  186.                 {0xb5,0x02,0x02,0x01,0x00,0x00,0x00,},
  187.                 {0xb6,0x02,0x02,0x01,0x00,0x00,0x00,},
  188.                 {0xb7,0x02,0x02,0x01,0x00,0x00,0x00,},
  189.                 {0xb8,0x01,0x01,0x00,0x00,0x00,0x00,},
  190.                 {0xb9,0x01,0x01,0x00,0x00,0x00,0x00,},
  191.                 {0xba,0x03,0x03,0x01,0x00,0x01,0x00,},
  192.                 {0xbb,0x02,0x02,0x01,0x00,0x00,0x00,},
  193.                 {0xbc,0x02,0x02,0x01,0x00,0x00,0x00,},
  194.                 {0xbd,0x02,0x02,0x01,0x00,0x00,0x00,},
  195.                 {0xbe,0x02,0x02,0x01,0x00,0x00,0x00,},
  196.                 {0xbf,0x02,0x02,0x01,0x00,0x00,0x00,},
  197.                 {0xc0,0x02,0x02,0x01,0x00,0x00,0x00,},
  198.                 {0xc1,0x02,0x02,0x01,0x00,0x00,0x00,},
  199.                 {0xc2,0x02,0x02,0x01,0x00,0x00,0x00,},
  200.                 {0xc3,0x02,0x02,0x01,0x00,0x00,0x00,},
  201.                 {0xc4,0x03,0x03,0x01,0x00,0x01,0x00,},
  202.                 {0xc5,0x03,0x03,0x01,0x00,0x01,0x00,},
  203.                 {0xc6,0x03,0x03,0x01,0x00,0x01,0x00,},
  204.                 {0xc7,0x02,0x02,0x01,0x00,0x00,0x00,},
  205.                 {0xc8,0x02,0x02,0x00,0x00,0x00,0x00,},
  206.                 {0xc9,0x02,0x02,0x00,0x00,0x00,0x00,},
  207.                 {0xca,0x02,0x02,0x00,0x00,0x00,0x00,},
  208.                 {0xcb,0x02,0x02,0x00,0x00,0x00,0x00,},
  209.                 {0xcc,0x02,0x02,0x00,0x00,0x00,0x00,},
  210.                 {0xcd,0x02,0x02,0x00,0x00,0x00,0x00,},
  211.                 {0xce,0x02,0x02,0x00,0x00,0x00,0x00,},
  212.                 {0xcf,0x02,0x02,0x00,0x00,0x00,0x00,},
  213.                 {0xd0,0x01,0x01,0x00,0x00,0x00,0x00,},
  214.                 {0xd1,0x02,0x02,0x01,0x00,0x00,0x00,},
  215.                 {0xd2,0x02,0x02,0x01,0x00,0x00,0x00,},
  216.                 {0xd3,0x02,0x02,0x01,0x00,0x00,0x00,},
  217.                 {0xd4,0x02,0x02,0x01,0x00,0x00,0x00,},
  218.                 {0xd5,0x02,0x02,0x01,0x00,0x00,0x00,},
  219.                 {0xd6,0x02,0x02,0x01,0x00,0x00,0x00,},
  220.                 {0xd7,0x02,0x02,0x01,0x00,0x00,0x00,},
  221.                 {0xd8,0x02,0x02,0x01,0x00,0x00,0x00,},
  222.                 {0xd9,0x02,0x02,0x01,0x00,0x00,0x00,},
  223.                 {0xda,0x02,0x02,0x01,0x00,0x00,0x00,},
  224.                 {0xdb,0x02,0x02,0x01,0x00,0x00,0x00,},
  225.                 {0xdc,0x02,0x02,0x01,0x00,0x00,0x00,},
  226.                 {0xdd,0x02,0x02,0x01,0x00,0x00,0x00,},
  227.                 {0xde,0x02,0x02,0x01,0x00,0x00,0x00,},
  228.                 {0xdf,0x02,0x02,0x01,0x00,0x00,0x00,},
  229.                 {0xe0,0x02,0x02,0x01,0x00,0x00,0x00,},
  230.                 {0xe1,0x02,0x02,0x01,0x00,0x00,0x00,},
  231.                 {0xe2,0x02,0x02,0x01,0x00,0x00,0x00,},
  232.                 {0xe3,0x02,0x02,0x01,0x00,0x00,0x00,},
  233.                 {0xe4,0x02,0x02,0x01,0x00,0x00,0x00,},
  234.                 {0xe5,0x02,0x02,0x01,0x00,0x00,0x00,},
  235.                 {0xe6,0x02,0x02,0x01,0x00,0x00,0x00,},
  236.                 {0xe7,0x02,0x02,0x01,0x00,0x00,0x00,},
  237.                 {0xe8,0x02,0x02,0x01,0x00,0x00,0x00,},
  238.                 {0xe9,0x02,0x02,0x01,0x00,0x00,0x00,},
  239.                 {0xea,0x02,0x02,0x01,0x00,0x00,0x00,},
  240.                 {0xeb,0x02,0x02,0x01,0x00,0x00,0x00,},
  241.                 {0xec,0x02,0x02,0x01,0x00,0x00,0x00,},
  242.                 {0xed,0x02,0x02,0x01,0x00,0x00,0x00,},
  243.                 {0xee,0x02,0x02,0x01,0x00,0x00,0x00,},
  244.                 {0xef,0x02,0x02,0x01,0x00,0x00,0x00,},
  245.                 {0xf0,0x01,0x01,0x00,0x00,0x00,0x00,},
  246.                 {0xf1,0x02,0x02,0x01,0x00,0x00,0x00,},
  247.                 {0xf2,0x02,0x02,0x01,0x00,0x00,0x00,},
  248.                 {0xf3,0x02,0x02,0x01,0x00,0x00,0x00,},
  249.                 {0xf4,0x02,0x02,0x01,0x00,0x00,0x00,},
  250.                 {0xf5,0x02,0x02,0x01,0x00,0x00,0x00,},
  251.                 {0xf6,0x02,0x02,0x01,0x00,0x00,0x00,},
  252.                 {0xf7,0x02,0x02,0x01,0x00,0x00,0x00,},
  253.                 {0xf8,0x02,0x02,0x01,0x00,0x00,0x00,},
  254.                 {0xf9,0x02,0x02,0x01,0x00,0x00,0x00,},
  255.                 {0xfa,0x02,0x02,0x01,0x00,0x00,0x00,},
  256.                 {0xfb,0x02,0x02,0x01,0x00,0x00,0x00,},
  257.                 {0xfc,0x02,0x02,0x01,0x00,0x00,0x00,},
  258.                 {0xfd,0x02,0x02,0x01,0x00,0x00,0x00,},
  259.                 {0xfe,0x02,0x02,0x01,0x00,0x00,0x00,},
  260.                 {0xff,0x01,0x01,0x00,0x00,0x00,0x00,},
  261.         };

  262.         unsigned long decode2[256][7]=
  263.         {
  264.                 {0x00,0x02,0x02,0x01,0x00,0x00,0x00,},
  265.                 {0x01,0x02,0x02,0x01,0x00,0x00,0x00,},
  266.                 {0x02,0x02,0x02,0x01,0x00,0x00,0x00,},
  267.                 {0x03,0x02,0x02,0x01,0x00,0x00,0x00,},
  268.                 {0x04,0x02,0x02,0x00,0x00,0x00,0x00,},
  269.                 {0x05,0x05,0x03,0x00,0x00,0x00,0x00,},
  270.                 {0x06,0x01,0x01,0x00,0x00,0x00,0x00,},
  271.                 {0x07,0x01,0x01,0x00,0x00,0x00,0x00,},
  272.                 {0x08,0x02,0x02,0x01,0x00,0x00,0x00,},
  273.                 {0x09,0x02,0x02,0x01,0x00,0x00,0x00,},
  274.                 {0x0a,0x02,0x02,0x01,0x00,0x00,0x00,},
  275.                 {0x0b,0x02,0x02,0x01,0x00,0x00,0x00,},
  276.                 {0x0c,0x02,0x02,0x00,0x00,0x00,0x00,},
  277.                 {0x0d,0x05,0x03,0x00,0x00,0x00,0x00,},
  278.                 {0x0e,0x01,0x01,0x00,0x00,0x00,0x00,},
  279.                 {0x0f,0x01,0x01,0x00,0x00,0x00,0x00,},
  280.                 {0x10,0x02,0x02,0x01,0x00,0x00,0x00,},
  281.                 {0x11,0x02,0x02,0x01,0x00,0x00,0x00,},
  282.                 {0x12,0x02,0x02,0x01,0x00,0x00,0x00,},
  283.                 {0x13,0x02,0x02,0x01,0x00,0x00,0x00,},
  284.                 {0x14,0x02,0x02,0x00,0x00,0x00,0x00,},
  285.                 {0x15,0x05,0x03,0x00,0x00,0x00,0x00,},
  286.                 {0x16,0x01,0x01,0x00,0x00,0x00,0x00,},
  287.                 {0x17,0x01,0x01,0x00,0x00,0x00,0x00,},
  288.                 {0x18,0x02,0x02,0x01,0x00,0x00,0x00,},
  289.                 {0x19,0x02,0x02,0x01,0x00,0x00,0x00,},
  290.                 {0x1a,0x02,0x02,0x01,0x00,0x00,0x00,},
  291.                 {0x1b,0x02,0x02,0x01,0x00,0x00,0x00,},
  292.                 {0x1c,0x02,0x02,0x00,0x00,0x00,0x00,},
  293.                 {0x1d,0x05,0x03,0x00,0x00,0x00,0x00,},
  294.                 {0x1e,0x01,0x01,0x00,0x00,0x00,0x00,},
  295.                 {0x1f,0x01,0x01,0x00,0x00,0x00,0x00,},
  296.                 {0x20,0x02,0x02,0x01,0x00,0x00,0x00,},
  297.                 {0x21,0x02,0x02,0x01,0x00,0x00,0x00,},
  298.                 {0x22,0x02,0x02,0x01,0x00,0x00,0x00,},
  299.                 {0x23,0x02,0x02,0x01,0x00,0x00,0x00,},
  300.                 {0x24,0x02,0x02,0x00,0x00,0x00,0x00,},
  301.                 {0x25,0x05,0x03,0x00,0x00,0x00,0x00,},
  302.                 {0x26,0x01,0x01,0x00,0x00,0x00,0x00,},
  303.                 {0x27,0x01,0x01,0x00,0x00,0x00,0x00,},
  304.                 {0x28,0x02,0x02,0x01,0x00,0x00,0x00,},
  305.                 {0x29,0x02,0x02,0x01,0x00,0x00,0x00,},
  306.                 {0x2a,0x02,0x02,0x01,0x00,0x00,0x00,},
  307.                 {0x2b,0x02,0x02,0x01,0x00,0x00,0x00,},
  308.                 {0x2c,0x02,0x02,0x00,0x00,0x00,0x00,},
  309.                 {0x2d,0x05,0x03,0x00,0x00,0x00,0x00,},
  310.                 {0x2e,0x01,0x01,0x00,0x00,0x00,0x00,},
  311.                 {0x2f,0x01,0x01,0x00,0x00,0x00,0x00,},
  312.                 {0x30,0x02,0x02,0x01,0x00,0x00,0x00,},
  313.                 {0x31,0x02,0x02,0x01,0x00,0x00,0x00,},
  314.                 {0x32,0x02,0x02,0x01,0x00,0x00,0x00,},
  315.                 {0x33,0x02,0x02,0x01,0x00,0x00,0x00,},
  316.                 {0x34,0x02,0x02,0x00,0x00,0x00,0x00,},
  317.                 {0x35,0x05,0x03,0x00,0x00,0x00,0x00,},
  318.                 {0x36,0x01,0x01,0x00,0x00,0x00,0x00,},
  319.                 {0x37,0x01,0x01,0x00,0x00,0x00,0x00,},
  320.                 {0x38,0x02,0x02,0x01,0x00,0x00,0x00,},
  321.                 {0x39,0x02,0x02,0x01,0x00,0x00,0x00,},
  322.                 {0x3a,0x02,0x02,0x01,0x00,0x00,0x00,},
  323.                 {0x3b,0x02,0x02,0x01,0x00,0x00,0x00,},
  324.                 {0x3c,0x02,0x02,0x00,0x00,0x00,0x00,},
  325.                 {0x3d,0x05,0x03,0x00,0x00,0x00,0x00,},
  326.                 {0x3e,0x01,0x01,0x00,0x00,0x00,0x00,},
  327.                 {0x3f,0x01,0x01,0x00,0x00,0x00,0x00,},
  328.                 {0x40,0x01,0x01,0x00,0x00,0x00,0x00,},
  329.                 {0x41,0x01,0x01,0x00,0x00,0x00,0x00,},
  330.                 {0x42,0x01,0x01,0x00,0x00,0x00,0x00,},
  331.                 {0x43,0x01,0x01,0x00,0x00,0x00,0x00,},
  332.                 {0x44,0x01,0x01,0x00,0x00,0x00,0x00,},
  333.                 {0x45,0x01,0x01,0x00,0x00,0x00,0x00,},
  334.                 {0x46,0x01,0x01,0x00,0x00,0x00,0x00,},
  335.                 {0x47,0x01,0x01,0x00,0x00,0x00,0x00,},
  336.                 {0x48,0x01,0x01,0x00,0x00,0x00,0x00,},
  337.                 {0x49,0x01,0x01,0x00,0x00,0x00,0x00,},
  338.                 {0x4a,0x01,0x01,0x00,0x00,0x00,0x00,},
  339.                 {0x4b,0x01,0x01,0x00,0x00,0x00,0x00,},
  340.                 {0x4c,0x01,0x01,0x00,0x00,0x00,0x00,},
  341.                 {0x4d,0x01,0x01,0x00,0x00,0x00,0x00,},
  342.                 {0x4e,0x01,0x01,0x00,0x00,0x00,0x00,},
  343.                 {0x4f,0x01,0x01,0x00,0x00,0x00,0x00,},
  344.                 {0x50,0x01,0x01,0x00,0x00,0x00,0x00,},
  345.                 {0x51,0x01,0x01,0x00,0x00,0x00,0x00,},
  346.                 {0x52,0x01,0x01,0x00,0x00,0x00,0x00,},
  347.                 {0x53,0x01,0x01,0x00,0x00,0x00,0x00,},
  348.                 {0x54,0x01,0x01,0x00,0x00,0x00,0x00,},
  349.                 {0x55,0x01,0x01,0x00,0x00,0x00,0x00,},
  350.                 {0x56,0x01,0x01,0x00,0x00,0x00,0x00,},
  351.                 {0x57,0x01,0x01,0x00,0x00,0x00,0x00,},
  352.                 {0x58,0x01,0x01,0x00,0x00,0x00,0x00,},
  353.                 {0x59,0x01,0x01,0x00,0x00,0x00,0x00,},
  354.                 {0x5a,0x01,0x01,0x00,0x00,0x00,0x00,},
  355.                 {0x5b,0x01,0x01,0x00,0x00,0x00,0x00,},
  356.                 {0x5c,0x01,0x01,0x00,0x00,0x00,0x00,},
  357.                 {0x5d,0x01,0x01,0x00,0x00,0x00,0x00,},
  358.                 {0x5e,0x01,0x01,0x00,0x00,0x00,0x00,},
  359.                 {0x5f,0x01,0x01,0x00,0x00,0x00,0x00,},
  360.                 {0x60,0x01,0x01,0x00,0x00,0x00,0x00,},
  361.                 {0x61,0x01,0x01,0x00,0x00,0x00,0x00,},
  362.                 {0x62,0x02,0x02,0x01,0x00,0x00,0x00,},
  363.                 {0x63,0x02,0x02,0x01,0x00,0x00,0x00,},
  364.                 {0x64,0x01,0x01,0x00,0x00,0x00,0x00,},
  365.                 {0x65,0x01,0x01,0x00,0x00,0x00,0x00,},
  366.                 {0x66,0x01,0x01,0x00,0x00,0x00,0x00,},
  367.                 {0x67,0x01,0x01,0x00,0x00,0x00,0x00,},
  368.                 {0x68,0x05,0x03,0x00,0x00,0x00,0x00,},
  369.                 {0x69,0x06,0x04,0x01,0x00,0x04,0x00,},
  370.                 {0x6a,0x02,0x02,0x00,0x00,0x00,0x00,},
  371.                 {0x6b,0x03,0x03,0x01,0x00,0x01,0x00,},
  372.                 {0x6c,0x01,0x01,0x00,0x00,0x00,0x00,},
  373.                 {0x6d,0x01,0x01,0x00,0x00,0x00,0x00,},
  374.                 {0x6e,0x01,0x01,0x00,0x00,0x00,0x00,},
  375.                 {0x6f,0x01,0x01,0x00,0x00,0x00,0x00,},
  376.                 {0x70,0x02,0x02,0x00,0x01,0x00,0x00,},
  377.                 {0x71,0x02,0x02,0x00,0x01,0x00,0x00,},
  378.                 {0x72,0x02,0x02,0x00,0x01,0x00,0x00,},
  379.                 {0x73,0x02,0x02,0x00,0x01,0x00,0x00,},
  380.                 {0x74,0x02,0x02,0x00,0x01,0x00,0x00,},
  381.                 {0x75,0x02,0x02,0x00,0x01,0x00,0x00,},
  382.                 {0x76,0x02,0x02,0x00,0x01,0x00,0x00,},
  383.                 {0x77,0x02,0x02,0x00,0x01,0x00,0x00,},
  384.                 {0x78,0x02,0x02,0x00,0x01,0x00,0x00,},
  385.                 {0x79,0x02,0x02,0x00,0x01,0x00,0x00,},
  386.                 {0x7a,0x02,0x02,0x00,0x01,0x00,0x00,},
  387.                 {0x7b,0x02,0x02,0x00,0x01,0x00,0x00,},
  388.                 {0x7c,0x02,0x02,0x00,0x01,0x00,0x00,},
  389.                 {0x7d,0x02,0x02,0x00,0x01,0x00,0x00,},
  390.                 {0x7e,0x02,0x02,0x00,0x01,0x00,0x00,},
  391.                 {0x7f,0x02,0x02,0x00,0x01,0x00,0x00,},
  392.                 {0x80,0x03,0x03,0x01,0x00,0x01,0x00,},
  393.                 {0x81,0x06,0x04,0x01,0x00,0x04,0x00,},
  394.                 {0x82,0x02,0x02,0x00,0x00,0x00,0x00,},
  395.                 {0x83,0x03,0x03,0x01,0x00,0x01,0x00,},
  396.                 {0x84,0x02,0x02,0x01,0x00,0x00,0x00,},
  397.                 {0x85,0x02,0x02,0x01,0x00,0x00,0x00,},
  398.                 {0x86,0x02,0x02,0x01,0x00,0x00,0x00,},
  399.                 {0x87,0x02,0x02,0x01,0x00,0x00,0x00,},
  400.                 {0x88,0x02,0x02,0x01,0x00,0x00,0x00,},
  401.                 {0x89,0x02,0x02,0x01,0x00,0x00,0x00,},
  402.                 {0x8a,0x02,0x02,0x01,0x00,0x00,0x00,},
  403.                 {0x8b,0x02,0x02,0x01,0x00,0x00,0x00,},
  404.                 {0x8c,0x02,0x02,0x01,0x00,0x00,0x00,},
  405.                 {0x8d,0x02,0x02,0x01,0x00,0x00,0x00,},
  406.                 {0x8e,0x02,0x02,0x01,0x00,0x00,0x00,},
  407.                 {0x8f,0x02,0x02,0x01,0x00,0x00,0x00,},
  408.                 {0x90,0x01,0x01,0x00,0x00,0x00,0x00,},
  409.                 {0x91,0x01,0x01,0x00,0x00,0x00,0x00,},
  410.                 {0x92,0x01,0x01,0x00,0x00,0x00,0x00,},
  411.                 {0x93,0x01,0x01,0x00,0x00,0x00,0x00,},
  412.                 {0x94,0x01,0x01,0x00,0x00,0x00,0x00,},
  413.                 {0x95,0x01,0x01,0x00,0x00,0x00,0x00,},
  414.                 {0x96,0x01,0x01,0x00,0x00,0x00,0x00,},
  415.                 {0x97,0x01,0x01,0x00,0x00,0x00,0x00,},
  416.                 {0x98,0x01,0x01,0x00,0x00,0x00,0x00,},
  417.                 {0x99,0x01,0x01,0x00,0x00,0x00,0x00,},
  418.                 {0x9a,0x07,0x05,0x00,0x00,0x00,0x01,},
  419.                 {0x9b,0x01,0x01,0x00,0x00,0x00,0x00,},
  420.                 {0x9c,0x01,0x01,0x00,0x00,0x00,0x00,},
  421.                 {0x9d,0x01,0x01,0x00,0x00,0x00,0x00,},
  422.                 {0x9e,0x01,0x01,0x00,0x00,0x00,0x00,},
  423.                 {0x9f,0x01,0x01,0x00,0x00,0x00,0x00,},
  424.                 {0xa0,0x05,0x03,0x00,0x00,0x00,0x02,},
  425.                 {0xa1,0x05,0x03,0x00,0x00,0x00,0x02,},
  426.                 {0xa2,0x05,0x03,0x00,0x00,0x00,0x02,},
  427.                 {0xa3,0x05,0x03,0x00,0x00,0x00,0x02,},
  428.                 {0xa4,0x01,0x01,0x00,0x00,0x00,0x00,},
  429.                 {0xa5,0x01,0x01,0x00,0x00,0x00,0x00,},
  430.                 {0xa6,0x01,0x01,0x00,0x00,0x00,0x00,},
  431.                 {0xa7,0x01,0x01,0x00,0x00,0x00,0x00,},
  432.                 {0xa8,0x02,0x02,0x00,0x00,0x00,0x00,},
  433.                 {0xa9,0x05,0x03,0x00,0x00,0x00,0x00,},
  434.                 {0xaa,0x01,0x01,0x00,0x00,0x00,0x00,},
  435.                 {0xab,0x01,0x01,0x00,0x00,0x00,0x00,},
  436.                 {0xac,0x01,0x01,0x00,0x00,0x00,0x00,},
  437.                 {0xad,0x01,0x01,0x00,0x00,0x00,0x00,},
  438.                 {0xae,0x01,0x01,0x00,0x00,0x00,0x00,},
  439.                 {0xaf,0x01,0x01,0x00,0x00,0x00,0x00,},
  440.                 {0xb0,0x02,0x02,0x00,0x00,0x00,0x00,},
  441.                 {0xb1,0x02,0x02,0x00,0x00,0x00,0x00,},
  442.                 {0xb2,0x02,0x02,0x00,0x00,0x00,0x00,},
  443.                 {0xb3,0x02,0x02,0x00,0x00,0x00,0x00,},
  444.                 {0xb4,0x02,0x02,0x00,0x00,0x00,0x00,},
  445.                 {0xb5,0x02,0x02,0x00,0x00,0x00,0x00,},
  446.                 {0xb6,0x02,0x02,0x00,0x00,0x00,0x00,},
  447.                 {0xb7,0x02,0x02,0x00,0x00,0x00,0x00,},
  448.                 {0xb8,0x05,0x03,0x00,0x00,0x00,0x08,},
  449.                 {0xb9,0x05,0x03,0x00,0x00,0x00,0x00,},
  450.                 {0xba,0x05,0x03,0x00,0x00,0x00,0x00,},
  451.                 {0xbb,0x05,0x03,0x00,0x00,0x00,0x00,},
  452.                 {0xbc,0x05,0x03,0x00,0x00,0x00,0x00,},
  453.                 {0xbd,0x05,0x03,0x00,0x00,0x00,0x00,},
  454.                 {0xbe,0x05,0x03,0x00,0x00,0x00,0x00,},
  455.                 {0xbf,0x05,0x03,0x00,0x00,0x00,0x00,},
  456.                 {0xc0,0x03,0x03,0x01,0x00,0x01,0x00,},
  457.                 {0xc1,0x03,0x03,0x01,0x00,0x01,0x00,},
  458.                 {0xc2,0x03,0x03,0x00,0x00,0x00,0x00,},
  459.                 {0xc3,0x01,0x01,0x00,0x00,0x00,0x00,},
  460.                 {0xc4,0x02,0x02,0x01,0x00,0x00,0x00,},
  461.                 {0xc5,0x02,0x02,0x01,0x00,0x00,0x00,},
  462.                 {0xc6,0x03,0x03,0x01,0x00,0x01,0x00,},
  463.                 {0xc7,0x06,0x04,0x01,0x00,0x04,0x00,},
  464.                 {0xc8,0x04,0x04,0x00,0x00,0x00,0x00,},
  465.                 {0xc9,0x01,0x01,0x00,0x00,0x00,0x00,},
  466.                 {0xca,0x03,0x03,0x00,0x00,0x00,0x01,},
  467.                 {0xcb,0x01,0x01,0x00,0x00,0x00,0x01,},
  468.                 {0xcc,0x01,0x01,0x00,0x00,0x00,0x01,},
  469.                 {0xcd,0x02,0x02,0x00,0x00,0x00,0x01,},
  470.                 {0xce,0x01,0x01,0x00,0x00,0x00,0x01,},
  471.                 {0xcf,0x01,0x01,0x00,0x00,0x00,0x01,},
  472.                 {0xd0,0x02,0x02,0x01,0x00,0x00,0x00,},
  473.                 {0xd1,0x02,0x02,0x01,0x00,0x00,0x00,},
  474.                 {0xd2,0x02,0x02,0x01,0x00,0x00,0x00,},
  475.                 {0xd3,0x02,0x02,0x01,0x00,0x00,0x00,},
  476.                 {0xd4,0x02,0x02,0x00,0x00,0x00,0x00,},
  477.                 {0xd5,0x02,0x02,0x00,0x00,0x00,0x00,},
  478.                 {0xd6,0x01,0x01,0x00,0x00,0x00,0x00,},
  479.                 {0xd7,0x01,0x01,0x00,0x00,0x00,0x00,},
  480.                 {0xd8,0x02,0x02,0x01,0x00,0x00,0x00,},
  481.                 {0xd9,0x02,0x02,0x01,0x00,0x00,0x00,},
  482.                 {0xda,0x02,0x02,0x01,0x00,0x00,0x00,},
  483.                 {0xdb,0x02,0x02,0x01,0x00,0x00,0x00,},
  484.                 {0xdc,0x02,0x02,0x01,0x00,0x00,0x00,},
  485.                 {0xdd,0x02,0x02,0x01,0x00,0x00,0x00,},
  486.                 {0xde,0x02,0x02,0x01,0x00,0x00,0x00,},
  487.                 {0xdf,0x02,0x02,0x01,0x00,0x00,0x00,},
  488.                 {0xe0,0x02,0x02,0x00,0x01,0x00,0x04,},
  489.                 {0xe1,0x02,0x02,0x00,0x01,0x00,0x04,},
  490.                 {0xe2,0x02,0x02,0x00,0x01,0x00,0x04,},
  491.                 {0xe3,0x02,0x02,0x00,0x01,0x00,0x00,},
  492.                 {0xe4,0x02,0x02,0x00,0x00,0x00,0x00,},
  493.                 {0xe5,0x02,0x02,0x00,0x00,0x00,0x00,},
  494.                 {0xe6,0x02,0x02,0x00,0x00,0x00,0x00,},
  495.                 {0xe7,0x02,0x02,0x00,0x00,0x00,0x00,},
  496.                 {0xe8,0x05,0x03,0x00,0x01,0x00,0x00,},
  497.                 {0xe9,0x05,0x03,0x00,0x01,0x00,0x00,},
  498.                 {0xea,0x07,0x05,0x00,0x00,0x00,0x01,},
  499.                 {0xeb,0x02,0x02,0x00,0x01,0x00,0x00,},
  500.                 {0xec,0x01,0x01,0x00,0x00,0x00,0x00,},
  501.                 {0xed,0x01,0x01,0x00,0x00,0x00,0x00,},
  502.                 {0xee,0x01,0x01,0x00,0x00,0x00,0x00,},
  503.                 {0xef,0x01,0x01,0x00,0x00,0x00,0x00,},
  504.                 {0xf0,0x01,0x01,0x00,0x00,0x00,0x00,},
  505.                 {0xf1,0x01,0x01,0x00,0x00,0x00,0x00,},
  506.                 {0xf2,0x01,0x01,0x00,0x00,0x00,0x00,},
  507.                 {0xf3,0x01,0x01,0x00,0x00,0x00,0x00,},
  508.                 {0xf4,0x01,0x01,0x00,0x00,0x00,0x00,},
  509.                 {0xf5,0x01,0x01,0x00,0x00,0x00,0x00,},
  510.                 {0xf6,0x00,0x00,0x00,0x00,0x00,0x00,},
  511.                 {0xf7,0x00,0x00,0x00,0x00,0x00,0x00,},
  512.                 {0xf8,0x01,0x01,0x00,0x00,0x00,0x00,},
  513.                 {0xf9,0x01,0x01,0x00,0x00,0x00,0x00,},
  514.                 {0xfa,0x01,0x01,0x00,0x00,0x00,0x00,},
  515.                 {0xfb,0x01,0x01,0x00,0x00,0x00,0x00,},
  516.                 {0xfc,0x01,0x01,0x00,0x00,0x00,0x00,},
  517.                 {0xfd,0x01,0x01,0x00,0x00,0x00,0x00,},
  518.                 {0xfe,0x02,0x02,0x01,0x00,0x00,0x00,},
  519.                 {0xff,0x02,0x02,0x01,0x00,0x00,0x00,},
  520.         };

  521.         unsigned char decode3[256]=
  522.         {
  523.                 0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,
  524.                 0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,
  525.                 0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,
  526.                 0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x24,0x00,0x00,
  527.                 0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,
  528.                 0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,
  529.                 0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,
  530.                 0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02,0x01,0x01,0x01,
  531.                 0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,
  532.                 0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,
  533.                 0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,
  534.                 0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05,0x04,0x04,0x04,
  535.                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  536.                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  537.                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  538.                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  539.         };

  540.         unsigned char* ptr = bytecode;
  541.         unsigned long len = 0,var2 = 0,var3 = 0, decodel[7]={0};
  542.         unsigned long* pdecode = 0;

  543.         switch(*ptr)
  544.         {
  545.         case 0xF:
  546.                 ptr++;
  547.                 len = 1;
  548.                 pdecode = &decode1[*ptr][0];
  549.                 break;
  550.         case 0x26:
  551.         case 0x2E:
  552.         case 0x36:
  553.         case 0x3E:
  554.         case 0x64:
  555.         case 0x65:
  556.                 len = 1;
  557.                 ptr++;
  558.                 break;
  559.         case 0x66:
  560.                 len = 1;
  561.                 var3 = 1;
  562.                 ptr++;
  563.                 break;
  564.         case 0x67:
  565.                 len = 1;
  566.                 var2 = 1;
  567.                 ptr++;
  568.                 break;
  569.         case 0xF0:
  570.         case 0xF2:
  571.         case 0xF3:
  572.                 len = 1;
  573.                 ptr++;
  574.                 break;
  575.         case 0xF6:
  576.                 decodel[0] = 0xF6;
  577.                 if(*(ptr+1) & 0x38)
  578.                 {
  579.                         decodel[1] = 2;
  580.                         decodel[2] = 2;
  581.                         decodel[3] = 1;
  582.                         decodel[5] = 0;
  583.                 }
  584.                 else
  585.                 {
  586.                         decodel[1] = 3;
  587.                         decodel[2] = 3;
  588.                         decodel[3] = 1;
  589.                         decodel[5] = 1;
  590.                 }
  591.                 pdecode = decodel;
  592.                 break;
  593.         case 0xF7:
  594.                 decodel[0] = 0xF6;
  595.                 decodel[3] = 1;
  596.                 if(*(ptr+1) & 0x38)
  597.                 {
  598.                         decodel[1] = 6;
  599.                         decodel[2] = 4;
  600.                         decodel[5] = 4;
  601.                 }
  602.                 else
  603.                 {
  604.                         decodel[1] = 2;
  605.                         decodel[2] = 2;
  606.                         decodel[5] = 0;
  607.                 }
  608.                 pdecode = decodel;
  609.                 break;
  610.         default:
  611.                 break;
  612.         }
  613.         if(!pdecode)
  614.                 pdecode = decode2[*ptr];
  615.         if(pdecode[6] & 2)
  616.         {
  617.                 if(var2 == 0)
  618.                         len += pdecode[1];
  619.                 else
  620.                         len += pdecode[2];
  621.         }
  622.         else
  623.         {
  624.                 if(var3 == 0)
  625.                         len += pdecode[1];
  626.                 else
  627.                         len += pdecode[2];
  628.         }

  629.         if(pdecode[3])
  630.         {
  631.                 unsigned char var4 = ptr[pdecode[3]];
  632.                 len += decode3[var4] & 0xF;
  633.                 if((decode3[var4] & 0x10) && (ptr[pdecode[3] + 1] & 7) == 5)
  634.                 {
  635.                         switch(var4 & 0xC0)
  636.                         {
  637.                         case 0x40:
  638.                                 len++;
  639.                                 break;
  640.                         case 0x00:
  641.                         case 0x80:
  642.                                 len += 4;
  643.                                 break;
  644.                         default:
  645.                                 break;
  646.                         }
  647.                 }
  648.         }
  649.         return len;
  650. }

  651. void main()
  652. {
  653.         unsigned char code[]={
  654.         0x55,0x8b,0xec,0x83,0xec,0x10,0x53,0x56,0x33,0xf6,0x3b,0xc6,0x57,0x89,0x75,0xf0,0x8b,0xf8,0x75,0x04,0x33,0xff,0xeb,0x10,0x80,0x38,0xff,0x75,0x0b,0x80,0x78,0x01,0x25,0x75,0x05,0x8b,0x40,0x02,0x8b,0x38,0x89,0x75,0xf8,0x89,0x75,0xf4,0xff,0x15,0xc4,0x01,0x03,0x00,0x88,0x45,0xff,0x8b,0x5d,0x08,0x8d,0x04,0x1e,0xe8,0xf9,0x00,0x00,0x00,0x85,0xc0,0x0f,0x84,0xe7,0x00,0x00,0x00,0x03,0xf0,0x83,0xfe,0x05,0x72,0xe6,0x8b,0x45,0x14,0x39,0x30,0x0f,0x82,0xd5,0x00,0x00,0x00,0x89,0x30,0x8d,0x45,0xf8,0x50,0x56,0x53,0xe8,0x5f,0xfe,0xff,0xff,0x8b,0xd8,0x85,0xdb,0x0f,0x84,0xbe,0x00,0x00,0x00,0xe8,0x0a,0xff,0xff,0xff,0x85,0xc0,0x89,0x45,0x14,0x0f,0x84,0x9c,0x00,0x00,0x00,0xff,0x15,0xc4,0x01,0x03,0x00,0xb1,0x02,0x3a,0xc1,0x73,0x10,0xff,0x15,0xc8,0x01,0x03,0x00,0x88,0x45,0xff,0xc7,0x45,0xf4,0x01,0x00,0x00,0x00,0x56,0x53,0xff,0x75,0x10,0xe8,0x19,0xff,0xff,0xff,0x85,0xc0,0x74,0x63,0x56,0x53,0xff,0x75,0x14,0xe8,0x0b,0xff,0xff,0xff,0x85,0xc0,0x74,0x55,0x83,0x7d,0x08,0x00,0x74,0x4f,0x85,0xff,0x74,0x4b,0x53,0xff,0x15,0xe4,0x01,0x03,0x00,0x84,0xc0,0x74,0x40,0x8b,0x4d,0x08,0x8b,0x45,0x14,0x2b,0xf0,0x2b,0xf9,0x83,0xef,0x05,0x8d,0x74,0x0e,0xea,0x85,0xf6,0xc6,0x03,0xe9,0x89,0x7b,0x01,0x74,0x25,0x8b,0x55,0x10,0xc6,0x40,0x11,0xe9,0x89,0x70,0x12,0x80,0x3a,0xe9,0x75,0x0a,0x8b,0x52,0x01,0x2b,0xd0,0x03,0xd1,0x89,0x50,0x01,0x8b,0x4d,0x0c,0x89,0x01,0xc7,0x45,0xf0,0x01,0x00,0x00,0x00,0x83,0x7d,0xf4,0x00,0x74,0x09,0x8a,0x4d,0xff,0xff,0x15,0xc0,0x01,0x03,0x00,0xff,0x75,0xf8,0xff,0x15,0x4c,0x02,0x03,0x00,0xff,0x75,0xf8,0xff,0x15,0x3c,0x02,0x03,0x00,0x8b,0x45,0xf0,0x5f,0x5e,0x5b,0xc9,0xc2,0x10,0x00,};
  655.        
  656.         unsigned char* ptr=code;
  657.         int len;
  658.         int total=0;
  659.         do
  660.         {
  661.                 len=DisasmLen(ptr);
  662.                 ptr += len;
  663.                 total+=len;
  664.                 printf("%d\n",len);
  665.         }
  666.         while(total < sizeof(code));

  667. }
复制代码


回复

使用道具 举报

发表于 2015-10-29 00:44:09 | 显示全部楼层
看起来很有用的样子!然而它滋瓷的指令集够不够啊,比如sse之类的,它滋不滋瓷?
回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2015-10-29 08:51:17 | 显示全部楼层
0xAA55 发表于 2015-10-29 00:44
看起来很有用的样子!然而它滋瓷的指令集够不够啊,比如sse之类的,它滋不滋瓷? ...

估计没有,因为驱动里很难见到
回复 赞! 靠!

使用道具 举报

发表于 2015-10-29 23:49:50 | 显示全部楼层
那也挺不错的了。
回复 赞! 靠!

使用道具 举报

发表于 2018-1-14 15:22:53 | 显示全部楼层
可以可以!!
回复

使用道具 举报

本版积分规则

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-11-22 09:57 , Processed in 0.036040 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表