{"id":112753,"date":"2026-10-04T19:49:05","date_gmt":"2026-10-04T11:49:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/112753.html"},"modified":"2026-10-04T19:49:05","modified_gmt":"2026-10-04T11:49:05","slug":"dy%e4%b8%83%e7%a5%9e%e5%8d%8f%e8%ae%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/112753.html","title":{"rendered":"dy\u4e03\u795e\u534f\u8bae"},"content":{"rendered":"<p>\u7279\u522b\u8bf4\u660e&#xff1a;\u672c\u5e16\u4e0d\u63d0\u4f9b\u4e00\u952e\u8131\u58f3\u6216\u8fc7\u68c0\u6d4b\u4ee3\u7801&#xff0c;\u4ec5\u516c\u5f00\u6211\u5728\u8fd8\u539f VMP \u865a\u62df\u673a\u6267\u884c\u6846\u67b6\u65f6\u7684\u5bc4\u5b58\u5668\u951a\u5b9a\u65b9\u6cd5\u8bba\u548c IR \u63d0\u5347\u8fc7\u7a0b\u4e2d\u7684\u5361\u70b9\u3002\u6211\u77e5\u9053\u5b83\u4e0d\u5b8c\u6574&#xff0c;\u4f46\u5e02\u9762\u4e0a\u516c\u5f00\u8d44\u6599\u91cc&#xff0c;\u5927\u591a\u6570\u8fd8\u662f\u5728\u8bb2 handler \u548c\u5b57\u8282\u7801&#xff0c;\u624b\u52a8\u5206\u6790<\/p>\n<p>\u4f9d\u65e7\u662f VMP \u65b9\u9762\u7684\u5185\u5bb9\u4f46 VMP \u4e5f\u786e\u5b9e\u662f\u4e00\u4e2a\u96be\u70b9&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u65e0\u9650\u53d8\u4f53&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u601d\u8def&#xff0c;\u8fd8\u662f\u5148\u6765\u56de\u987e\u4e00\u4e0b<\/p>\n<p>Unpacking Virtualization Obfuscators&#xff08;WOOT 2009&#xff09;\u7684\u516d\u6b65\u6cd5\u5219<\/p>\n<li>\u9006\u5411 VM \u89e3\u91ca\u5668&#xff08;\u627e dispatcher\/handler&#xff09;<\/li>\n<li>\u627e\u865a\u62df\u5316\u4ee3\u7801\u7684\u63a7\u5236\u6d41\u5165\u53e3<\/li>\n<li>\u5199\u4e00\u4e2a\u5b57\u8282\u7801\u53cd\u6c47\u7f16\u5668<\/li>\n<li>\u53cd\u6c47\u7f16\u51fa VM \u5b57\u8282\u7801&#xff08;\u5f97\u5230 IR&#xff09;<\/li>\n<li>\u505a\u7f16\u8bd1\u5668\u5f0f\u4f18\u5316&#xff08;\u53bb\u6389 VM \u7684\u6837\u677f\u5f00\u9500&#xff09;<\/li>\n<li>\u91cd\u65b0\u751f\u6210\u53ef\u6267\u884c\u4ee3\u7801<\/li>\n<p>\u7136\u540e\u770b\u6211\u4eec\u505a\u4e86\u4ec0\u4e48\u65b9\u9762\u7684\u7b80\u5316\u548c\u4f18\u5316<\/p>\n<h3 id=\"msg_header_h2_1\">VM \u672c\u8eab\u5206\u6790<\/h3>\n<p>\u9996\u5148\u76f4\u63a5\u6765\u4e00\u904d\u6d41\u7a0b<\/p>\n<p>so: 0x2e01b8(ollvm\u6df7\u6dc6\u5916\u58f3)<br \/>\n -&gt; 0x2E2B34(\u95f4\u63a5\u8c03\u7528\u5916\u58f3)<br \/>\n -&gt; 0x2E2BE8(\u58f3\u8c03\u7528\u70b9)<br \/>\n -&gt; 0x2d3780(\u521d\u59cb\u5316\u5b57\u8282\u7801\u4e0e\u8c03\u7528VM&#xff1b;\u5185\u90e8\u5148\u8c03 sub_2E5C68 \u521d\u59cb\u5316VM\u4e0a\u4e0b\u6587\u3001sub_2E5D28 \u5199ctx\u5b57\u6bb5)<br \/>\n -&gt; 0x2E5C2C(VM\u4f1a\u88ab\u5d4c\u5957\u8c03\u7528&#xff0c;\u5165\u53e3\u88ab\u5c01\u88c5\u6210\u72ec\u7acb\u51fd\u6570&#xff1b;\u7528 off_3E1E30[*(ByteCode&#043;88)] \u9009\u5065\u58ee\u68c0\u6d4b\u5305\u88c5)<br \/>\n -&gt; 0x2e66d0(VM\u5065\u58ee\u68c0\u6d4b&#xff1a;\u6808\/\u6307\u9488\u8fb9\u754c\u6821\u9a8c&#xff1b;\u540c\u7c7b\u5305\u88c5\u8fd8\u6709 0x2e67a8\u30010x2e68b8)<br \/>\n -&gt; 0x2E7FE8(vmOneHandler&#xff0c;VM\u6267\u884c)<\/p>\n<p>\u8fd9\u5c31\u662f\u4ece\u5916\u5c42\u6df7\u6dc6\u4e00\u6b65\u4e00\u6b65\u8fdb\u5230 VM \u7684\u6d41\u7a0b\u4e86&#xff0c;\u6765\u770b\u7b2c\u4e00\u4e2a handler \u7684\u6c47\u7f16\u903b\u8f91&#xff0c;\u6211\u4e5f\u662f\u5c0f\u5c0f\u505a\u4e86\u4e00\u4e9b\u8bed\u4e49\u5316&#xff0c;\u8fd9\u4e2a\u8fd8\u597d\u8ffd\u4e00\u4e9b&#xff0c;\u5982\u679c\u662f OLLVM \u592a\u957f\u5c31\u53c2\u8003\u516d\u795e\u7684\u5904\u7406\u65b9\u5f0f\u5427&#xff0c;\u6211\u662f\u7b80\u5355\u5c0f\u770b\u4e86\u4e00\u4e0b<\/p>\n<p>.text:00000000002E7FE8                 SUB             SP, SP, #0x70<br \/>\nSTP             X29, X30, [SP,#0x10&#043;var_s0]<br \/>\nSTP             X28, X27, [SP,#0x10&#043;var_s10]<br \/>\nSTP             X26, X25, [SP,#0x10&#043;var_s20]<br \/>\nSTP             X24, X23, [SP,#0x10&#043;var_s30]<br \/>\nSTP             X22, X21, [SP,#0x10&#043;var_s40]<br \/>\nSTP             X20, X19, [SP,#0x10&#043;var_s50]<br \/>\nADD             X29, SP, #0x10<br \/>\nLDR             X9, [X0]                     ; \u4ece X0(ByteCode**) \u53d6\u5b9e\u9645\u5b57\u8282\u7801\u6307\u9488<br \/>\nMOV             X23, X1                      ; \u5b9a\u4f4d\u5230VM CTX\u7684\u57fa\u5740&#xff0c;\u4e3a\u540e\u7eed\u505a\u51c6\u5907<br \/>\nMOV             W8, #0x6064<br \/>\nADRL            X25, handlerTables           ; \u4ece\u8fd9\u91cc\u5c31\u53ef\u4ee5\u5b9a\u6570\u636e\u6d41\u8f6c\u548chandler\u8df3\u8f6c\u8fb9\u754c\u4e86<br \/>\nMOV             X19, X1                      ; VM\u4e0a\u4e0b\u6587&#xff0c;\u8fd9\u4e2a\u4e0d\u77e5\u9053\u662f\u505a\u4ec0\u4e48\u7684<br \/>\nLDRH            W10, [X9]<br \/>\nMOV             X20, X0                      ; \u4ee5\u540e\u7684\u5b57\u8282\u7801\u6765\u6e90&#xff0c;\u951a\u70b9\u5bc4\u5b58\u5668\u4e4b\u4e00<br \/>\nSTR             WZR, [X23,#0xC]!             ; \u6307\u9488\u52a0\u6cd5&#xff0c;\u521d\u59cb\u5316 IP &#061; 0<br \/>\nADD             X24, X23, X8                 ; X24 &#061; ctx&#043;0x6070 &#061; \u6574\u6570\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740(32\u00d78B)<br \/>\nMOV             W8, #0x6164<br \/>\nLDR             X10, [X25,X10,LSL#3]<br \/>\nADD             X26, X23, X8                 ; X26 &#061; ctx&#043;0x6170 &#061; 32\u4f4d\u6d6e\u70b9\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740([x26,idx,lsl #2])<br \/>\nMOV             W8, #0x61E4<br \/>\nADD             X27, X23, X8                 ; X27 &#061; ctx&#043;0x61F0 &#061; 64\u4f4d\u6d6e\u70b9\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740([x27,idx,lsl #3])<br \/>\nMOV             X8, X9<br \/>\nSTP             X26, X27, [SP,#0x10&#043;var_10]<br \/>\n.text:00000000002E804C                 BR              X10<\/p>\n<p>\u90a3\u4e48\u4e5f\u5c31\u5dee\u4e0d\u591a\u7406\u89e3\u4e86\u951a\u70b9\u4f4d\u7f6e\u4e86<\/p>\n<ul>\n<li>x23&#xff1a;\u65e2\u662f IP \u5b57\u6bb5\u7684\u5730\u5740&#xff0c;\u53c8\u662f\u7b97\u6240\u6709\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740\u7684\u57fa\u51c6(ctx&#043;0xC)&#xff0c;\u540e\u7eed\u5bf9\u5bc4\u5b58\u5668\u7684\u8ba1\u7b97\u6839\u636e\u8fd9\u4e2a\u8fdb\u884c\u7684\u5b9a\u4f4d<\/li>\n<li>x20&#xff1a;\u5b57\u8282\u7801\u6765\u6e90&#xff08;ByteCode**&#xff0c;[x20] \u624d\u662f\u5b9e\u9645\u5b57\u8282\u7801\u6307\u9488&#xff09;<\/li>\n<li>x19&#xff1a;VM \u4e0a\u4e0b\u6587&#xff08;ctx \u57fa\u5740&#xff09;<\/li>\n<li>x25&#xff1a;handler \u8868<\/li>\n<li>x24&#xff1a;\u6574\u6570\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740&#xff08;ctx&#043;0x6070&#xff0c;32 \u4e2a 8 \u5b57\u8282\u69fd&#xff0c;\u7d22\u5f15 0-31&#xff09;<\/li>\n<li>x26&#xff1a;32 \u4f4d\u6d6e\u70b9\/\u5b57\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740&#xff08;ctx&#043;0x6170&#xff0c;[x26,idx,lsl #2]&#xff09;<\/li>\n<li>x27&#xff1a;64 \u4f4d\u6d6e\u70b9\u5bc4\u5b58\u5668\u6587\u4ef6\u57fa\u5740&#xff08;ctx&#043;0x61F0&#xff0c;[x27,idx,lsl #3]&#xff09;<\/li>\n<li>x8&#xff1a;\u5f53\u524d VM \u6307\u4ee4\u6307\u9488&#xff08;threaded dispatch \u5951\u7ea6&#xff1a;handler \u4ece [x8&#043;8]\/[x8&#043;9]\/[x8&#043;0xA]\/[x8&#043;0x10] \u8bfb\u64cd\u4f5c\u6570&#xff0c;\u5e76\u5728\u5c3e\u90e8\u63a8\u8fdb\u5230\u4e0b\u4e00\u6761 48 \u5b57\u8282\u6307\u4ee4&#xff0c;\u4e0b\u4e2a handler \u76f4\u63a5\u63a5\u7740\u7528&#xff09;<\/li>\n<\/ul>\n<h4 id=\"msg_header_h3_0\">X24\/X26\/X27 \u7684\u5224\u5b9a\u4f9d\u636e<\/h4>\n<p>IDA &#043; trace \u4ea4\u53c9\u9a8c\u8bc1<\/p>\n<h5>1. \u521d\u59cb\u5316\u51fd\u6570\u76f4\u63a5\u79cd\u503c \u2014\u2014 \u94c1\u8bc1<\/h5>\n<p>sub_2E5C68(0x2e5c68&#xff0c;\u7531 0x2d3780 \u8c03\u7528&#xff0c;\u521d\u59cb\u5316 VM \u4e0a\u4e0b\u6587)&#xff1a;<\/p>\n<p>MOV  X8, #0x803; MOVK 0xC0C,&lt;&lt;16; MOVK 0x706,&lt;&lt;32; MOVK 0x200,&lt;&lt;48  ; X8 &#061; 0x020007060C0C0803 \u9b54\u6570<br \/>\nSTR  X8, [X0]               ; ctx&#043;0x0 &#061; \u9b54\u6570<br \/>\nSTRH W9, [X0,#8]            ; ctx&#043;0x8 &#061; 0x200<br \/>\nSTR  WZR, [X0,#0xC]         ; ctx&#043;0xC &#061; 0&#xff08;IP&#xff09;<br \/>\nSTR  XZR, [X19,#0x10]       ; ctx&#043;0x10 &#061; 0<br \/>\nSTRB W10, [X19,#0x20]       ; ctx&#043;0x20 &#061; 1<br \/>\nMOV  W8, #0x6070<br \/>\nADD  X0, X0, X8             ; X0 &#061; ctx&#043;0x6070<br \/>\nBL   .memset                ; memset(ctx&#043;0x6070, 0, 0x381)  \u2190 \u6e05\u96f6\u6574\u4e2a\u5bc4\u5b58\u5668\u533a<br \/>\nMOV  W9, #0x6030<br \/>\nADD  X20, X19, X9           ; X20 &#061; ctx&#043;0x6030<br \/>\nSTR  X20, [X19,#0x6078]     ; ctx&#043;0x6078 &#061; ctx&#043;0x6030  \u2190 \u5bc4\u5b58\u5668\u69fd1\u9884\u7f6e&#xff08;&#061; [x24&#043;8]&#xff09;<\/p>\n<p>trace \u91cc VM \u5165\u53e3\u524d [x24&#043;8] &#061; 0x7853c84200 &#061; ctx&#043;0x6030&#xff0c;\u4e0e\u4e0a\u5b8c\u5168\u543b\u5408\u3002<\/p>\n<h5>2. trace \u7edf\u8ba1<\/h5>\n<p>\u5168 trace \u5171 34.3 \u4e07\u6b21 [x24, idx, lsl\/uxtw #3] \u7d22\u5f15\u8bbf\u95ee&#xff0c;\u7d22\u5f15\u503c\u4e25\u683c\u843d\u5728 [0, 31] \u2192 32 \u4e2a 8 \u5b57\u8282\u69fd &#061; 0x100&#xff0c;\u6070\u597d\u586b\u6ee1 0x6070 \u2192 0x6170<\/p>\n<h5>3. handler \u7edf\u4e00\u6a21\u677f<\/h5>\n<p>\u6240\u6709 handler \u4e00\u81f4&#xff1a;a1&#061;x8&#xff08;\u5f53\u524d VM \u6307\u4ee4&#xff09;&#xff0c;\u64cd\u4f5c\u6570\u5728 [x8&#043;8]\/[x8&#043;9]\/[x8&#043;0xA]&#xff0c;\u8bbf\u95ee\u865a\u62df\u5bc4\u5b58\u5668\u4e00\u5f8b *(x24 &#043; 8*idx)\u3002\u5b9e\u6d4b\u793a\u4f8b&#xff1a;<\/p>\n<table>\n<tr>\u5730\u5740\u8bed\u4e49<\/tr>\n<tbody>\n<tr>\n<td>0x2eae28<\/td>\n<td>CMP\/BEQ&#xff1a;if(reg[a]&#061;&#061;reg[b]) offset&#061;0; IP &#043;&#061; offset&#043;1<\/td>\n<\/tr>\n<tr>\n<td>0x2eb03c<\/td>\n<td>SHL&#xff1a;reg[dst] &#061; reg[src] &lt;&lt; (shift&#043;32)<\/td>\n<\/tr>\n<tr>\n<td>0x2e92bc<\/td>\n<td>OR&#xff1a;reg[dst] &#061; reg[a] | reg[b]<\/td>\n<\/tr>\n<tr>\n<td>0x2e96b8<\/td>\n<td>LDRB&#xff1a;reg[dst] &#061; *(u8*)(reg[base] &#043; i16)<\/td>\n<\/tr>\n<tr>\n<td>0x2e8e40<\/td>\n<td>STR&#xff1a;*(reg[base] &#043; i16) &#061; reg[val]<\/td>\n<\/tr>\n<tr>\n<td>0x2e95cc<\/td>\n<td>LDR32\u219232 \u4f4d\u6d6e\u70b9\u6587\u4ef6&#xff1a;*(u32*)(x26 &#043; 4*idx) &#061; *(u32*)(reg[base]&#043;i16)<\/td>\n<\/tr>\n<tr>\n<td>0x2e9e90<\/td>\n<td>64 \u4f4d\u6d6e\u70b9 \u2192STR&#xff1a;*(u64*)(reg[base]&#043;i16) &#061; *(u64*)(x27 &#043; 8*idx)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>4. VM \u4e0a\u4e0b\u6587\u5e03\u5c40&#xff08;ctx \u7531 0x2d3780 \u5728\u6808\u4e0a\u5206\u914d&#xff0c;sp \u4f20\u5165&#xff09;<\/h5>\n<table>\n<tr>\u504f\u79fb\u5b57\u6bb5<\/tr>\n<tbody>\n<tr>\n<td>&#043;0x0<\/td>\n<td>\u9b54\u6570 0x020007060C0C0803<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x8<\/td>\n<td>0x200&#xff08;\u6807\u5fd7&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#043;0xC<\/td>\n<td>IP&#xff08;4 \u5b57\u8282&#xff0c;\u5165\u53e3\u6e05\u96f6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x10<\/td>\n<td>\u8c03\u7528\u94fe\u6062\u590d\u6307\u9488<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x20<\/td>\n<td>8 \u4f4d\u7d22\u5f15&#xff08;\u5065\u58ee\u68c0\u6d4b\u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x6030<\/td>\n<td>\u9884\u7f6e\u5230\u5bc4\u5b58\u5668 1 \u7684\u57fa\u5740\u503c<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x6070 (0x100)<\/td>\n<td>x24&#xff1a;\u6574\u6570\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6&#xff0c;32\u00d78B&#xff0c;idx 0-31<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x6170 (0x80)<\/td>\n<td>x26&#xff1a;32 \u4f4d\u6d6e\u70b9\u5bc4\u5b58\u5668\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>&#043;0x61F0 (0x200)<\/td>\n<td>x27&#xff1a;64 \u4f4d\u6d6e\u70b9\u5bc4\u5b58\u5668\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>5. 0x2E87E8 \u8bed\u4e49&#xff08;\u4fee\u6b63&#xff09;<\/h5>\n<p>reg[dst] &#061; reg[src] &#043; signed_offset&#xff0c;\u5176\u4e2d src &#061; \u5b57\u8282\u7801[8]&#xff0c;dst &#061; \u5b57\u8282\u7801[9]&#xff08;\u4e0a\u6587\u7b2c\u4e8c\u4e2a\u7248\u672c\u6ce8\u91ca\u5199\u53cd\u4e86&#xff09;&#xff1a;<\/p>\n<p>X10 &#061; regs[\u5b57\u8282\u7801[8]];      ; \u8bfb\u51fa\u6e90\u5bc4\u5b58\u5668&#xff08;\u901a\u5e38\u662f\u6307\u9488&#xff09;<br \/>\nX10 &#043;&#061; signed(\u5b57\u8282\u7801[0xA]); ; \u91cd\u5b9a\u4f4d<br \/>\nregs[\u5b57\u8282\u7801[9]] &#061; X10;      ; \u5199\u56de\u76ee\u6807\u5bc4\u5b58\u5668<\/p>\n<h5>6. \u8c03\u7528\u94fe\u7ec6\u8282<\/h5>\n<ul>\n<li>sub_2E5C2C(0x2e5c2c) \u662f VM \u5165\u53e3\u5c01\u88c5&#xff1a;off_3E1E30[*(ByteCode&#043;88)] \u4ece 0x2e66d0\/0x2e67a8\/0x2e68b8 \u4e09\u9009\u4e00&#xff0c;\u518d blr\u3002<\/li>\n<li>\u4e09\u4e2a\u5065\u58ee\u68c0\u6d4b\u5305\u88c5\u903b\u8f91\u4e00\u81f4&#xff1a;\u6808\/\u6307\u9488\u8fb9\u754c\u6821\u9a8c&#xff08;\u8d8a\u754c\u89e6\u53d1 MEMORY[0xDEADBEEF00000001]&#061;1 \u7684 trap&#xff09;&#xff0c;\u7136\u540e bl \u8c03 vmOneHandler(ByteCode&#043;off, ctx)\u3002<\/li>\n<\/ul>\n<h3 id=\"msg_header_h2_2\">\u601d\u8def\u8bf4\u660e<\/h3>\n<h4 id=\"msg_header_h3_1\">\u5b9e\u9645 handler \u89c2\u6469<\/h4>\n<p>\u6765\u770b\u4e00\u4e2a\u5b9e\u9645\u7684 handler \u5427&#xff0c;\u4ece trace \u91cc\u9762\u62ff\u4e00\u6761\u7b80\u5355\u7684&#xff0c;handler \u8868\u7684\u6570\u91cf\u662f\u771f\u4e0d\u5c11\u7684&#xff0c;\u57fa\u7840 handler \u662f\u4ece 0x3E1E58 \u5230 0x3E3708 \u4e00\u5171\u662f 1580 \u4e2a&#xff0c;\u8c03\u7528\u5230\u4e86 335 \u4e2a(\u65e5\u5fd7\u91cf 340 \u4e07)&#xff0c;\u7136\u540e\u8fd8\u6709 VMP \u4e13\u5c5e\u7684 CF \u7cfb\u5217\u51fd\u6570\u8c03\u7528&#xff0c;\u4e5f\u662f\u8981\u5355\u72ec\u5904\u7406\u7684&#xff0c;\u8fd8\u6709 VMP \u7684\u6808\u64cd\u4f5c\u6216\u8005\u5bc4\u5b58\u5668\u5f52\u4e00\u5316\u64cd\u4f5c&#xff0c;\u8fd9\u91cc\u5c31\u53ef\u4ee5\u76f4\u63a5\u91c7\u7528\u7f16\u8bd1\u5668\u524d\u4eba\u6240\u8bf4\u7684\u591a\u8d9f(Pass)\u4e86&#xff0c;\u6700\u8457\u540d\u7684\u5c31\u662f LLVM Pass \u4e86&#xff0c;\u76f8\u4fe1\u5404\u4f4d\u5927\u4f6c\u6709\u7814\u7a76\u8fc7 OLLVM \u7684\u4e5f\u770b\u8fc7\u8fd9\u4e1c\u897f<\/p>\n<p>.text:00000000002E87E8                 LDR             W9, [X23]                ; \u8bfb VM \u7684 IP \u5bc4\u5b58\u5668<br \/>\n.text:00000000002E87EC                 MOV             W12, #0x30               ; W12 &#061; 0x30&#xff08;VM \u6307\u4ee4\u5927\u5c0f&#xff09;<br \/>\n.text:00000000002E87F0                 LDR             X11, [X20]               ; \u4ece X20 \u8bfb\u53d6\u5f53\u524d\u5b57\u8282\u7801\u57fa\u5740<br \/>\n.text:00000000002E87F4                 LDRB            W10, [X8,#8]             ; \u8bfb\u5b57\u8282\u7801\u504f\u79fb &#043;8 \u7684 1 \u5b57\u8282\u64cd\u4f5c\u6570&#xff08;\u5bc4\u5b58\u5668\u7d22\u5f15&#xff1a;\u6e90&#xff09;<br \/>\n.text:00000000002E87F8                 ADD             W9, W9, #1               ; IP&#043;&#043;<br \/>\n.text:00000000002E87FC                 LDRB            W13, [X8,#9]             ; \u8bfb\u5b57\u8282\u7801\u504f\u79fb &#043;9 \u7684 1 \u5b57\u8282\u64cd\u4f5c\u6570&#xff08;\u5bc4\u5b58\u5668\u7d22\u5f15&#xff1a;\u76ee\u6807&#xff09;<br \/>\n.text:00000000002E8800                 LDRSH           X14, [X8,#0xA]           ; \u8bfb\u5b57\u8282\u7801\u504f\u79fb &#043;0xA \u7684 16 \u4f4d\u6709\u7b26\u53f7\u504f\u79fb\u91cf<br \/>\n.text:00000000002E8804                 NOP<br \/>\n.text:00000000002E8808                 SMADDL          X8, W9, W12, X11         ; X8 &#061; \u5b57\u8282\u7801\u57fa\u5740 &#043; IP * 0x30&#xff08;\u4e0b\u4e00\u6761 VM \u6307\u4ee4\u5730\u5740&#xff09;<br \/>\n.text:00000000002E880C                 LDR             X10, [X24,X10,LSL#3]     ; \u53d6\u6e90\u5bc4\u5b58\u5668\u503c&#xff1a;regs[src]<br \/>\n.text:00000000002E8810                 STR             W9, [X23]                ; \u66f4\u65b0 VM \u7684 IP \u5bc4\u5b58\u5668<br \/>\n.text:00000000002E8814                 LDRH            W11, [X8]                ; \u8bfb\u4e0b\u4e00\u6761 VM \u6307\u4ee4\u7684 opcode<br \/>\n.text:00000000002E8818                 ADD             X10, X10, X14            ; \u6e90\u5bc4\u5b58\u5668\u503c&#xff08;\u901a\u5e38\u662f\u6307\u9488&#xff09;&#043;&#061; \u504f\u79fb\u91cf<br \/>\n.text:00000000002E881C                 STR             X10, [X24,X13,LSL#3]     ; regs[dst] &#061; \u65b0\u503c<br \/>\n.text:00000000002E8820                 LDR             X11, [X25,X11,LSL#3]     ; \u7528\u4e0b\u4e00\u6761 opcode \u67e5 handler \u8868<br \/>\n.text:00000000002E8824                 BR              X11                      ; \u8df3\u8f6c\u5230\u4e0b\u4e00\u4e2a handler<\/p>\n<p>\u9996\u5148\u6211\u4eec\u786e\u5b9a\u4e00\u4e0b\u6211\u4eec\u8981\u6ce8\u610f\u7684&#xff1a;IP\u3001(src1\u3001src2\u3001dest)\u4e09\u4e2a\u5bc4\u5b58\u5668&#xff0c;\u8fd8\u6709\u4e00\u4e2a\u68d8\u624b\u7684\u4e1c\u897fx8\u5bc4\u5b58\u5668&#xff0c;\u8fd9\u4e1c\u897f\u6539\u540e\u7ed9\u4e0b\u4e00\u6761\u4f7f\u7528\u7684&#xff0c;\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u4e00\u4e2a\u6807\u8bb0\u4f4d\u7f6e&#xff0c;\u6211\u6597\u80c6\u731c\u6d4b\u4e00\u4e0bnop\u5c31\u662f\u7ed9x8\u7684\u53d8\u5316\u51c6\u5907\u7684&#xff0c;\u968f\u540e\u5c31\u7ed9\u6211\u6253\u6b7b\u4e86&#xff0c;\u8fd9\u73a9\u610f\u662f\u771f\u6ca1\u5565\u89c4\u5f8b\u554a&#xff0c;\u6211\u4e5f\u662f\u771f\u6ca1\u62db\u4e86<\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u51b7\u9759\u4e0b\u6765\u4e86&#xff0c;\u4ece\u7b80\u5355\u7684\u5f00\u59cb\u60f3&#xff1a;<\/p>\n<ul>\n<li>\u627e x25 \u5bc4\u5b58\u5668\u76f8\u5173\u5185\u5bb9&#xff0c;\u5f53\u7136&#xff0c;\u5176\u5b9e\u4e5f\u5c31\u4e24\u4e2a\u4e00\u4e2a\u53d6\u503c\u7136\u540e\u8d4b\u503c&#xff0c;\u88ab\u8d4b\u503c\u7684\u5bc4\u5b58\u5668\u8df3\u8f6c\u4e0b\u4e00\u4e2a handler<\/li>\n<li>IP \u65b9\u9762\u5c31\u627e\u53d6 x23 \u4ee5\u53ca\u5b58 x23 \u7684\u5bc4\u5b58\u5668&#xff0c;\u770b\u770b\u5b83\u662f\u600e\u4e48\u8fdb\u884c\u64cd\u4f5c\u4e0e\u88ab\u64cd\u4f5c\u7684<\/li>\n<li>\u5b57\u8282\u7801\u76f8\u5173\u7684\u5bc4\u5b58\u5668&#xff0c;x8 \u662f\u4f1a\u66f4\u65b0\u8fed\u4ee3\u7684&#xff0c;\u8fd9\u5757\u96be\u70b9\u5c31\u662f\u62ff\u5230\u503c&#xff0c;\u4e0d\u8fc7\u6211\u6709 trace \u8bb0\u5f55&#xff0c;\u611f\u89c9\u53ef\u4ee5\u8003\u8651\u4ee3\u5165\u4e00\u4e0b&#xff1f;<\/li>\n<\/ul>\n<p>\u8fd9\u4e09\u6761\u4e3b\u8981\u7684\u7ebf\u5c31\u8fed\u4ee3\u51fa\u6765\u4e86&#xff0c;\u7b2c\u4e00\u4e2a\u8d1f\u8d23\u6211\u4eec\u5207\u5272 handler \u7684\u8fb9\u754c&#xff0c;\u7b2c\u4e8c\u53ef\u4ee5\u770b\u6267\u884c\u7684\u5bf9\u4e0d\u5bf9&#xff0c;\u7b2c\u4e09\u4e2a\u5c31\u662f handler \u903b\u8f91\u65b9\u9762\u7684\u4e86<\/p>\n<li>Handler \u8fb9\u754c\u7ebf&#xff08;X25 \u7ebf&#xff09;<\/li>\n<p>  The &#034;iframe&#034; tag is not supported by your browser.<\/p>\n<li>IP \u7ebf&#xff08;X23 \u7ebf&#xff09;<\/li>\n<p>  The &#034;iframe&#034; tag is not supported by your browser.<\/p>\n<li>Handler \u903b\u8f91\u7ebf&#xff08;X8 &#043; X24 \u7ebf&#xff09;<\/li>\n<p>  The &#034;iframe&#034; tag is not supported by your browser.<\/p>\n<h5>VM \u7684\u8fd4\u56de&#xff1a;vmRetHandler&#xff08;0x2ebc2c&#xff0c;\u539f sub_2EBC2C&#xff09;<\/h5>\n<p>\u5728\u5177\u4f53\u770b\u4e4b\u524d&#xff0c;\u6211\u4eec\u6765\u627e\u4e00\u4e0b\u63a7\u5236 VM \u8fd4\u56de\u7684\u51fd\u6570&#xff0c;\u627e\u5230\u4ee5\u540e\u5c31\u53ef\u4ee5\u77e5\u9053 VMP \u7684\u5d4c\u5957\u6df1\u5ea6\u4e86&#xff0c;\u5165\u53e3 0x2e6774&#xff08;sub_2E66D0 \u91cc bl vmOneHandler&#xff09;\u548c\u8fd4\u56de 0x2ebc54 \u80fd\u7cbe\u786e\u5bf9\u4e0a\u4e4b\u540e&#xff0c;\u8c03\u7528\u6df1\u5ea6\u5c31\u6709\u620f\u4e86\u3002\u8fd9\u91cc\u8bb0\u4e00\u4e0b\u600e\u4e48\u627e\u5230\u7684\u8fd9\u4e2a RET&#xff0c;\u7b97\u662f log &#043; IDA \u5bf9\u62cd\u7684\u4e00\u4e2a\u6807\u51c6\u6253\u6cd5\u3002<\/p>\n<h6>\u600e\u4e48\u5b9a\u4f4d\u7684<\/h6>\n<p>VM \u91cc\u6240\u6709 handler \u90fd\u662f br \u5c3e\u8df3&#xff08;threaded interpreter&#xff09;&#xff0c;\u552f\u4e00\u4e00\u6b21\u771f\u6b63\u7684 ret \u5c31\u662f\u8fd4\u56de\u3002\u800c\u6bcf\u4e2a wrapper \u90fd\u662f bl vmOneHandler \u8fdb VM&#xff0c;bl \u4f1a\u5199 LR&#xff0c;\u6240\u4ee5&#xff1a;<\/p>\n<p>\u5728 code.log \u91cc\u641c ret \u6307\u4ee4&#xff0c;\u4e14\u6267\u884c\u524d LR &#061; bl \u8bbe\u4e0b\u7684\u8fd4\u56de\u5730\u5740&#xff0c;\u547d\u4e2d\u7684\u5c31\u662f VMP \u7684 RET\u3002<\/p>\n<p>\u5168 trace 61 \u6b21 VM \u6267\u884c&#xff08;bl \u5728 0x2e6774&#xff0c;LR&#061;0x794da10778&#xff09;&#xff0c;\u5168\u90e8\u547d\u4e2d\u540c\u4e00\u4e2a ret \u2014\u2014 \u6a21\u5757\u504f\u79fb 0x2ebc54&#xff0c;\u8fd4\u56de\u70b9 0x2e6778&#xff0c;\u7cbe\u786e\u5f39\u56de wrapper\u3002<\/p>\n<p>2d22f  0x794da15c40  0x2ebc40  &#034;str w8, [x23]&#034;        ; \u8fd4\u56de\u503c \u2192 ctx&#043;0xC<br \/>\n2d230  0x794da15c44  0x2ebc44  &#034;ldp x24, x23, [sp, #0x40]&#034;<br \/>\n2d231  0x794da15c48  0x2ebc48  &#034;ldp x28, x27, [sp, #0x20]&#034;<br \/>\n2d232  0x794da15c4c  0x2ebc4c  &#034;ldp x29, x30, [sp, #0x10]&#034;  ; \u6062\u590d LR&#061;0x794da10778<br \/>\n2d233  0x794da15c50  0x2ebc50  &#034;add sp, sp, #0x70&#034;           ; \u62c6 vmOneHandler \u7684\u5e27<br \/>\n2d234  0x794da15c54  0x2ebc54  &#034;ret&#034;<br \/>\n2d235  0x794da10778  0x2e6778  &#034;ldr x8, [x19, #0x10]&#034;        ; \u56de\u5230 wrapper<\/p>\n<h6>\u8fd4\u56de handler \u903b\u8f91<\/h6>\n<p>\u5b83\u5c31\u662f\u4e2a\u666e\u901a handler&#xff0c;\u4e0d\u662f\u7279\u6b8a\u8def\u5f84&#xff0c;opcode 0xbd \u5206\u6d3e\u8fc7\u6765\u7684&#xff1a;<\/p>\n<p>.text:00000000002EBC2C  LDRB  W8, [X8,#8]          ; \u64cd\u4f5c\u6570 &#061; \u8fd4\u56de\u54ea\u4e2a\u5bc4\u5b58\u5668\u69fd&#xff08;\u672c\u6b21 trace \u662f 3&#xff09;<br \/>\n.text:00000000002EBC30  LDP   X20, X19, [SP,#0x60]  ; \u2510<br \/>\n.text:00000000002EBC34  LDR   X8, [X24,X8,LSL#3]    ; \u2502 \u4ece\u5bc4\u5b58\u5668\u6587\u4ef6\u53d6\u8fd4\u56de\u503c&#xff08;64 \u4f4d&#xff09;<br \/>\n.text:00000000002EBC38  LDP   X22, X21, [SP,#0x50]  ; \u2502<br \/>\n.text:00000000002EBC3C  LDP   X26, X25, [SP,#0x30]  ; \u2502 \u62c6\u5e27<br \/>\n.text:00000000002EBC40  STR   W8, [X23]             ; \u2502 \u5b58\u4f4e 32 \u4f4d \u2192 ctx&#043;0xC&#xff08;\u8fd4\u56de\u503c&#xff09;<br \/>\n.text:00000000002EBC44  LDP   X24, X23, [SP,#0x40]  ; \u2502<br \/>\n.text:00000000002EBC48  LDP   X28, X27, [SP,#0x20]  ; \u2502<br \/>\n.text:00000000002EBC4C  LDP   X29, X30, [SP,#0x10]  ; \u2502 \u6062\u590d LR<br \/>\n.text:00000000002EBC50  ADD   SP, SP, #0x70         ; \u2518 \u5e27 &#061; vmOneHandler \u5f00\u51fa\u6765\u7684\u90a3 0x70<br \/>\n.text:00000000002EBC54  RET   X30<\/p>\n<p>\u94fe\u5c3e\u7684\u666e\u901a handler&#xff08;0x2e8e7c&#xff09;\u8bfb\u5230\u4e0b\u4e00\u6761 opcode 0xbd \u2192 handlerTables[0xbd] &#061; 0x2ebc2c \u2192 br x11 \u63a5\u8fdb\u8fd4\u56de handler&#xff0c;\u8ddf\u5176\u5b83\u5206\u6d3e\u4e00\u6a21\u4e00\u6837\u3002<\/p>\n<h6>\u8fd4\u56de\u503c\u600e\u4e48\u4f20\u7684&#xff08;ctx&#043;0xC \u69fd\u590d\u7528&#xff09;<\/h6>\n<ul>\n<li>ctx&#043;0xC \u8fd9\u4e2a\u69fd\u662f\u590d\u7528\u7684&#xff1a;VM \u8fd0\u884c\u671f\u95f4\u5b58 IP&#xff08;\u6bcf\u6761\u6307\u4ee4 0x30 \u5b57\u8282&#xff0c;smaddl x8, w9, w12, x11 \u63a8\u8fdb&#xff0c;handler \u5c3e str w9, [x23] \u5199\u56de&#xff09;&#xff0c;\u8fd4\u56de\u65f6\u88ab\u8986\u76d6\u6210\u8fd4\u56de\u503c<\/li>\n<li>\u6ce8\u610f ldr x8 \u53d6\u7684\u662f 64 \u4f4d&#xff0c;str w8 \u53ea\u5b58\u4f4e 32 \u4f4d \u2192 \u8fd4\u56de\u503c\u88ab 32 \u4f4d\u622a\u65ad&#xff0c;\u8fd8\u539f\u65f6\u5f97\u7559\u4e2a\u5fc3\u773c<\/li>\n<li>\u672c\u6b21 trace \u8fd4\u56de\u503c\u662f 0&#xff08;W8&#061;0x0&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<p>\u5176\u5b9e\u5230\u8fd9\u5757\u4ee5\u540e\u6211\u90fd\u60f3\u76f4\u63a5\u5199\u6c47\u7f16\u8fd8\u539f\u4e86&#xff0c;\u6211\u4e5f\u611f\u89c9\u53ef\u4ee5\u50cf\u4e00\u4e2a\u529e\u6cd5\u5c1d\u8bd5\u6c47\u7f16\u53bb\u505a\u8fd9\u5757\u5185\u5bb9(&#xff1f;\u81ea\u5df1\u5199\u4e00\u4e2a\u5e93)&#xff0c;\u56e0\u4e3a\u5230 IR \u5c42\u9762\u4ee5\u540e\u5c31\u771f\u5f88\u96be\u76f4\u63a5\u5bf9\u5e94 trace \u4e86&#xff0c;\u8fd9\u5757\u5c31\u5f88\u86cb\u75bc<\/p>\n<h4 id=\"msg_header_h3_2\">handler \u5207\u5272<\/h4>\n<p>\u6587\u672c\u89e3\u6790\u4e4b\u7c7b\u7684\u5c31\u4e0d\u63d0\u4e86&#xff0c;\u6211\u4eec\u76f4\u63a5\u5b9a x25 \u5bc4\u5b58\u5668&#xff0c;\u7136\u540e\u770b x25 \u53d6\u503c\u540e\u7684\u5185\u5bb9\u6709\u6ca1\u6709\u88ab br \u8df3\u8f6c\u6216\u8005 br \u8df3\u8f6c\u5bc4\u5b58\u5668\u7684\u503c\u662f\u4e0d\u662f\u88ab x25 \u8d4b\u7684&#xff0c;\u5177\u4f53\u64cd\u4f5c\u53ef\u4ee5\u770b\u770b\u4ee3\u7801&#xff0c;\u6211\u5199\u7684\u4e5f\u662f\u975e\u5e38\u975e\u5e38\u7b80\u5355\u4e86<\/p>\n<h4 id=\"msg_header_h3_3\">IP \u9012\u589e<\/h4>\n<p>\u5728 handler \u5207\u5272\u7684\u57fa\u7840\u4e0a&#xff0c;\u76f4\u63a5\u627e x23 \u5bc4\u5b58\u5668&#xff0c;\u770b\u5b83\u53d6\u7684\u5730\u65b9\u548c\u5b58\u7684\u5730\u65b9&#xff0c;\u4ee3\u5165 trace \u770b\u770b\u52a0\u4e86\u591a\u5c11\u6216\u8005 P-code \u753b\u56fe\u627e\u64cd\u4f5c\u4f4d\u7f6e<\/p>\n<h4 id=\"msg_header_h3_4\">IR \u7684\u4ea7\u51fa<\/h4>\n<p>\u8fd9\u4e5f\u662f\u6700\u96be\u7684\u70b9\u4e5f\u662f\u5168\u7bc7\u7684\u7cbe\u534e\u6240\u5728&#xff0c;\u8fd9\u5757\u5c31\u5148\u4e0a\u5e1d\u89c6\u89d2\u4e00\u4e0b&#xff0c;\u5148\u5c1d\u8bd5\u89e3\u51b3\u96be\u70b9<\/p>\n<ul>\n<li>\u6296\u97f3\u6700 der \u7684 handler \u5185 bl&#xff0c;\u4f46\u662f\u903b\u8f91\u8fd8\u662f handler \u5185\u7684&#xff0c;\u7279\u5f81\u975e\u5e38\u975e\u5e38\u7b26\u5408\u51fd\u6570<\/li>\n<li>VMP \u7684\u4e13\u5c5e\u8c03\u7528 Call Function&#xff0c;\u8fd9\u5757\u8981\u4e13\u95e8\u53bb\u5904\u7406&#xff0c;\u770b\u4e00\u4e0b\u5bf9 VM CTX \u7684\u5177\u4f53\u64cd\u4f5c<\/li>\n<\/ul>\n<h5>\u6298\u53e0\u5904\u7406\u6cd5<\/h5>\n<p>\u6839\u636e ARM64 \u7684\u6307\u4ee4\u96c6\u5730\u5740\u957f\u5ea6\u4e00\u81f4&#xff0c;\u4ece bl\u3001blr \u7b49\u7b49\u8c03\u7528\u6307\u4ee4\u7684\u5730\u5740\u5230\u52a0 4 \u7684\u5730\u5740&#xff0c;\u88ab\u8c03\u7528\u7684\u5185\u5bb9\u5199\u4e00\u4e2a\u5217\u8868\u5185&#xff0c;handler \u903b\u8f91\u5199\u5728\u4e00\u4e2a\u5217\u8868\u5185&#xff0c;\u8fd9\u65f6\u5019\u6211\u5728\u60f3\u8981\u662f VM \u8c03\u7528 VM \u600e\u4e48\u529e&#xff1f;\u96be\u4e0d\u6210\u771f\u5199\u90a3\u4e48\u591a&#xff1f;<br \/>\n\u597d\u50cf\u53c8\u4e0d\u9700\u8981&#xff0c;\u5bf9 CALL \u7c7b\u76f4\u63a5\u6839\u636e trace \u63d0\u53d6\u76f8\u5173\u4fe1\u606f&#xff0c;\u8c03\u7528\u70b9\u5199\u63cf\u8ff0\u800c\u975e\u5168\u90e8\u5185\u5bb9<\/p>\n<p>CALL&#064;{Addr|Arg} \/\/ \u540c\u65f6\u53c8\u53ef\u4ee5\u6807\u8bb0\u51fa\u6765\u6765\u6e90&#xff0c;LIBC\u3001Call Function\u3001VM reg\/stack<\/p>\n<p>\u4f46\u662f\u6298\u7684\u6781\u9650\u5462&#xff1f;VM \u8c03\u7528\u81ea\u5df1\u3001\u5c01\u88c5\u7684\u903b\u8f91\u51fd\u6570\u3001libc \u7b49\u7b49\u7cfb\u7edf\u51fd\u6570\u8fd9\u4e9b\u600e\u4e48\u5904\u7406&#xff1f;\u6709\u4e00\u4e2a\u601d\u8def&#xff0c;\u4f46\u662f\u4e0d\u662f\u5f88\u9760\u8c31\u76f4\u63a5\u6df1\u5ea6\u4f18\u5148&#xff0c;\u5904\u7406\u6700\u6df1\u5c42\u6b21\u7684 handler&#xff0c;\u7136\u540e\u9010\u6b65\u56de\u6eaf&#xff0c;\u4f46\u662f\u597d\u50cf\u53c8\u4e0d\u592a\u9700\u8981\u60f3\u8fd9\u79cd\u95ee\u9898&#xff0c;\u6211\u6700\u524d\u9762\u90fd\u5df2\u7ecf\u5207\u51fa\u6765 handler \u5206\u5757\u4e86&#xff0c;\u6211\u5904\u7406\u7684\u53ea\u6709 handler \u8fd9\u79cd\u9897\u7c92\u5ea6\u7684\u4e1c\u897f&#xff0c;\u611f\u89c9\u8fd8\u9700\u8981\u4e00\u6b21\u6298\u53e0&#xff0c;\u7136\u540e\u6839\u636e vmp \u7684\u951a\u70b9\u5bc4\u5b58\u5668\u8fdb\u884c\u6570\u636e\u6d41\u8ffd\u8e2a&#xff0c;\u8fd9\u65f6\u5019\u5c31\u5dee\u4e0d\u591a\u53ef\u4ee5\u7406\u89e3\u5230\u4ec0\u4e48\u51fd\u6570\u662f\u64cd\u4f5c vm \u76f8\u5173(\u6808\u3001\u5bc4\u5b58\u5668)&#xff0c;\u4ec0\u4e48\u662f\u539f\u751f\u51fd\u6570&#xff0c;\u7136\u540e\u5f00\u59cb\u6298\u53e0<\/p>\n<p>\u7b2c\u4e00\u6b21\u6298\u53e0\u62c6\u51fa\u6765 handler \u7684\u64cd\u4f5c&#xff0c;\u7b2c\u4e8c\u6b21\u6298\u53e0\u62c6\u51fa\u6765 VM \u5728\u6267\u884c\u539f\u751f\u903b\u8f91\u524d\u505a\u4e86\u4ec0\u4e48\u4e1c\u897f&#xff0c;\u600e\u4e48\u51c6\u5907\u53c2\u6570\u548c\u8fd4\u56de\u503c\u7684<br \/>\n\u7b2c\u4e8c\u6b21\u6298\u53e0\u8fd9\u5757\u8fd8\u662f\u56fe\u7b97\u6cd5&#xff0c;\u770b\u770b\u90fd\u51c6\u5907\u4e86\u4ec0\u4e48\u951a\u70b9\u5bc4\u5b58\u5668\u6216\u8005\u662f\u5bf9\u4e0a\u4e0b\u6587\u600e\u4e48\u64cd\u4f5c\u7684&#xff0c;\u7136\u540e\u600e\u4e48\u4f20\u9012\u7ed9\u539f\u751f\u51fd\u6570\u7684&#xff0c;\u539f\u751f\u51fd\u6570\u7684\u8fd8\u539f\u4e0d\u5728\u6211\u4eec\u8003\u8651\u65b9\u6cd5\u5185&#xff0c;\u8fd9\u5757\u53ef\u4ee5\u8003\u8651\u76f4\u63a5\u8f93\u51fa\u539f\u59cb\u65e5\u5fd7\u4ea4\u7ed9\u6a21\u578b\u770b<\/p>\n<p>\u53c2\u6570\u65b9\u9762\u4e5f\u8981\u5bf9\u9f50&#xff0c;\u4ec0\u4e48\u53c2\u6570\u4ea4\u7ed9\u8c01\u4e86&#xff0c;\u5982\u679c\u4e0d\u5199\u660e\u767d\u6a21\u578b\u5c31\u8ddf\u50bb\u5b50\u4e00\u6837&#xff0c;\u778e\u5bf9\u7167\u4e86<\/p>\n<p>(\u4e0a\u5e1d\u89c6\u89d2&#xff1a;\u8fd9\u5757\u6211\u540e\u9762\u76f4\u63a5\u9009\u62e9\u4e86\u9012\u5f52\u51fd\u6570\u8c03\u7528\u6808\u4e86&#xff0c;\u4e0d\u8fc7\u662f\u53ea\u770b blr \u548c bl \u4e24\u4e2a\u5185\u5bb9&#xff0c;\u770b\u770b blr \u7b2c\u4e8c\u6b21\u8d70\u7684\u90fd\u662f\u8c01&#xff0c;\u662f\u4e0d\u662f x8 \u8fd9\u4e2a\u6807\u8bb0&#xff0c;\u5982\u679c\u4e0d\u662f\u7684\u8bdd\u8d70\u7684\u662f\u8c01&#xff0c;\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u6709\u4e86\u5168\u90e8\u7684\u8c03\u7528\u6808\u4e86&#xff0c;\u904d\u5386\u4e00\u4e0b\u4e5f\u4e0d\u96be)<\/p>\n<hr \/>\n<p>\u73b0\u5728\u53c8\u8ff7\u8d77\u6765\u4e86&#xff0c;\u8fd9\u662f\u771f\u6709\u70b9\u61f5\u903c\u4e86&#xff0c;\u5361\u4e86\u4e24\u4e2a\u70b9<\/p>\n<h5>\u51fd\u6570\u8df3\u677f<\/h5>\n<p>\u5916\u5c42\u50cf\u662f\u4e00\u4e2a\u5c0f\u8df3\u677f\u5c42&#xff0c;bl \u5230\u4e00\u4e2a\u51fd\u6570\u5185&#xff0c;\u4f46\u662f\u90a3\u4e2a\u51fd\u6570\u9664\u4e86\u5f00\u6808\u4e4b\u5916\u4ec0\u4e48\u90fd\u6ca1\u505a<\/p>\n<p>.text:00000000002F3624 sub_2F3624                              ; DATA XREF: .data.rel.ro:00000000003E2B10\u2193o<br \/>\n.text:00000000002F3624                 ADD             X0, X8, #8<br \/>\n.text:00000000002F3628                 MOV             X1, X19<br \/>\n.text:00000000002F362C                 BL              sub_3090E0<br \/>\n.text:00000000002F3630                 LDR             W8, [X19,#0xC]<br \/>\n.text:00000000002F3634                 MOV             W10, #0x30 ; &#039;0&#039;<br \/>\n.text:00000000002F3638                 LDR             X9, [X20]<br \/>\n.text:00000000002F363C                 NOP<br \/>\n.text:00000000002F3640                 SMADDL          X8, W8, W10, X9<br \/>\n.text:00000000002F3644                 LDRH            W9, [X8]<br \/>\n.text:00000000002F3648                 LDR             X9, [X25,X9,LSL#3]<br \/>\n.text:00000000002F364C                 BR              X9<\/p>\n<p>.text:00000000003090E0 ; __int64 __fastcall sub_3090E0(_QWORD *, __int64)<br \/>\n.text:00000000003090E0 sub_3090E0                              ; CODE XREF: sub_2F3624&#043;8\u2191p<br \/>\n.text:00000000003090E0<br \/>\n.text:00000000003090E0 var_50          &#061; -0x50<br \/>\n.text:00000000003090E0 var_4C          &#061; -0x4C<br \/>\n.text:00000000003090E0 var_48          &#061; -0x48<br \/>\n.text:00000000003090E0 var_3C          &#061; -0x3C<br \/>\n.text:00000000003090E0 var_38          &#061; -0x38<br \/>\n.text:00000000003090E0 var_30          &#061; -0x30<br \/>\n.text:00000000003090E0 var_28          &#061; -0x28<br \/>\n.text:00000000003090E0 var_20          &#061; -0x20<br \/>\n.text:00000000003090E0 var_18          &#061; -0x18<br \/>\n.text:00000000003090E0 var_10          &#061; -0x10<br \/>\n.text:00000000003090E0 var_8           &#061; -8<br \/>\n.text:00000000003090E0<br \/>\n.text:00000000003090E0                 SUB             SP, SP, #0x50<br \/>\n.text:00000000003090E4                 LDR             X14, [X0,#8]<br \/>\n.text:00000000003090E8                 MOV             W11, #0x6064<br \/>\n.text:00000000003090EC                 LDR             W12, [X1,#0xC]!<br \/>\n.text:00000000003090F0                 ADD             X15, X1, X11<br \/>\n.text:00000000003090F4                 MOV             W8, #0xE8C7<br \/>\n.text:00000000003090F8                 LDRB            W16, [X14,#1]<br \/>\n.text:00000000003090FC                 MOV             W9, #0xD2B8<br \/>\n.text:0000000000309100                 MOVK            W8, #0xDB0F,LSL#16<br \/>\n.text:0000000000309104                 MOVK            W9, #0xBEBF,LSL#16<br \/>\n.text:0000000000309108                 STR             X15, [SP,#0x50&#043;var_38]<br \/>\n.text:000000000030910C                 ADD             X11, SP, #0x50&#043;var_4C<br \/>\n.text:0000000000309110                 ADD             X15, X15, X16,LSL#3<br \/>\n.text:0000000000309114                 STR             W12, [SP,#0x50&#043;var_3C]<br \/>\n.text:0000000000309118                 LDP             X17, X16, [SP,#0x50&#043;var_20]<br \/>\n.text:000000000030911C                 MOV             X12, SP<br \/>\n.text:0000000000309120                 ADD             X14, X14, #2<br \/>\n.text:0000000000309124                 MOV             W10, #0xCDDA<br \/>\n.text:0000000000309128                 MOV             W13, #0xC16F<br \/>\n.text:000000000030912C                 MOVK            W10, #0xA2F1,LSL#16<br \/>\n.text:0000000000309130                 STR             X1, [SP,#0x50&#043;var_48]<br \/>\n.text:0000000000309134                 MOVK            W13, #0x1C95,LSL#16<br \/>\n.text:0000000000309138                 STP             X11, X12, [SP,#0x50&#043;var_10]<br \/>\n.text:000000000030913C                 STP             W9, W8, [SP,#0x50&#043;var_50]<br \/>\n.text:0000000000309140                 STP             X15, X14, [SP,#0x50&#043;var_30]<br \/>\n.text:0000000000309144                 LDR             W1, [X11]<br \/>\n.text:0000000000309148                 CMP             W1, W8<br \/>\n.text:000000000030914C                 B.EQ            loc_3091C0<br \/>\n.text:0000000000309150<br \/>\n.text:0000000000309150 loc_309150                              ; CODE XREF: sub_3090E0&#043;B4\u2193j<br \/>\n.text:0000000000309150                                         ; sub_3090E0&#043;DC\u2193j<br \/>\n.text:0000000000309150                 LDR             W8, [SP,#0x50&#043;var_3C]<br \/>\n.text:0000000000309154                 STP             X17, X16, [SP,#0x50&#043;var_20]<br \/>\n.text:0000000000309158                 LDRB            W9, [X16]<br \/>\n.text:000000000030915C                 MOV             W0, #1<br \/>\n.text:0000000000309160                 LDR             X12, [SP,#0x50&#043;var_48]<br \/>\n.text:0000000000309164                 ADD             W8, W8, #3<br \/>\n.text:0000000000309168                 LDR             X10, [SP,#0x50&#043;var_38]<br \/>\n.text:000000000030916C                 LDRSH           X11, [X17,#2]<br \/>\n.text:0000000000309170                 STR             X11, [X10,X9,LSL#3]<br \/>\n.text:0000000000309174                 STR             W8, [X12]<br \/>\n.text:0000000000309178                 ADD             SP, SP, #0x50 ; &#039;P&#039;<br \/>\n.text:000000000030917C                 RET<br \/>\n.text:0000000000309180 ; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n.text:0000000000309180<br \/>\n.text:0000000000309180 loc_309180                              ; CODE XREF: sub_3090E0&#043;EC\u2193j<br \/>\n.text:0000000000309180                 STR             W10, [X12]<br \/>\n.text:0000000000309184                 STR             W8, [X11]<br \/>\n.text:0000000000309188                 MOV             W1, W8<br \/>\n.text:000000000030918C                 CMP             W8, W8<br \/>\n.text:0000000000309190                 B.EQ            loc_3091C0<br \/>\n.text:0000000000309194                 B               loc_309150<br \/>\n.text:0000000000309198 ; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n.text:0000000000309198<br \/>\n.text:0000000000309198 loc_309198                              ; CODE XREF: sub_3090E0&#043;E8\u2193j<br \/>\n.text:0000000000309198                 LDRH            W16, [X14]<br \/>\n.text:000000000030919C                 LDR             X17, [X0]<br \/>\n.text:00000000003091A0                 LSL             W16, W16, #0x10<br \/>\n.text:00000000003091A4                 SXTW            X1, W16<br \/>\n.text:00000000003091A8                 ADD             X16, X17, #1<br \/>\n.text:00000000003091AC                 STR             X1, [X15]<br \/>\n.text:00000000003091B0                 STR             W13, [X11]<br \/>\n.text:00000000003091B4                 MOV             W1, W13<br \/>\n.text:00000000003091B8                 CMP             W13, W8<br \/>\n.text:00000000003091BC                 B.NE            loc_309150<br \/>\n.text:00000000003091C0<br \/>\n.text:00000000003091C0 loc_3091C0                              ; CODE XREF: sub_3090E0&#043;6C\u2191j<br \/>\n.text:00000000003091C0                                         ; sub_3090E0&#043;B0\u2191j<br \/>\n.text:00000000003091C0                 LDR             W1, [X12]<br \/>\n.text:00000000003091C4                 CMP             W1, W9<br \/>\n.text:00000000003091C8                 B.NE            loc_309198<br \/>\n.text:00000000003091CC                 B               loc_309180<\/p>\n<p>.text:00000000002F113C sub_2F113C                              ; DATA XREF: .data.rel.ro:00000000003E28F8\u2193o<br \/>\n.text:00000000002F113C                 ADD             X0, X8, #8<br \/>\n.text:00000000002F1140                 MOV             X1, X19<br \/>\n.text:00000000002F1144                 BL              sub_3083B0<br \/>\n.text:00000000002F1148                 LDR             W8, [X19,#0xC]<br \/>\n.text:00000000002F114C                 MOV             W10, #0x30 ; &#039;0&#039;<br \/>\n.text:00000000002F1150                 LDR             X9, [X20]<br \/>\n.text:00000000002F1154                 NOP<br \/>\n.text:00000000002F1158                 SMADDL          X8, W8, W10, X9<br \/>\n.text:00000000002F115C                 LDRH            W9, [X8]<br \/>\n.text:00000000002F1160                 LDR             X9, [X25,X9,LSL#3]<br \/>\n.text:00000000002F1164                 BR              X9<\/p>\n<p>.text:00000000003083B0 ; __int64 __fastcall sub_3083B0(unsigned __int8 **, __int64)<br \/>\n.text:00000000003083B0 sub_3083B0                              ; CODE XREF: sub_2F113C&#043;8\u2191p<br \/>\n.text:00000000003083B0<br \/>\n.text:00000000003083B0 var_50          &#061; -0x50<br \/>\n.text:00000000003083B0 var_4C          &#061; -0x4C<br \/>\n.text:00000000003083B0 var_48          &#061; -0x48<br \/>\n.text:00000000003083B0 var_3C          &#061; -0x3C<br \/>\n.text:00000000003083B0 var_38          &#061; -0x38<br \/>\n.text:00000000003083B0 var_2C          &#061; -0x2C<br \/>\n.text:00000000003083B0 var_28          &#061; -0x28<br \/>\n.text:00000000003083B0 var_20          &#061; -0x20<br \/>\n.text:00000000003083B0 var_11          &#061; -0x11<br \/>\n.text:00000000003083B0 var_10          &#061; -0x10<br \/>\n.text:00000000003083B0 var_8           &#061; -8<br \/>\n.text:00000000003083B0<br \/>\n.text:00000000003083B0                 SUB             SP, SP, #0x50<br \/>\n.text:00000000003083B4                 LDR             X11, [X0,#8]<br \/>\n.text:00000000003083B8                 MOV             W8, #0xB2EB<br \/>\n.text:00000000003083BC                 MOV             W10, #0xE126<br \/>\n.text:00000000003083C0                 MOV             W12, #0x6064<br \/>\n.text:00000000003083C4                 MOVK            W8, #0xCE33,LSL#16<br \/>\n.text:00000000003083C8                 ADD             X9, SP, #0x50&#043;var_4C<br \/>\n.text:00000000003083CC                 LDR             W2, [X1,#0xC]!<br \/>\n.text:00000000003083D0                 MOVK            W10, #0xCC48,LSL#16<br \/>\n.text:00000000003083D4                 ADD             X12, X1, X12<br \/>\n.text:00000000003083D8                 LDRB            W13, [X11]<br \/>\n.text:00000000003083DC                 MOV             X16, SP<br \/>\n.text:00000000003083E0                 LDR             X17, [SP,#0x50&#043;var_20]<br \/>\n.text:00000000003083E4                 MOV             W14, #0x90CD<br \/>\n.text:00000000003083E8                 LDRB            W3, [SP,#0x50&#043;var_11]<br \/>\n.text:00000000003083EC                 MOV             W15, #0x3DD1<br \/>\n.text:00000000003083F0                 STR             X1, [SP,#0x50&#043;var_48]<br \/>\n.text:00000000003083F4                 MOVK            W14, #0xA950,LSL#16<br \/>\n.text:00000000003083F8                 STR             W2, [SP,#0x50&#043;var_3C]<br \/>\n.text:00000000003083FC                 MOVK            W15, #0x82BD,LSL#16<br \/>\n.text:0000000000308400                 STR             X11, [SP,#0x50&#043;var_38]<br \/>\n.text:0000000000308404                 ADD             W2, W2, #2<br \/>\n.text:0000000000308408                 STR             X12, [SP,#0x50&#043;var_28]<br \/>\n.text:000000000030840C                 STRB            W13, [SP,#0x50&#043;var_2C]<br \/>\n.text:0000000000308410                 STP             W8, W10, [SP,#0x50&#043;var_50]<br \/>\n.text:0000000000308414                 STP             X9, X16, [SP,#0x50&#043;var_10]<br \/>\n.text:0000000000308418                 LDR             W4, [X9]<br \/>\n.text:000000000030841C                 CMP             W4, W10<br \/>\n.text:0000000000308420                 B.EQ            loc_3084B4<br \/>\n.text:0000000000308424<br \/>\n.text:0000000000308424 loc_308424                              ; CODE XREF: sub_3083B0&#043;BC\u2193j<br \/>\n.text:0000000000308424                                         ; sub_3083B0&#043;100\u2193j<br \/>\n.text:0000000000308424                 LDRSH           W8, [X17,#2]<br \/>\n.text:0000000000308428                 ANDS            W10, W3, #1<br \/>\n.text:000000000030842C                 LDR             W9, [SP,#0x50&#043;var_3C]<br \/>\n.text:0000000000308430                 MOV             W0, #1<br \/>\n.text:0000000000308434                 STR             X17, [SP,#0x50&#043;var_20]<br \/>\n.text:0000000000308438                 CSEL            W8, W8, WZR, NE<br \/>\n.text:000000000030843C                 STRB            W10, [SP,#0x50&#043;var_11]<br \/>\n.text:0000000000308440                 ADD             W8, W9, W8<br \/>\n.text:0000000000308444                 LDR             X9, [SP,#0x50&#043;var_48]<br \/>\n.text:0000000000308448                 ADD             W8, W8, #3<br \/>\n.text:000000000030844C                 STR             W8, [X9]<br \/>\n.text:0000000000308450                 ADD             SP, SP, #0x50 ; &#039;P&#039;<br \/>\n.text:0000000000308454                 RET<br \/>\n.text:0000000000308458 ; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n.text:0000000000308458<br \/>\n.text:0000000000308458 loc_308458                              ; CODE XREF: sub_3083B0&#043;110\u2193j<br \/>\n.text:0000000000308458                 STR             W14, [X16]<br \/>\n.text:000000000030845C                 STR             W10, [X9]<br \/>\n.text:0000000000308460                 MOV             W4, W10<br \/>\n.text:0000000000308464                 CMP             W10, W10<br \/>\n.text:0000000000308468                 B.EQ            loc_3084B4<br \/>\n.text:000000000030846C                 B               loc_308424<br \/>\n.text:0000000000308470 ; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n.text:0000000000308470<br \/>\n.text:0000000000308470 loc_308470                              ; CODE XREF: sub_3083B0&#043;10C\u2193j<br \/>\n.text:0000000000308470                 LDR             X4, [X12,X13,LSL#3]<br \/>\n.text:0000000000308474                 STR             W2, [X1]<br \/>\n.text:0000000000308478                 LDRH            W3, [X11,#2]<br \/>\n.text:000000000030847C                 LDR             X17, [X0]<br \/>\n.text:0000000000308480                 LDRB            W5, [X11,#1]<br \/>\n.text:0000000000308484                 AND             X3, X4, X3<br \/>\n.text:0000000000308488                 LDRB            W6, [X17]<br \/>\n.text:000000000030848C                 LDRB            W4, [X17,#1]<br \/>\n.text:0000000000308490                 STR             X3, [X12,X5,LSL#3]<br \/>\n.text:0000000000308494                 LDR             X3, [X12,X6,LSL#3]<br \/>\n.text:0000000000308498                 LDR             X4, [X12,X4,LSL#3]<br \/>\n.text:000000000030849C                 STR             W15, [X9]<br \/>\n.text:00000000003084A0                 CMP             X3, X4<br \/>\n.text:00000000003084A4                 CSET            W3, EQ<br \/>\n.text:00000000003084A8                 MOV             W4, W15<br \/>\n.text:00000000003084AC                 CMP             W15, W10<br \/>\n.text:00000000003084B0                 B.NE            loc_308424<br \/>\n.text:00000000003084B4<br \/>\n.text:00000000003084B4 loc_3084B4                              ; CODE XREF: sub_3083B0&#043;70\u2191j<br \/>\n.text:00000000003084B4                                         ; sub_3083B0&#043;B8\u2191j<br \/>\n.text:00000000003084B4                 LDR             W4, [X16]<br \/>\n.text:00000000003084B8                 CMP             W4, W8<br \/>\n.text:00000000003084BC                 B.NE            loc_308470<br \/>\n.text:00000000003084C0                 B               loc_308458<br \/>\n.text:00000000003084C0 ; End of function sub_3083B0<br \/>\n.text:00000000003084C0<br \/>\n.text:00000000003084C4<\/p>\n<p>\u8fd9\u79cd\u8fd9\u79cd\u60c5\u51b5\u5f88\u591a&#xff0c;\u4f46\u662f\u518d\u4ed4\u7ec6\u89c2\u770b\u4e00\u4e0b&#xff0c;\u5c31\u80fd\u53d1\u73b0\u8fd9\u73a9\u610f\u4e24\u4e2a\u53c2\u6570&#xff0c;\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u5b57\u8282\u7801&#xff0c;\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f VM CTX&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u5229\u7528\u8fd9\u4e00\u70b9\u8fdb\u884c\u601d\u8003&#xff0c;\u56e0\u4e3a\u8fd9\u79cd\u7279\u5f81\u4e5f\u975e\u5e38\u975e\u5e38\u5c11&#xff0c;\u8fd9\u5757\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u7279\u5f81\u8fdb\u884c\u5339\u914d<\/p>\n<h5>\u95f4\u63a5\u8c03\u7528<\/h5>\n<p>\u63a5\u4e0b\u6765\u770b CALL \u7c7b\u8c03\u7528\u7684 handler&#xff0c;\u8fd9\u4e5f\u633a\u62bd\u8c61\u7684<\/p>\n<p>.text:0000000000358E14 ; __int64 __fastcall sub_358E14(_QWORD **, unsigned __int8 *, unsigned int)<br \/>\n.text:0000000000358E14 sub_358E14                              ; CODE XREF: sub_2E87B4&#043;C\u2191p<br \/>\n.text:0000000000358E14                                         ; sub_2EDA70&#043;80\u2191p &#8230;<br \/>\n.text:0000000000358E14<br \/>\n.text:0000000000358E14 var_18          &#061; -0x18<br \/>\n.text:0000000000358E14 var_10          &#061; -0x10<br \/>\n.text:0000000000358E14 var_8           &#061; -8<br \/>\n.text:0000000000358E14 var_s0          &#061;  0<br \/>\n.text:0000000000358E14 var_s8          &#061;  8<br \/>\n.text:0000000000358E14<br \/>\n.text:0000000000358E14                 SUB             SP, SP, #0x30<br \/>\n.text:0000000000358E18                 STP             X29, X30, [SP,#0x20&#043;var_s0]<br \/>\n.text:0000000000358E1C                 ADD             X29, SP, #0x20<br \/>\n.text:0000000000358E20                 LDRB            W10, [X1]<br \/>\n.text:0000000000358E24                 ADRL            X9, off_3E41D8<br \/>\n.text:0000000000358E2C                 LDRSW           X11, [X1,#0xC]<br \/>\n.text:0000000000358E30                 ADD             X8, SP, #0x20&#043;var_18<br \/>\n.text:0000000000358E34                 ADD             X10, X1, X10,LSL#3<br \/>\n.text:0000000000358E38                 STR             X11, [X10,#0x6070]<br \/>\n.text:0000000000358E3C                 LDR             X10, [X0]<br \/>\n.text:0000000000358E40                 ADD             X0, SP, #0x20&#043;var_10<br \/>\n.text:0000000000358E44                 LDR             X10, [X10]<br \/>\n.text:0000000000358E48                 LDR             X10, [X10,W2,UXTW#3]<br \/>\n.text:0000000000358E4C                 STP             X1, X8, [SP,#0x20&#043;var_18]<br \/>\n.text:0000000000358E50                 LDR             X11, [X10,#0x58]<br \/>\n.text:0000000000358E54                 STR             X10, [SP,#0x20&#043;var_8]<br \/>\n.text:0000000000358E58                 LDR             X9, [X9,X11,LSL#3]<br \/>\n.text:0000000000358E5C                 BLR             X9<br \/>\n.text:0000000000358E60                 LDP             X29, X30, [SP,#0x20&#043;var_s0]<br \/>\n.text:0000000000358E64                 ADD             SP, SP, #0x30 ; &#039;0&#039;<br \/>\n.text:0000000000358E68                 RET<\/p>\n<p>.text:00000000002E6694 ; __int64 __fastcall sub_2E6694(unsigned __int8 ***)<br \/>\n.text:00000000002E6694 sub_2E6694                              ; DATA XREF: .data.rel.ro:off_3E1E30\u2193o<br \/>\n.text:00000000002E6694                                         ; .data.rel.ro:off_3E41D8\u2193o<br \/>\n.text:00000000002E6694<br \/>\n.text:00000000002E6694 var_20          &#061; -0x20<br \/>\n.text:00000000002E6694 var_18          &#061; -0x18<br \/>\n.text:00000000002E6694 var_10          &#061; -0x10<br \/>\n.text:00000000002E6694<br \/>\n.text:00000000002E6694                 STP             X29, X30, [SP,#var_20]!<br \/>\n.text:00000000002E6698                 STR             X19, [SP,#0x20&#043;var_10]<br \/>\n.text:00000000002E669C                 MOV             X29, SP<br \/>\n.text:00000000002E66A0                 LDP             X8, X9, [X0]<br \/>\n.text:00000000002E66A4                 LDR             X19, [X8]<br \/>\n.text:00000000002E66A8                 LDR             X8, [X9]<br \/>\n.text:00000000002E66AC                 MOV             X0, X19<br \/>\n.text:00000000002E66B0                 BLR             X8<br \/>\n.text:00000000002E66B4                 LDRB            W8, [X19]<br \/>\n.text:00000000002E66B8                 ADD             X8, X19, X8,LSL#3<br \/>\n.text:00000000002E66BC                 LDR             X8, [X8,#0x6070]<br \/>\n.text:00000000002E66C0                 STR             W8, [X19,#0xC]<br \/>\n.text:00000000002E66C4                 LDR             X19, [SP,#0x20&#043;var_10]<br \/>\n.text:00000000002E66C8                 LDP             X29, X30, [SP&#043;0x20&#043;var_20],#0x20<br \/>\n.text:00000000002E66CC                 RET<\/p>\n<p>.text:00000000002D1D5C<br \/>\n.text:00000000002D1D5C ; __int64 __fastcall sub_2D1D5C(__int64)<br \/>\n.text:00000000002D1D5C sub_2D1D5C                              ; DATA XREF: sub_2D2844&#043;1D8\u2193o<br \/>\n.text:00000000002D1D5C<br \/>\n.text:00000000002D1D5C var_10          &#061; -0x10<br \/>\n.text:00000000002D1D5C<br \/>\n.text:00000000002D1D5C                 STR             X30, [SP,#var_10]!<br \/>\n.text:00000000002D1D60                 MOV             W1, #8<br \/>\n.text:00000000002D1D64                 BL              sub_2E5D1C ; vm_read_int_reg<br \/>\n.text:00000000002D1D68                 BL              sub_2C8AE8<br \/>\n.text:00000000002D1D6C                 LDR             X30, [SP&#043;0x10&#043;var_10],#0x10<br \/>\n.text:00000000002D1D70                 RET<\/p>\n<p>\u4e00\u6b65\u4e00\u6b65\u7684\u8c03\u7528\u8fdb\u6765\u7684\u60c5\u51b5&#xff0c;\u8fd9\u5757\u6700\u96be\u7684\u4e5f\u662f x8 \u7684\u5904\u7406&#xff0c;\u4e07\u4e00\u5b83\u4e0d\u8d70 x8 \u5462&#xff1f;\u8fd9\u5757\u4e0d\u70b8\u4e86&#xff1f;(\u54c8\u54c8\u54c8\u54c8\u54c8&#xff0c;\u4e0a\u5e1d\u89c6\u89d2\u6765\u4e86&#xff0c;\u8fd9\u786e\u5b9e\u5168\u8d70 x8 \u95f4\u63a5\u8c03\u7528)\u6211\u60f3\u7684\u662f\u52a0\u4e00\u4e2a if \u6216\u8005 try&#xff0c;\u770b\u770b\u4e0d\u8d70\u7684\u60c5\u51b5&#xff0c;\u8fd9\u79cd\u601d\u8def\u7684\u597d\u5904\u5c31\u662f\u53ef\u4ee5\u770b\u89c1\u8d70\u6216\u8005\u4e0d\u8d70\u90fd\u7ecf\u5386\u4e86\u4ec0\u4e48\u53ef\u4ee5\u4e8c\u5206\u5b9a\u4f4d&#xff0c;OK \u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u786e\u5b9a\u5199\u6cd5\u4e86<\/p>\n<p>\u6211\u6253\u7b97\u7528 Python \u7684match &#8230; case &#8230;\u5199&#xff0c;\u9996\u5148\u5c31\u662f\u7279\u5f81\u7684\u5339\u914d&#xff0c;\u5176\u6b21\u662f\u5bf9\u95f4\u63a5\u8c03\u7528\u7684\u5339\u914d(\u4e0a\u5e1d\u89c6\u89d2&#xff1a;\u540e\u9762\u7528\u7684\u9012\u5f52\u6700\u6df1\u6808\u8c03\u7528\u8fdb\u884c\u4e8c\u5206\u6392\u67e5\u4e86&#xff0c;\u6ca1\u6709\u8f6f\u4ef6\u6d41\u6c34\u7ebf)<br \/>\n\u5176\u5b9e\u8fd8\u53ef\u4ee5\u5916\u5c42 if \u8bed\u53e5\u6765\u5224\u65ad\u662f\u4e0d\u662f\u590d\u5408\u8bed\u53e5&#xff0c;\u7136\u540e\u5728\u95f4\u63a5\u5339\u914d\u65f6\u5019\u7528 match \u770b\u6709\u6ca1\u6709\u8d70 x8 \u95f4\u63a5\u8c03\u7528<\/p>\n<h5>VM CTX \u64cd\u4f5c<\/h5>\n<p>\u8fd9\u70b9\u5c31\u4e5f\u9700\u8981\u4e00\u4e2a\u51fd\u6570\u6765\u8fdb\u884c\u64cd\u4f5c&#xff0c;\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u5b9e\u4f8b<\/p>\n<p>.text:00000000002D1D08 sub_2D1D08                              ; DATA XREF: sub_2D2844&#043;1A0\u2193o<br \/>\n.text:00000000002D1D08<br \/>\n.text:00000000002D1D08 var_20          &#061; -0x20<br \/>\n.text:00000000002D1D08 var_10          &#061; -0x10<br \/>\n.text:00000000002D1D08 var_8           &#061; -8<br \/>\n.text:00000000002D1D08<br \/>\n.text:00000000002D1D08                 STR             X30, [SP,#var_20]!<br \/>\n.text:00000000002D1D0C                 STP             X20, X19, [SP,#0x20&#043;var_10]<br \/>\n.text:00000000002D1D10                 MOV             W1, #8<br \/>\n.text:00000000002D1D14                 MOV             X19, X0<br \/>\n.text:00000000002D1D18                 BL              vm_read_int_reg<br \/>\n.text:00000000002D1D1C                 MOV             X20, X0<br \/>\n.text:00000000002D1D20                 MOV             X0, X19<br \/>\n.text:00000000002D1D24                 MOV             W1, #9<br \/>\n.text:00000000002D1D28                 BL              vm_read_int_reg<br \/>\n.text:00000000002D1D2C                 MOV             X1, X0<br \/>\n.text:00000000002D1D30                 MOV             X0, X20<br \/>\n.text:00000000002D1D34                 BL              sub_2D8890<br \/>\n.text:00000000002D1D38                 LDP             X20, X19, [SP,#0x20&#043;var_10]<br \/>\n.text:00000000002D1D3C                 LDR             X30, [SP&#043;0x20&#043;var_20],#0x20<br \/>\n.text:00000000002D1D40                 RET<\/p>\n<p>.text:00000000002E5D1C ; __int64 __fastcall vm_read_int_reg(__int64, int)<br \/>\n.text:00000000002E5D1C vm_read_int_reg                         ; CODE XREF: sub_2D1A58&#043;C\u2191p<br \/>\n.text:00000000002E5D1C                                         ; sub_2D1A84&#043;C\u2191p &#8230;<br \/>\n.text:00000000002E5D1C                 ADD             X8, X0, W1,SXTW#3<br \/>\n.text:00000000002E5D20                 LDR             X0, [X8,#0x6070]<br \/>\n.text:00000000002E5D24                 RET<\/p>\n<p>.text:00000000002E5D28 ; __int64 __fastcall vm_write_int_reg(__int64 result, int, __int64)<br \/>\n.text:00000000002E5D28 vm_write_int_reg                        ; CODE XREF: sub_2D1A58&#043;20\u2191p<br \/>\n.text:00000000002E5D28                                         ; sub_2D1A84&#043;20\u2191p &#8230;<br \/>\n.text:00000000002E5D28                 ADD             X8, X0, W1,SXTW#3<br \/>\n.text:00000000002E5D2C                 STR             X2, [X8,#0x6070]<br \/>\n.text:00000000002E5D30                 RET<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u89c1\u5b83\u76f4\u63a5\u901a\u8fc7\u7d22\u5f15\u8bbf\u95ee\u865a\u62df\u673a\u7684\u6574\u6570\u5bc4\u5b58\u5668\u6587\u4ef6&#xff0c;\u73b0\u5728\u51fd\u6570\u540d\u4e5f\u4e0d\u662f\u5f88\u597d&#xff0c;\u4f46\u662f\u5148\u8fd9\u6837\u5427<br \/>\n\u8fd9\u5757\u5427\u5176\u5b9e\u4e5f\u53ef\u4ee5\u7ee7\u7eed\u505a\u6298\u53e0\u7136\u540e\u770b\u5168\u90e8\u7684\u4e1c\u897f&#xff0c;\u6bcf\u4e2a\u5230\u8fd9\u7684\u5c31\u8f93\u51fa\u5b83\u8fd9\u4e2a\u51fd\u6570\u53c8\u8c03\u7528\u4e86\u4ec0\u4e48\u51fd\u6570&#xff0c;\u505a\u7279\u5f81\u5339\u914d&#xff0c;\u8fd9\u8fd8\u662f\u5f97\u76ca\u4e8e VMP \u7684\u7cbe\u786e\u6784\u9020&#xff0c;\u8981\u4e0d\u7136\u662f\u771f\u6ca1\u529e\u6cd5\u4e00\u76f4\u5bf9\u7279\u5f81\u8fdb\u884c\u603b\u7ed3&#xff0c;\u5c31\u7b97\u662f Windows \u4e0a\u7684 VMP \u672c\u5c0a\u4e5f\u662f\u5de8\u5927\u7684\u7279\u5f81\u5426\u5219\u4e5f\u4e0d\u4f1a\u88ab\u6574\u7406\u51fa\u6765\u90a3\u4e48\u591a\u8fd8\u539f\u8d44\u6599\u4e86<br \/>\n(\u4e0a\u5e1d\u89c6\u89d2&#xff1a;\u5bf9\u4e8e\u8fd9\u5757\u5176\u5b9e\u53ef\u80fd\u771f\u7684\u53ea\u6709\u666e\u901a\u7684\u6574\u6570\u5bc4\u5b58\u5668\u6709&#xff0c;\u6d6e\u70b9\u6570\u5bc4\u5b58\u5668\u6211\u662f\u5b8c\u5b8c\u5168\u5168\u6ca1\u627e\u5230\u76f8\u5173\u7684\u5185\u5bb9&#xff0c;\u8fd9\u4e3b\u8981\u548c VM \u6784\u9020\u6709\u5173\u4e86)<\/p>\n<h4 id=\"msg_header_h3_5\">\u56fe\u7b97\u6cd5\u7684\u5b9e\u73b0\u4e0e\u56f0\u5883<\/h4>\n<p>\u6628\u5929\u7ed9\u4e00\u4e2a CTF \u51fa\u9898\u53bb\u4e86&#xff0c;\u867d\u7136\u53ea\u6709\u4e00\u9053\u5b89\u5353\u9898\u76ee&#xff0c;\u4eca\u5929\u7ee7\u7eed\u601d\u8003\u63a5\u4e0b\u6765\u7684\u5904\u7406<br \/>\n\u9996\u5148\u662f\u6539\u4e86\u4e00\u4e0b\u5bf9\u4e8e\u8c03\u7528\u6808\u7684\u4e1c\u897f&#xff0c;\u6362\u6210\u9012\u5f52\u5f62\u5f0f\u4e86&#xff0c;\u8fd9\u6837\u4e5f\u53ef\u4ee5\u66f4\u597d\u7684\u67e5\u627e\u548c\u62fc\u63a5\u6570\u636e&#xff0c;\u611f\u89c9\u9a6c\u4e0a\u8981\u5f00\u59cb\u5199\u56fe\u7b97\u6cd5\u4e86&#xff0c;\u597d\u96be\u554a&#xff0c;\u4e0d\u8fc7\u8f66\u5230\u5c71\u524d\u5fc5\u6709\u8def&#xff0c;\u8239\u5230\u6865\u5934\u81ea\u7136\u76f4&#xff0c;\u4e0d\u7528\u62c5\u5fc3\u8fd9\u4e00\u5757&#xff0c;\u601d\u8003\u4e00\u4e0b\u524d\u77bb\u6027\u95ee\u9898\u5427&#xff0c;\u8bf4\u96be\u4e5f\u96be\u8bf4\u4e0d\u96be\u4e5f\u4e0d\u96be&#xff0c;\u53ef\u80fd\u662f\u6211\u754f\u96be\u5fc3\u7406\u5427<\/p>\n<li>\n<p>\u57fa\u672c handler \u56fe\u7b97\u6cd5<\/p>\n<\/li>\n<li>\n<p>bl \u8c03\u7528\u7684\u590d\u5408 handler \u56fe\u7b97\u6cd5<\/p>\n<\/li>\n<li>\n<p>\u8c03\u7528\u5176\u4ed6\u51fd\u6570\u7684 handler \u56fe\u7b97\u6cd5<\/p>\n<\/li>\n<li>\n<p>VM CTX \u7684\u76f8\u5173\u7684\u51fd\u6570\u64cd\u4f5c&#xff0c;\u8fd9\u4e5f\u662f\u56fe\u7b97\u6cd5\u6240\u9700\u8981\u5b9e\u73b0\u7684\u5185\u5bb9&#xff0c;\u4e0d\u8fc7\u8fd9\u5757\u80af\u5b9a\u4e0d\u4f1a\u975e\u5e38\u591a\u7684&#xff0c;\u5b9e\u5728\u4e0d\u884c\u5c31\u518d tm \u7684\u627e\u89c4\u5f8b\u53bb<\/p>\n<\/li>\n<li>\n<p>\u903b\u8f91\u51fd\u6570\u7684\u5904\u7406<\/p>\n<p>wc \u4e86&#xff0c;\u5c31\u5728\u521a\u521a\u6a21\u578b\u7ed9\u4e86\u6211\u4e00\u4e2a\u9876\u7ea7\u601d\u8def<\/p>\n<\/li>\n<p>\u5f71\u5b50\u8f68\u9053<\/p>\n<p>\u7531\u4e8e\u6211\u4eec\u9009\u62e9 P-code(\u5b9e\u9645\u662f\u4efb\u610f\u7684&#xff0c;\u53ea\u9700\u8981\u4fdd\u8bc1 IR \u7684\u4e0d\u53d8\u6027&#xff0c;\u4e0d\u80fd\u8ba9\u6c47\u7f16\u6bcf\u6b21\u63d0\u5347\u51fa\u6765\u6709\u968f\u673a\u6027) \u8fdb\u884c IR \u7684\u63d0\u5347&#xff0c;\u6240\u4ee5\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u8003\u8651\u63d0\u5347\u4e24\u4ee3\u51fa\u6765<\/p>\n<ul>\n<li>\u539f\u59cb\u7684\u6c47\u7f16\u63d0\u5347&#xff0c;\u7531\u4e3b\u8981\u903b\u8f91\u8fdb\u884c\u63d0\u5347&#xff0c;\u8d1f\u8d23\u540e\u7eed\u7684\u7b97\u6cd5\u6216\u8005\u53bb\u6df7\u6dc6\u5b9e\u73b0<\/li>\n<li>\u5177\u4f53\u503c\u4ee3\u5165\u63d0\u5347&#xff0c;\u8fd9\u5757\u6211\u4eec\u8bfb\u53d6 trace \u7684\u503c\u7136\u540e\u5199\u8fdb\u53bb&#xff0c;\u8fd9\u6837\u53cc\u65b9\u53ef\u4ee5\u50cf\u5f71\u5b50\u4e00\u6837\u7a7f\u900f\u5b9e\u73b0&#xff0c;\u5176\u5b9e\u8fd9\u5757\u6211\u611f\u89c9\u601d\u8def\u8fd8\u6709\u5f88\u591a\u5f88\u591a<\/li>\n<\/ul>\n<p>\u4e0d\u8fc7\u554a&#xff0c;\u8fd8\u662f\u6709\u4e00\u4e9b\u96be\u70b9\u7684&#xff0c;\u6709 IR\u3001\u5b9e\u73b0\u3001\u4ee3\u5165\u7b49\u7b49\u65b9\u9762\u7684&#xff0c;\u6211\u5148\u8bf4\u6211\u60f3\u5230\u7684\u56f0\u96be<\/p>\n<li>PyPcode \u5403\u7684\u662f\u5b57\u8282\u7801&#xff0c;\u8fd8\u6709\u5c31\u662f\u600e\u4e48\u8ba9\u6c47\u7f16\u5668\u548c IR \u63d0\u5347\u5668\u80fd\u8ba4\u53ef\u6211\u4eec\u7eaf\u503c\u7684\u6c47\u7f16&#xff1f;\u8fd9\u73a9\u610f\u5408\u6cd5\u5417&#xff1f;<\/li>\n<li>\u4ee3\u5165\u591a\u5c11\u503c&#xff1f;\u600e\u4e48\u53bb\u4ee3\u5165&#xff1f;\u5176\u5b9e\u6709\u4e00\u79cd\u89e3\u6cd5&#xff0c;\u9047\u5230\u518d\u7a7f\u900f&#xff0c;\u50cf\u5185\u6838\u7684\u7f3a\u9875\u4e00\u6837&#xff0c;\u6211\u4eec\u9047\u89c1\u4e00\u4e2a\u9700\u8981\u7a7f\u900f\u7684\u503c\u4e86\u4f46\u662f\u6ca1\u5b58<\/li>\n<p>\u89e3\u6cd5\u6765\u4e86&#xff0c;\u4e5f\u662f\u5403\u4e0a IR \u7684\u7ea2\u5229\u4e86&#xff0c;\u6211\u7528 P-code \u7684<br \/>\n\u9996\u5148\u6c47\u7f16\u4f1a\u63d0\u5347\u51fa\u6765&#xff0c;\u8fd9\u6837\u5c31\u6709\u4e86\u6a21\u677f\u4e86&#xff0c;\u8fd9\u65f6\u5019\u6211\u4eec\u4f1a\u6709varnode&#xff0c;\u8fd9\u73a9\u610f\u4e0d\u77e5\u9053\u662f\u5565\u5c31\u53bb\u770b P-code \u7684\u4f7f\u7528\u57fa\u7840\u4e2d\u7684\u57fa\u7840\u4e86&#xff0c;\u7136\u540e\u6211\u4eec\u62ff\u8fd9\u4e2a\u6a21\u677f\u8fdb\u884c\u5bc4\u5b58\u5668\u7684\u904d\u5386\u4e0e\u4ee3\u6362&#xff0c;\u628a\u5b9e\u9645 trace \u8bb0\u5f55\u503c\u4ee3\u5165\u6a21\u677f\u5f97\u5230\u7b2c\u4e8c\u4ee3\u4ea7\u7269&#xff0c;\u4e5f\u5c31\u662f\u6709\u4e86\u5177\u4f53\u503c&#xff0c;\u8fd9\u65f6\u5019\u6211\u4eec\u5c31\u89e3\u51b3\u4e86\u6240\u9047\u89c1\u7684\u5927\u96be\u9898&#xff0c;\u63a5\u4e0b\u6765\u6211\u62ff\u4e00\u6761\u6c47\u7f16\u8fdb\u884c\u6f14\u793a<\/p>\n<p>idx     \u504f\u79fb      \u6c47\u7f16                       \u5bc4\u5b58\u5668\u8bfb                                \u5bc4\u5b58\u5668\u5199<br \/>\n17052c  0x285eb0  &#034;madd x10, x12, x11, x10&#034;  {X12:0x0, X11:0xdec, X10:0x794d9af5c8}  {X10:0x794d9af5c8}<\/p>\n<p>\u7b2c\u4e00\u4ee3&#xff08;SLEIGH \u63d0\u5347&#xff09;&#xff1a;<br \/>\nx10 &#061; (x12 * x11) &#043; x10<\/p>\n<p>\u7b2c\u4e8c\u4ee3&#xff08;\u5f71\u5b50\u6298\u53e0&#xff0c;\u628a\u4e09\u4e2a\u6e90 varnode \u6362\u6210 trace \u503c&#xff09;&#xff1a;<br \/>\nx10 &#061; (0x0 * 0xdec) &#043; 0x794d9af5c8<\/p>\n<p>\u5728 varnode \u5c42\u6298\u53e0&#xff0c;\u628a varnode \u7684 space \u6362\u6389<\/p>\n<ul>\n<li>space &#061; register&#xff0c;offset &#061; \u5bc4\u5b58\u5668\u7f16\u53f7 \u2192 \u8fd9\u662f&#034;\u5bc4\u5b58\u5668 x12&#034;<\/li>\n<li>space &#061; unique&#xff0c;offset &#061; SLEIGH \u4e34\u65f6\u5206\u914d\u7684\u53f7 \u2192 \u8fd9\u662f&#034;\u6307\u4ee4\u5185\u90e8\u4e2d\u95f4\u503c&#034;<\/li>\n<li>space &#061; ram&#xff0c;offset &#061; \u5185\u5b58\u5730\u5740 \u2192 \u8fd9\u662f&#034;\u5185\u5b58\u67d0\u4e2a\u4f4d\u7f6e&#034;<\/li>\n<li>space &#061; const&#xff0c;offset &#061; \u90a3\u4e2a\u503c\u672c\u8eab \u2192 \u8fd9\u662f&#034;\u5e38\u91cf&#034;<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u6211\u5f15\u5165\u8fdb\u6765\u90a3\u4e2a\u5f71\u5b50\u8f68\u9053\u7684\u601d\u8def\u5427&#xff0c;\u8ba9\u6a21\u578b\u6574\u7406\u7684<\/p>\n<h4 id=\"msg_header_h3_6\">\u5f71\u5b50\u8f68\u9053 \u00b7 \u5b8c\u6574\u601d\u8def<\/h4>\n<p>\u4e24\u4ee3 IR&#xff0c;\u540c\u6e90\u540c varnode&#xff1a;<\/p>\n<ul>\n<li>\u7b2c\u4e00\u4ee3 &#061; \u539f\u59cb\u6c47\u7f16 \u2192 SLEIGH \u2192 P-code\u3002\u8bed\u4e49\u5b8c\u6574\u7684&#034;\u771f\u8eab&#034;&#xff0c;\u9759\u6001\u9aa8\u67b6&#xff0c;\u4e0d\u4ea7\u503c\u3002<\/li>\n<li>\u7b2c\u4e8c\u4ee3 &#061; \u7b2c\u4e00\u4ee3 &#043; trace \u503c \u2192 varnode \u6298\u53e0 \u2192 P-code\u3002\u5e26\u5177\u4f53\u503c\u7684&#034;\u5f71\u5b50&#034;&#xff0c;\u505a\u5411\u5bfc\u3001\u7a7f\u900f\u3002<\/li>\n<\/ul>\n<p>\u5173\u952e\u8ba4\u77e5&#xff1a;\u503c\u6765\u81ea trace&#xff08;\u52a8\u6001\u6267\u884c&#xff09;&#xff0c;\u4e0d\u662f\u7b2c\u4e00\u4ee3\u81ea\u5df1\u7b97\u51fa\u6765\u7684\u3002\u7b2c\u4e00\u4ee3\u4e0d\u6267\u884c\u4e0d\u4ea7\u503c&#xff0c;\u53ea\u56de\u7b54&#034;\u8fd9\u6bb5\u6307\u4ee4\u957f\u5565\u6837&#034;&#xff1b;trace \u56de\u7b54&#034;\u8fd9\u6b21\u8dd1\u8d77\u6765\u503c\u662f\u5565&#034;\u3002\u4e24\u4ee3\u662f\u540c\u4e00\u6279\u6307\u4ee4\u7684\u4e24\u4e2a\u89c6\u56fe&#xff0c;\u522b\u6df7\u6210\u4e00\u4e2a\u4e1c\u897f\u3002<\/p>\n<p>\u5bf9\u9f50&#xff08;\u5f71\u5b50\u8eab\u4efd&#xff09;&#xff1a;\u4e24\u4ee3\u4ece\u540c\u4e00\u6279\u5b57\u8282\u3001\u540c\u4e00\u5957 SLEIGH \u63d0\u5347&#xff0c;unique varnode \u5bf9\u540c\u4e00\u6761\u6307\u4ee4\u5206\u914d\u662f\u786e\u5b9a\u6027\u7684&#xff0c;\u6240\u4ee5\u5171\u4eab\u540c\u4e00\u5957 varnode \u547d\u540d\u7a7a\u95f4\u3002\u5f71\u5b50\u8eab\u4efd\u9760\u8fd9\u4e2a&#xff0c;\u4e0d\u9760&#034;\u4e24\u4ee3\u6c47\u7f16\u90fd\u5408\u6cd5&#034;\u3002PC \u951a\u70b9\u7528 RVA&#xff08;trace \u7b2c\u4e09\u5217&#xff09;&#xff0c;\u4e0d\u80fd\u7528\u7edd\u5bf9\u5730\u5740&#xff08;ASLR \u6f02\u79fb&#xff09;\u3002<\/p>\n<p>\u6298\u53e0\u7684\u672c\u8d28&#xff1a;varnode &#061; (space, offset, size)&#xff0c;\u6298\u53e0 &#061; \u628a varnode \u4ece register space \u8e22\u5230 const space\u3002\u5206\u4e24\u6b65&#xff1a;<\/p>\n<li>\u66ff\u6362&#xff1a;\u6e90 varnode \u6362\u6210 trace \u91cc\u7684\u5e38\u91cf\u503c\u3002<\/li>\n<li>\u5e38\u91cf\u6298\u53e0&#xff1a;\u4ee3\u6570\u5316\u7b80&#xff0c;\u80fd\u7b97\u7684\u7b97\u51fa\u6765&#xff0c;\u4e2d\u95f4 unique \u53d8\u6b7b\u4ee3\u7801\u6d88\u6389\u3002<\/li>\n<p>unique \u751f\u547d\u5468\u671f\u53ea\u5728\u5355\u6761\u6307\u4ee4\u5185&#xff0c;trace \u4e0d\u8bb0\u5b83&#xff0c;\u53ea\u80fd\u9760&#034;\u8f93\u5165\u5bc4\u5b58\u5668\u6298\u6210\u5e38\u91cf\u540e\u5316\u7b80&#034;\u6d88\u6389\u3002\u987a\u5e8f&#xff1a;\u5148\u6298\u8f93\u5165&#xff0c;\u518d\u5316\u7b80\u3002<br \/>\n\u6298\u53e0\u8fb9\u754c&#xff08;trace \u7ed9\u4e86\u5565\u624d\u80fd\u6298\u5565&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u8bfb\u5217&#xff08;\u6e90\u5bc4\u5b58\u5668\u503c&#xff09;\u2192 \u6298\u6e90<\/li>\n<li>\u5199\u5217&#xff08;\u76ee\u6807\u5bc4\u5b58\u5668\u503c&#xff09;\u2192 \u6298\u76ee\u6807<\/li>\n<li>\u5185\u5b58\u5730\u5740 \u2192 \u503c\u6ca1\u8bb0 \u2192 LOAD\/STORE \u53ea\u80fd\u9760&#034;\u8f93\u51fa\u5bc4\u5b58\u5668\u5df2\u77e5&#034;\u540e\u5411\u6298&#xff0c;\u6ca1\u6cd5\u524d\u5411\u6298&#034;\u8fd9\u5730\u5740\u91cc\u662f\u5565&#034;<\/li>\n<\/ul>\n<p>varnode \u7ea2\u5229&#xff1a;SLEIGH \u767d\u9001\u5bc4\u5b58\u5668\u91cd\u547d\u540d &#043; \u503c\u7f16\u53f7\u3002\u6c47\u7f16\u91cc x10 \u590d\u7528\u3001\u5185\u5b58\u522b\u540d\u3001\u6761\u4ef6\u7801\u8fd9\u4e9b\u6700\u810f\u7684\u9690\u5f0f\u6570\u636e\u6d41&#xff0c;\u63d0\u5347\u65f6\u5168\u663e\u5f0f\u5316&#xff0c;\u6bcf\u4e2a\u503c\u4e00\u4e2a varnode&#xff0c;\u8de8\u6307\u4ee4 def-use \u73b0\u6210\u3002\u8fd9\u6761 def-use &#061; DFG \u9aa8\u67b6&#xff0c;\u76f4\u63a5\u63a5&#034;DFG &#043; \u53cd\u5411\u6c61\u70b9&#034;\u90a3\u5957\u3002\u6240\u4ee5 P-code \u4e0d\u662f&#034;\u4efb\u610f\u7684&#034;\u2014\u2014\u6362\u4e2a\u6ca1 varnode \/ \u663e\u5f0f def-use \u7684 IR&#xff0c;\u8fd9\u5c42\u5f97\u81ea\u5df1\u91cd\u5199\u3002<\/p>\n<p>\u4e24\u4e2a\u5751&#xff1a;<\/p>\n<li>flags\/NZCV \u6ca1\u8bb0&#xff08;cmp \u5199\u5217\u7a7a&#xff0c;csel \u8bfb\u5217\u4e0d\u8bb0 NZCV&#xff09;\u3002\u63a7\u5236\u6d41\u7a7f\u900f&#xff08;cbz\/tbz&#xff09;\u4f1a\u5361\u3002<\/li>\n<li>\u5185\u5b58\u5730\u5740 \u2192 \u503c\u6ca1\u8bb0&#xff08;\u7b2c 7 \u5217\u7a7a&#xff09;\u3002\u63a7\u5236\u6d41\u7a7f\u900f\u591f\u7528&#xff0c;\u8ffd\u5185\u5b58 key \u4e0d\u591f\u3002<\/li>\n<p>\u96be\u70b9\u7b54\u6848&#xff1a;<\/p>\n<ul>\n<li>\u7eaf\u503c\u6c47\u7f16\u5408\u6cd5\u5417 \u2192 \u522b\u6539\u6c47\u7f16\u5b57\u8282\u3002imm \u957f\u5ea6\u53d8 \u2192 \u5730\u5740\u9519\u4f4d \u2192SLEIGH \u8ba4\u9519\u6307\u4ee4\u8fb9\u754c \u2192varnode \u5168\u4e71\u3002\u6b63\u786e\u662f P-code \u5c42\u66ff\u6362&#xff0c;\u4e0d\u78b0\u5b57\u8282\u3002<\/li>\n<li>\u4ee3\u5165\u591a\u5c11\/\u600e\u4e48\u4ee3 \u2192 \u81ea\u5df1\u6784\u9020\u8bb0\u5f55\u5b57\u5178&#xff0c;\u6574\u4e2a handler \u4f5c\u4e3a\u4e00\u4e2a\u5217\u8868&#xff0c;\u5217\u8868\u5185\u662f\u5b57\u5178&#xff0c;\u5c06\u5b9e\u9645\u503c\u8bb0\u5f55\u8fdb\u5b57\u5178\u5185&#xff0c;\u540e\u7eed\u7b97\u6cd5\u6839\u636e\u8fd9\u4e2a\u5b57\u5178\u8fdb\u884c<\/li>\n<\/ul>\n<hr \/>\n<p>\u8fd9\u5757\u5b9e\u73b0\u76f4\u63a5\u770b\u6211\u4ee3\u7801\u597d\u4e86&#xff0c;\u7136\u540e\u9047\u89c1\u4e00\u4e2a\u5c0f\u5c4c\u6bdb\u7684\u5730\u65b9&#xff0c;\u53d1\u73b0\u6211\u6ca1\u5bc4\u5b58\u5668\u5168\u90e8\u7684\u6620\u5c04\u554a&#xff0c;\u7136\u540e\u81ea\u5df1\u95ee\u6a21\u578b\u7136\u540e\u7ed9\u81ea\u5df1\u6c14\u534a\u6b7b&#xff0c;\u6700\u540e\u8fd8\u662f\u7ffb\u4ee3\u7801&#xff0c;\u7136\u540e\u627e\u5230 ctx \u51fd\u6570\u53ef\u4ee5\u83b7\u53d6\u5168\u90e8\u5bc4\u5b58\u5668\u7684\u504f\u79fb&#xff0c;\u6700\u7ec8\u5b9e\u73b0\u5982\u4e0b&#xff0c;\u7528\u7684\u65f6\u5019\u76f4\u63a5 Python \u8bed\u6cd5\u62ff\u5c31\u884c\u4e86<\/p>\n<p>_ctx &#061; pypcode.Context(ARCH)<br \/>\nAllRegisters &#061; {<br \/>\nv.offset: (name, v.size) for v, name in self._ctx.getAllRegisters().items()<br \/>\n}<\/p>\n<p>\u7ed9\u5404\u4f4d\u770b\u4e00\u6bb5\u5427&#xff0c;\u907f\u514d\u4e0d\u77e5\u9053\u53d1\u751f\u4e86\u4ec0\u4e48&#xff0c;\u8fd9\u4e2a\u662f\u6211\u66ff\u6362\u51fa\u6765\u7684\u4e1c\u897f&#xff0c;\u7136\u540e\u5c31\u662f\u51c6\u5907\u62ff\u8fd9\u4e2a\u8fdb\u884c\u8fd8\u539f\u7684&#xff0c;\u5206\u53f7\u540e\u9762\u662f\u5730\u5740\u3001\u6c47\u7f16&#xff0c;\u8fd8\u539f\u671f\u95f4\u6ca1\u5206\u53f7\u884c\u5185\u5bb9<\/p>\n<p>; 0x2e87e8  ldr w9, [x23]<br \/>\nunique[c700:8] &#061; COPY 0x7853c7e1dc:8<br \/>\nunique[48f00:4] &#061; LOAD ram(unique[c700:8])<br \/>\nx9:8 &#061; INT_ZEXT unique[48f00:4]<br \/>\n; 0x2e87ec  mov w12, #0x30<br \/>\nx12:8 &#061; COPY 0x30:8<br \/>\n; 0x2e87f0  ldr x11, [x20]<br \/>\nunique[c800:8] &#061; COPY 0x7aaf5ce868:8<br \/>\nx11:8 &#061; LOAD ram(unique[c800:8])<br \/>\n; 0x2e87f4  ldrb w10, [x8, #0x8]<br \/>\nunique[bc00:8] &#061; INT_ADD 0x7c4f75c1d0:8, 0x8:8<br \/>\nunique[4a100:1] &#061; LOAD ram(unique[bc00:8])<br \/>\nx10:8 &#061; INT_ZEXT unique[4a100:1]<br \/>\n; 0x2e87f8  add w9, w9, #0x1<br \/>\nunique[22d00:4] &#061; COPY 0x1:4<br \/>\ntmpCY:1 &#061; INT_CARRY 0x0:4, unique[22d00:4]<br \/>\ntmpOV:1 &#061; INT_SCARRY 0x0:4, unique[22d00:4]<br \/>\nunique[22f00:4] &#061; INT_ADD 0x0:4, unique[22d00:4]<br \/>\ntmpNG:1 &#061; INT_SLESS unique[22f00:4], 0x0:4<br \/>\ntmpZR:1 &#061; INT_EQUAL unique[22f00:4], 0x0:4<br \/>\nx9:8 &#061; INT_ZEXT unique[22f00:4]<br \/>\n; 0x2e87fc  ldrb w13, [x8, #0x9]<br \/>\nunique[bc00:8] &#061; INT_ADD 0x7c4f75c1d0:8, 0x9:8<br \/>\nunique[4a100:1] &#061; LOAD ram(unique[bc00:8])<br \/>\nx13:8 &#061; INT_ZEXT unique[4a100:1]<br \/>\n; 0x2e8800  ldrsh x14, [x8, #0xa]<br \/>\nunique[be00:8] &#061; INT_ADD 0x7c4f75c1d0:8, 0xa:8<br \/>\nunique[4c100:2] &#061; LOAD ram(unique[be00:8])<br \/>\nx14:8 &#061; INT_SEXT unique[4c100:2]<br \/>\n; 0x2e8808  smaddl x8, w9, w12, x11<br \/>\nunique[6db00:8] &#061; INT_SEXT 0x1:4<br \/>\nunique[6dd00:8] &#061; INT_SEXT 0x30:4<br \/>\nunique[6df00:8] &#061; INT_MULT unique[6db00:8], unique[6dd00:8]<br \/>\nx8:8 &#061; INT_ADD 0x7c4f75c1d0:8, unique[6df00:8]<br \/>\n; 0x2e880c  ldr x10, [x24, x10, lsl #3]<br \/>\nunique[ae00:8] &#061; COPY 0x1:8<br \/>\nunique[da00:8] &#061; COPY unique[ae00:8]<br \/>\nunique[da00:8] &#061; INT_LEFT unique[da00:8], 0x3:8<br \/>\nunique[e300:8] &#061; INT_ADD 0x7853c84240:8, unique[da00:8]<br \/>\nx10:8 &#061; LOAD ram(unique[e300:8])<br \/>\n; 0x2e8810  str w9, [x23]<br \/>\nunique[c700:8] &#061; COPY 0x7853c7e1dc:8<br \/>\nSTORE ram(unique[c700:8]), 0x1:4<br \/>\n; 0x2e8814  ldrh w11, [x8]<br \/>\nunique[c600:8] &#061; COPY 0x7c4f75c200:8<br \/>\nunique[4a500:2] &#061; LOAD ram(unique[c600:8])<br \/>\nx11:8 &#061; INT_ZEXT unique[4a500:2]<br \/>\n; 0x2e8818  add x10, x10, x14<br \/>\nunique[23f00:8] &#061; COPY 0xfffffffffffffb60:8<br \/>\ntmpCY:1 &#061; INT_CARRY 0x7853c84200:8, unique[23f00:8]<br \/>\ntmpOV:1 &#061; INT_SCARRY 0x7853c84200:8, unique[23f00:8]<br \/>\nunique[24100:8] &#061; INT_ADD 0x7853c84200:8, unique[23f00:8]<br \/>\ntmpNG:1 &#061; INT_SLESS unique[24100:8], 0x0:8<br \/>\ntmpZR:1 &#061; INT_EQUAL unique[24100:8], 0x0:8<br \/>\nx10:8 &#061; COPY unique[24100:8]<br \/>\n; 0x2e881c  str x10, [x24, x13, lsl #3]<br \/>\nunique[74600:8] &#061; COPY 0x7853c83d60:8<br \/>\nunique[ae00:8] &#061; COPY 0x1:8<br \/>\nunique[da00:8] &#061; COPY unique[ae00:8]<br \/>\nunique[da00:8] &#061; INT_LEFT unique[da00:8], 0x3:8<br \/>\nunique[e300:8] &#061; INT_ADD 0x7853c84240:8, unique[da00:8]<br \/>\nSTORE ram(unique[e300:8]), unique[74600:8]<br \/>\n; 0x2e8820  ldr x11, [x25, x11, lsl #3]<br \/>\nunique[ae00:8] &#061; COPY 0x8d:8<br \/>\nunique[da00:8] &#061; COPY unique[ae00:8]<br \/>\nunique[da00:8] &#061; INT_LEFT unique[da00:8], 0x3:8<br \/>\nunique[e300:8] &#061; INT_ADD 0x794db0be58:8, unique[da00:8]<br \/>\nx11:8 &#061; LOAD ram(unique[e300:8])<br \/>\n; 0x2e8824  br x11<br \/>\npc:8 &#061; COPY 0x794da14cd4:8<br \/>\nBRANCHIND pc:8<\/p>\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u6709\u4e86\u503c&#xff0c;\u4f46\u662f\u5427&#xff0c;\u8fd8\u5f97\u60f3\u4e00\u4e0b\u600e\u4e48\u53bb\u505a\u5206\u6790\u6211\u7684\u601d\u8def\u662f\u76f4\u63a5\u5199\u4e09\u4e2a\u51fd\u6570\u8fdb\u884c&#xff0c;\u56e0\u4e3a\u4e0a\u8ff0\u4e09\u6761\u7ebf&#xff0c;\u4f46\u662f\u5176\u4e2d x25 \u7684\u5bc4\u5b58\u5668\u8df3\u8f6c\u53c8\u73b0\u7684\u4e0d\u90a3\u4e48\u91cd\u8981&#xff0c;\u6240\u4ee5\u4e3b\u7ebf\u5c31\u662f\u5148\u5b9a\u628a\u8fd9\u4e9b\u5bc4\u5b58\u5668\u660e\u786e\u51fa\u6765<\/p>\n<p>\u71c3\u5c3d\u4e86&#xff0c;\u8111\u5b50\u7ed9\u6211\u770b\u9ebb\u4e86\u554a&#xff0c;\u4e0d\u8fc7\u8fd8\u662f\u51b7\u9759\u4e00\u4e0b\u770b\u770b\u6765\u6e90\u518d\u8bf4&#xff0c;\u8fd9\u53ef\u89c1\u53e6\u4e00\u7bc7\u6587\u7ae0\u4e86&#xff0c;P-code IR \u89e3\u6790\u4e0e\u4f7f\u7528\u7bc7\u7ae0<\/p>\n<hr \/>\n<h3 id=\"msg_header_h2_3\">\u5f00\u59cb\u5199\u8fd8\u539f<\/h3>\n<p>\u601d\u8def\u7406\u6e05\u4e86\u5c31\u8be5\u52a8\u624b\u3002\u4e09\u6761\u7ebf\u91cc\u6211\u5148\u5543 x23 \u2014\u2014 \u5b83\u4e00\u6761\u5c31\u80fd\u5b9a\u4e0b\u8fd9\u6761 VM \u6307\u4ee4\u7684\u63a7\u5236\u6d41\u6548\u679c&#xff08;\u987a\u5e8f\u8fd8\u662f\u8df3\u8f6c&#xff09;&#xff0c;\u540e\u9762\u51e0\u6761\u7ebf\u90fd\u5f97\u843d\u5728\u5b83\u4e0a\u9762\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u60f3\u5f97\u633a\u7b80\u5355&#xff1a;handler \u91cc ldr wN, [x23] \u548c str wN, [x23] \u5c31\u90a3\u4e24\u6761&#xff0c;\u8bfb trace \u7684\u8bfb\u5217\u5199\u5217&#xff0c;\u53d6\u51fa\u6765\u7684\u503c\u3001\u5b58\u56de\u53bb\u7684\u503c\u4e0d\u5c31\u90fd\u6709\u4e86&#xff1f;\u6c47\u7f16\u5c42\u786e\u5b9e\u80fd\u505a\u3002<\/p>\n<p>\u4f46\u662f\u4e0d\u5bf9 \u2014\u2014 \u6211\u90fd\u628a IR \u63d0\u5347\u5230 P-code \u4e86&#xff0c;\u518d\u56de\u5934\u53bb\u62a0\u6c47\u7f16\u5b57\u7b26\u4e32&#xff0c;\u90a3\u8fd9\u4e00\u4ee3\u63d0\u5347\u662f\u767d\u5e72\u7684\u3002<\/p>\n<h4 id=\"msg_header_h3_7\">\u5361\u70b9&#xff1a;x23 \u5728\u5f71\u5b50 IR \u91cc\u53ea\u9732\u4e00\u6b21\u9762<\/h4>\n<p>\u771f\u4e0a P-code \u624d\u53d1\u73b0\u95ee\u9898&#xff1a;<\/p>\n<p>; 0x2e87e8  ldr w9, [x23]<br \/>\nunique[c700:8] &#061; COPY 0x7853c7e1dc:8       ; \u2190 x23 \u5728\u8fd9&#xff0c;\u4f46\u5b83\u53ea\u662f\u628a\u5730\u5740\u642c\u8fdb\u4e34\u65f6<br \/>\nunique[48f00:4] &#061; LOAD ram(unique[c700:8]) ; \u2190 \u771f\u6b63\u8bfb IP \u7684\u662f\u8fd9\u6761&#xff0c;\u5730\u5740\u662f unique<br \/>\nx9:8 &#061; INT_ZEXT unique[48f00:4]<\/p>\n<p>x23 \u5728 P-code \u4e0a\u4e0d\u662f\u300c\u88ab\u8bfb\u7684\u5bc4\u5b58\u5668\u300d&#xff0c;\u662f\u300c\u88ab COPY \u51fa\u53bb\u7684\u4e00\u4e2a\u5730\u5740\u5e38\u91cf\u300d\u3002<\/p>\n<p>\u6240\u4ee5\u6309 space &#061;&#061; &#034;register&#034; \u53bb\u626b inputs&#xff0c;\u6536\u4e0a\u6765\u4e00\u5806 COPY&#xff0c;\u5565\u4e5f\u8bf4\u660e\u4e0d\u4e86\u3002\u5199\u4fa7\u540c\u7406&#xff1a;<\/p>\n<p>; 0x2e8810  str w9, [x23]<br \/>\nunique[c700:8] &#061; COPY 0x7853c7e1dc:8<br \/>\nSTORE ram(unique[c700:8]), 0x1:4<\/p>\n<p>\u300c\u5b58\u56de\u53bb\u7684\u503c\u300d\u786e\u5b9e\u5728 STORE \u7b2c 3 \u4e2a\u64cd\u4f5c\u6570\u4e0a&#xff0c;\u4f46\u300c\u54ea\u4e2a STORE \u624d\u662f\u5b58 IP \u7684\u300d\u5f97\u5148\u987a\u7740 varnode \u628a\u5b83\u627e\u51fa\u6765\u3002<\/p>\n<h4 id=\"msg_header_h3_8\">\u89e3\u6cd5&#xff1a;\u6309 offset \u79cd\u79cd\u5b50&#xff0c;\u505a\u524d\u5411\u6807\u8bb0<\/h4>\n<p>\u5148\u8bb0\u4e00\u4e2a\u5751&#xff1a;\u951a\u70b9\u5bc4\u5b58\u5668\u4e00\u5f8b\u6309 offset \u8ba4&#xff0c;\u4e0d\u6309\u540d\u5b57\u3002\u540c\u4e00\u4e2a offset \u4e0a w23\/x23 \u662f\u4e24\u4e2a\u89c6\u56fe&#xff08;size 4 \u548c 8&#xff09;&#xff0c;\u6309\u540d\u5b57\u8ba4\u4f1a\u6f0f\u3002x23 &#061; 0x40B8\u3002<\/p>\n<p>\u7136\u540e\u626b\u4e00\u8d9f shadow&#xff08;SSA \u5e8f&#xff0c;def \u5148\u4e8e use&#xff0c;\u5355\u8d9f\u591f\u7528&#xff09;&#xff0c;\u7ed9\u6bcf\u4e2a varnode \u8bb0\u4e00\u4e2a\u300c\u4f60\u7684\u503c\u662f\u4ece\u54ea\u6761\u7ebf\u6d3e\u751f\u6765\u7684\u300d&#xff1a;<\/p>\n<table>\n<tr>\u89c4\u5219\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u666e\u901a op<\/td>\n<td>\u8f93\u51fa\u7ee7\u627f\u6240\u6709\u8f93\u5165\u7684\u8272&#xff08;\u5e76\u96c6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u5165\u5168\u65e0\u8272<\/td>\n<td>\u8f93\u51fa\u65ad\u94fe\u3001\u6e05\u8272&#xff08;\u5bc4\u5b58\u5668\u88ab\u91cd\u65b0\u8d4b\u503c\u4e86&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>LOAD<\/td>\n<td>\u5730\u5740\u6709\u8272 \u2260 \u8bfb\u51fa\u6765\u7684\u503c\u6709\u8272 \u2014\u2014 \u5730\u5740\u7684\u8272\u8fc7 DEREF \u6362\u6210\u300c\u503c\u300d\u8272&#xff08;ip \u2192 ipval&#xff09;\u843d\u5230\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td>STORE<\/td>\n<td>\u4e0d\u4ea7\u503c&#xff0c;\u4f46\u5730\u5740\/\u503c\u4e24\u8def\u7684\u8272\u626b\u5230\u65f6\u5c31\u8bb0\u4e0b\u6765<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u540e\u90a3\u6761\u5f97\u5f3a\u8c03\u4e00\u4e0b&#xff1a;unique \u7684 offset \u4f1a\u88ab\u540e\u9762\u7684\u6307\u4ee4\u590d\u7528&#xff0c;\u626b\u5b8c\u518d\u56de\u5934\u770b\u90a3\u4e00\u683c\u65e9\u5c31\u88ab\u8986\u76d6\u4e86&#xff0c;\u5206\u7c7b\u5fc5\u987b\u5728\u626b\u7684\u8fc7\u7a0b\u4e2d\u505a\u3002<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u4e0d\u662f\u53ea\u4e3a x23 \u5199\u7684 \u2014\u2014 x24&#xff08;\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6&#xff09;\u3001x25&#xff08;handler \u8868&#xff09;\u5c31\u662f\u540c\u4e00\u4e2a\u51fd\u6570\u6362\u4e2a\u79cd\u5b50&#xff0c;DEREF \u8868\u91cc\u4f4d\u7f6e\u90fd\u7559\u597d\u4e86\u3002<\/p>\n<h4 id=\"msg_header_h3_9\">pre \/ post \u600e\u4e48\u53d6<\/h4>\n<p>\u4e24\u4e2a\u70b9\u90fd\u5728 shadow \u4e0a\u53d6&#xff1a;<\/p>\n<ul>\n<li>pre&#xff1a;\u8bfb [x23] \u90a3\u6761 LOAD \u4e4b\u540e&#xff0c;\u503c\u843d\u5230\u54ea\u4e2a register \u4e0a&#xff0c;\u90a3\u4e2a register \u7684 trace \u503c\u624d\u662f\u53d6\u51fa\u6765\u7684 IP\u3002\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u53d6 LOAD \u7684\u8f93\u51fa&#xff1f;\u56e0\u4e3a\u5b83\u662f unique&#xff0c;trace \u4e0d\u8bb0\u5185\u5b58&#xff0c;\u5b83\u6ca1\u6709\u503c \u2014\u2014 \u5f97\u5f80\u540e\u627e\u7b2c\u4e00\u6761\u628a\u7ed3\u679c\u5199\u8fdb register \u7684 op\u3002<\/li>\n<li>post&#xff1a;\u5199 [x23] \u90a3\u6761 STORE \u7684\u7b2c 3 \u4e2a\u64cd\u4f5c\u6570&#xff0c;\u76f4\u63a5\u5c31\u662f\u5b58\u56de\u53bb\u7684\u65b0 IP\u3002<\/li>\n<\/ul>\n<p>\u4e00\u4e2a handler \u53ef\u80fd\u5199\u4e24\u6b21 IP&#xff0c;\u53d6\u6700\u540e\u4e00\u6761\u3002<\/p>\n<h4 id=\"msg_header_h3_10\">\u5b9e\u6d4b<\/h4>\n<p>2M \u884c\u5207\u7247&#xff0c;46899 \u6761\u8d70\u5230\u8fd9\u6761\u7ebf\u7684 handler&#xff1a;<\/p>\n<p>22208  step&#061;1<br \/>\n13170  step&#061;3<br \/>\n 4650  step&#061;4<br \/>\n 1834  step&#061;5<br \/>\n  968  step&#061;6<br \/>\n 1085  step&#061;-10<br \/>\n  930  step&#061;-4<br \/>\n  772  step&#061;-23<br \/>\n  720  step&#061;-58<br \/>\n   41  \u53ea\u5199\u4e0d\u8bfb<br \/>\n    1  \u62ff\u4e0d\u5230\u65b0 IP<br \/>\n&#xff08;\u5176\u4f59\u4e3a\u5404\u79cd\u8d1f\u6570&#xff0c;\u7565&#xff09;<\/p>\n<p>\u4e09\u4e2a\u53d1\u73b0&#xff1a;<\/p>\n<p>\u2460 step&#061;1 \u53ea\u662f\u987a\u5e8f\u843d\u4e0b\u4e00\u4e2a slot&#xff0c;\u4f46 step&#061;3\/4\/5\/6 \u662f\u5e38\u6001\u3002 \u6211\u539f\u6765\u4ee5\u4e3a\u300c\u4e00\u6761 VM \u6307\u4ee4 &#061; IP&#043;1\u300d&#xff0c;\u88ab\u6253\u8138\u4e86\u3002\u5b9e\u6d4b 0x2fa4d8&#xff1a;ldr w11,[x23]&#xff08;0x19&#xff09;\u2192 add w11,w11,#4 \u2192 str w11,[x23]&#xff08;0x1d&#xff09;&#xff0c;\u7136\u540e smaddl x10, w11, #0x30, base \u7b97\u51fa base &#043; 0x1d*0x30&#xff0c;\u8ddf trace \u5b8c\u5168\u543b\u5408 \u2014\u2014 IP \u786e\u5b9e\u662f 0x30 \u5b57\u8282 slot \u7684\u4e0b\u6807&#xff0c;\u8fd9\u6761\u6307\u4ee4\u5c31\u662f\u5360 4 \u4e2a slot\u3002<\/p>\n<p>\u2461 \u8d1f\u6570 &#061; \u6761\u4ef6\u8df3\u8f6c\u3002 \u62bd\u5230 0x2eae28&#xff0c;\u6b63\u662f\u524d\u9762\u8868\u91cc\u90a3\u4e2a CMP\/BEQ&#xff1a;pre&#061;17, post&#061;6, step&#061;-11&#xff0c;CSEL \u9009\u51fa offset&#061;-12&#xff0c;-12&#043;1&#061;-11 \u5bf9\u4e0a\u300cif(eq) offset&#061;0; IP &#043;&#061; offset&#043;1\u300d\u3002<\/p>\n<p>\u2462 41 \u6761\u300c\u53ea\u5199\u4e0d\u8bfb\u300d\u5168\u662f 0x2ebc2c \u2014\u2014 \u5c31\u662f\u524d\u9762\u90a3\u4e2a RET handler\u3002ldrb w8,[x8,#8]; ldr x8,[x24,x8,lsl#3]; str w8,[x23]&#xff1a;\u628a regs[idx] \u5f53 IP \u5199\u8fdb ctx&#043;0xC&#xff08;\u69fd\u590d\u7528&#xff09;&#xff0c;\u538b\u6839\u4e0d\u8bfb\u65e7 IP\u3002\u5206\u7c7b\u548c\u524d\u9762\u7684\u5206\u6790\u5bf9\u4e0a\u4e86&#xff0c;\u7b97\u662f\u4ea4\u53c9\u9a8c\u8bc1\u3002<\/p>\n<p>\u8fd8\u6709\u4e2a\u503c\u7684\u8bf4\u9053&#xff1a;0x2eae28 \u90a3\u6761\u91cc X23 \u7684\u503c\u662f 0x7853c6aefc&#xff0c;\u800c 0x2e87e8 \u91cc\u662f 0x7853c7e1dc\u3002\u540c\u4e00\u6761 handler \u5728\u4e0d\u540c VM \u8c03\u7528\u91cc&#xff0c;ctx \u57fa\u5740\u662f\u4e0d\u4e00\u6837\u7684 \u2014\u2014 \u6309\u5bc4\u5b58\u5668\u503c\u53bb\u8ba4\u951a\u70b9\u884c\u4e0d\u901a&#xff0c;\u5fc5\u987b\u6309 offset\u3002\u8fd9\u4e2a\u8bbe\u8ba1\u8eb2\u8fc7\u4e00\u5751\u3002<\/p>\n<h4 id=\"msg_header_h3_11\">\u987a\u624b\u6316\u51fa\u6765\u4e00\u4e2a\u5207\u5272 bug<\/h4>\n<p>\u4e0a\u9762\u90a3\u4e2a\u300c1 \u6761\u62ff\u4e0d\u5230\u65b0 IP\u300d\u672c\u6765\u6ca1\u5728\u610f&#xff0c;\u7ed3\u679c\u4e00\u67e5\u5e26\u51fa\u6765\u4e2a\u5927\u7684\u3002<\/p>\n<p>\u5148\u662f\u53d1\u73b0\u4e00\u6279 handler \u53d6\u4e0d\u5230\u503c&#xff08;\u4e00\u5f00\u59cb 38 \u6761&#xff09;&#xff0c;\u8ffd\u4e0b\u53bb\u53d1\u73b0\u5b83\u4eec\u7684 entry_off \u662f 0x2e6778 \u2014\u2014 \u8fd9\u4e0d\u662f handler&#xff0c;\u662f wrapper \u91cc bl vmOneHandler \u7684\u4e0b\u4e00\u6761\u6307\u4ee4\u3002\u628a\u90a3\u6bb5 dump \u51fa\u6765\u66f4\u79bb\u8c31&#xff1a;<\/p>\n<p>depth 4, nlines 376, entry_off 0x2e6778<br \/>\n   0x2e6778 ldr x8, [x19, #0x10]           \u2190 wrapper \u6536\u5c3e<br \/>\n   &#8230;<br \/>\n   0x27264c stp x29, x30, [sp, #-0x50]!    \u2190 \u4e00\u5806\u539f\u751f\u51fd\u6570\u4f53\u6df7\u5728\u91cc\u9762<br \/>\n   &#8230;<br \/>\n   0x2f1858 br x9                          \u2190 \u6700\u540e\u624d\u843d\u5230\u4e00\u4e2a\u771f handler \u7684\u5c3e\u5df4<\/p>\n<p>\u6839\u56e0\u662f**\u300c\u6bb5\u300d\u6ca1\u8ddf\u7740\u8c03\u7528\u6808\u8d70**\u3002current_depth \u53ea\u662f\u4e2a\u8ba1\u6570\u5668 \u2014\u2014 \u5b83\u77e5\u9053\u300c\u73b0\u5728\u5728\u7b2c\u51e0\u5c42 VM\u300d&#xff0c;\u4f46\u4e0d\u77e5\u9053\u300c\u6bcf\u4e00\u5c42\u7684\u6bb5\u4ece\u54ea\u5f00\u59cb\u3001\u65ad\u5728\u54ea\u3001\u8fd4\u56de\u540e\u8be5\u7eed\u5230\u54ea\u300d\u3002\u6bb5\u662f\u4e00\u4e2a\u5168\u5c40 cur_handler&#xff0c;\u6ca1\u6709\u6808\u3002<\/p>\n<p>\u4e24\u4e2a\u5177\u4f53\u7684\u70b9&#xff1a;<\/p>\n<p># \u5d4c\u5957\u8fdb VM \u7684\u65f6\u5019<br \/>\nif off in self.ENTRY:<br \/>\n    self.current_depth &#043;&#061; 1<br \/>\n    self.cur_handler &#061; [inst]     # \u2190 \u5916\u5c42\u5df2\u7ecf\u6512\u597d\u7684\u6307\u4ee4&#xff0c;\u6574\u4e2a\u4e22\u6389<\/p>\n<p># \u9000\u51fa\u7684\u65f6\u5019<br \/>\nif off &#061;&#061; self.EXIT:<br \/>\n    yield self._close(inst, &#034;exit&#034;)<br \/>\n    self.current_depth &#061; max(0, self.current_depth &#8211; 1)<br \/>\n    # \u2190 \u6d41\u56de\u5230\u7684\u662f\u5305\u88c5\u5c42&#xff0c;\u5b83\u5728 depth &gt;&#061; 1 \u91cc&#xff0c;\u4e8e\u662f\u88ab\u5f53\u6210\u65b0 handler \u4ece\u5934\u7d2f\u79ef<\/p>\n<p>\u91cf\u4e86\u4e00\u4e0b&#xff1a;\u5207\u7247\u91cc 46 \u6b21 ENTRY&#xff0c;45 \u6b21\u662f\u5d4c\u5957\u89e6\u53d1\u7684&#xff0c;\u6bcf\u6b21\u4e22\u6389\u7684\u6bb5\u957f 57~1997 \u6761\u6307\u4ee4\u3002\u4e5f\u5c31\u662f\u8bf4\u5927\u6279 handler \u7684\u5934&#xff08;\u542b ldr w9,[x23] \u90a3\u4e00\u6bb5&#xff09;\u90fd\u662f\u88ab\u4e22\u6389\u7684&#xff0c;\u5269\u4e0b\u7684\u5c3e\u5df4\u88ab\u7c98\u8fdb\u5047\u6bb5\u91cc\u3002<\/p>\n<p>\u4fee\u6cd5\u5f88\u7b80\u5355&#xff0c;\u6bb5\u5165\u6808&#xff1a;<\/p>\n<p># ENTRY<br \/>\nself.frames.append(self.cur_handler)   # \u6302\u8d77\u5916\u5c42\u6bb5<br \/>\nself.cur_handler &#061; [inst]<br \/>\n# EXIT<br \/>\nyield self._close(inst, &#034;exit&#034;)<br \/>\nself.current_depth &#061; max(0, self.current_depth &#8211; 1)<br \/>\nself.cur_handler &#061; self.frames.pop() if self.frames else []<\/p>\n<p>\u4fee\u5b8c&#xff1a;<\/p>\n<p>\u6bb5\u6570 &#061; 49243        \u552f\u4e00 entry &#061; 264<br \/>\n\u7ed3\u675f\u65b9\u5f0f &#061; {&#039;dispatch&#039;: 49202, &#039;exit&#039;: 41}<br \/>\n\u5047\u6bb5 0x2e6778 &#061; 0     (\u4fee\u524d 37)<br \/>\n\u53d6\u4e0d\u5230\u503c     &#061; 1     (\u4fee\u524d 38)<\/p>\n<p>\u5305\u88c5\u5c42\u90a3\u51e0\u6761\u4f1a\u7eed\u8fdb\u5916\u5c42 handler \u7684\u6bb5 \u2014\u2014 \u8fd9\u662f\u5bf9\u7684&#xff1a;\u5916\u5c42 handler \u672c\u6765\u5c31\u662f bl \u5230 VM \u5165\u53e3\u7684&#xff0c;\u6298\u53e0\u5c42\u4f1a\u628a\u5b83\u4eec\u8fde\u540c\u88ab\u8c03\u7684\u6574\u4e2a\u51fd\u6570\u4f53\u6298\u8fdb\u90a3\u4e2a\u8c03\u7528\u8282\u70b9\u7684 body&#xff0c;\u4e0d\u8fdb main\u3002<\/p>\n<h4 id=\"msg_header_h3_12\">\u6700\u540e\u4e00\u6761\u6f0f\u7f51\u7684<\/h4>\n<p>\u4fee\u5b8c\u8fd8\u5269 1 \u6761&#xff0c;0x2e837c\u3002\u5b83\u662f\u771f handler&#xff0c;\u53ea\u662f\u4e0d\u8d70 x23&#xff1a;<\/p>\n<p>0x2e8380  ldr x9, [x19, #0x10]      ; ctx&#043;0x10 &#061; \u8c03\u7528\u94fe\u6062\u590d\u6307\u9488<br \/>\n0x2e8388  ldr w9, [x9, #0xc]        ; \u8bfb\u5185\u5c42 ctx \u7684 IP<br \/>\n0x2e838c  sub w8, w8, w9            ; regs[idx] &#8211; \u5185\u5c42IP<br \/>\n0x2e8390  add w9, w8, #0x3          ; \u2510 \u8d1f\u6570\u5411\u96f6\u53d6\u6574\u7684\u8865\u507f<br \/>\n0x2e8394  cmp w8, #0x0              ; \u2502<br \/>\n0x2e8398  csel w8, w9, w8, lt       ; \u2518<br \/>\n0x2e83a0  asr w10, w8, #2           ; \/4<br \/>\n0x2e83ac  str w10, [x19, #0xc]      ; \u2605 \u5199 IP&#xff1a;x19(ctx \u57fa\u5740) &#043; 0xc<\/p>\n<p>[x23] \u548c [x19, #0xc] \u662f\u540c\u4e00\u4e2a\u69fd\u7684\u4e24\u79cd\u5bfb\u5740 \u2014\u2014 x23 \u5c31\u662f ctx&#043;0xC \u7684\u6307\u9488\u3002\u8fd9\u6761 handler \u8d70\u7684\u662f\u540e\u8005&#xff0c;\u6240\u4ee5 x23 \u7684\u79cd\u5b50\u626b\u4e0d\u5230\u5b83\u3002<\/p>\n<p>\u8986\u76d6\u60c5\u51b5&#xff08;2M \u884c\u5207\u7247&#xff09;&#xff1a;<\/p>\n<p>(\u5199[x23], \u5199[x19,#0xc])<br \/>\n  (True, False): 46898<br \/>\n  (False, True):      1<\/p>\n<p>\u5207\u7247\u91cc\u5c31\u8fd9\u4e00\u79cd handler \u8d70 x19 \u8def\u5f84&#xff0c;\u800c\u4e14\u53ea\u8dd1\u8fc7 1 \u6b21\u3002\u8981\u8986\u76d6\u5b83\u5f97\u8ba9\u6807\u8bb0\u51fd\u6570\u8ba4\u300c\u5730\u5740 &#061; INT_ADD ctx, 0xc\u300d\u8fd9\u4e2a\u5f62\u72b6&#xff08;\u7b49\u4e8e\u7ed9\u8272\u5f69\u52a0\u504f\u79fb\u91cf&#xff09;&#xff0c;\u4e3a\u4e00\u4e2a\u8dd1 1 \u6b21\u7684 handler \u52a0\u8fd9\u5957\u4e0d\u5212\u7b97&#xff0c;\u5148\u6302\u7740\u3002<\/p>\n<p>\u5012\u662f\u5b83\u90a3\u4e2a \/4 \u503c\u5f97\u8bb0\u4e00\u7b14&#xff1a;\u5c3e\u5df4 dispatch \u7528\u7684\u662f IP * 0x30&#xff0c;\u8fd9\u91cc\u662f \/4&#xff0c;\u8bf4\u660e\u5b83\u7b97\u76ee\u6807\u8d70\u7684\u662f\u53e6\u4e00\u5957\u5bfb\u5740\u7ea6\u5b9a\u3002\u6837\u672c\u592a\u5c11&#xff0c;\u7b49\u5199\u5230 CF \u7c7b\u8bed\u4e49\u518d\u56de\u5934\u770b\u3002<\/p>\n<h4 id=\"msg_header_h3_13\">\u64cd\u4f5c\u6570\u7ebf&#xff1a;\u4ece STORE \u53cd\u5411\u5207\u7247<\/h4>\n<p>x23 \u90a3\u6761\u7ebf\u5b9a\u7684\u662f\u63a7\u5236\u6d41&#xff0c;x24\/x26\/x27 \u8fd9\u4e09\u6761\u5b9a\u7684\u662f\u64cd\u4f5c\u6570\u3002\u52a8\u624b\u4e4b\u524d\u6211\u4ee5\u4e3a\u5f97\u987a\u7740\u6307\u4ee4\u5f80\u4e0b\u63a8 \u2014\u2014 \u4ece handler \u5934\u5f00\u59cb&#xff0c;\u770b\u5b83\u4e00\u6b65\u6b65\u7b97\u51fa\u4ec0\u4e48\u3002\u771f\u5199\u8d77\u6765\u53d1\u73b0\u5f97\u53cd\u7740\u8d70&#xff1a;\u4ece\u5199\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6\u7684 STORE \u8d77&#xff0c;\u5f80\u4e0a\u6e38\u8ddf def-use\u3002<\/p>\n<p>\u7406\u7531\u5f88\u7b80\u5355&#xff1a;\u4e00\u6761 VM \u6307\u4ee4\u7684\u7ed3\u679c\u5c31\u843d\u5728\u90a3\u51e0\u4e2a STORE \u4e0a\u3002\u5f80\u524d\u63a8\u662f\u53d1\u6563\u7684&#xff08;\u4e00\u6761\u6307\u4ee4\u5199\u51e0\u4e2a\u69fd&#xff0c;\u6bcf\u4e2a\u69fd\u7684\u503c\u53c8\u5404\u6709\u4e00\u5806\u4e2d\u95f4\u91cf&#xff09;&#xff0c;\u5f80\u56de\u8ffd\u662f\u6536\u655b\u7684&#xff08;\u6bcf\u4e2a varnode \u53ea\u6709\u4e00\u5904\u5b9a\u4e49&#xff09;\u3002<\/p>\n<p>\u4e24\u6761\u7ebf&#xff1a;<\/p>\n<ul>\n<li>\u7d22\u5f15\u7ebf &#061; STORE \u7684\u5730\u5740\u64cd\u4f5c\u6570 \u2014\u2014 \u5199\u8fdb\u54ea\u4e2a\u69fd<\/li>\n<li>\u503c\u7ebf &#061; STORE \u7684\u7b2c 3 \u4e2a\u64cd\u4f5c\u6570 \u2014\u2014 \u5199\u4e86\u4ec0\u4e48<\/li>\n<\/ul>\n<p>p-code \u4e0d\u662f\u4e25\u683c SSA&#xff08;\u5bc4\u5b58\u5668\u69fd\u53cd\u590d\u5199\u3001unique \u69fd\u8de8\u6307\u4ee4\u590d\u7528&#xff09;&#xff0c;\u4f46\u5757\u5185\u662f\u987a\u5e8f\u8bed\u4e49&#xff1a;\u300cuse \u4e4b\u524d\u6700\u540e\u4e00\u6b21\u5199\u300d\u5c31\u662f\u5b83\u7684 def\u3002\u6240\u4ee5\u53cd\u5411\u8d70\u662f\u786e\u5b9a\u7684&#xff0c;\u4e0d\u7528\u89e3\u6570\u636e\u6d41\u65b9\u7a0b\u7ec4\u3002<\/p>\n<p>def _defs(self, shir):        # varnode -&gt; [(op \u5e8f\u53f7, op), &#8230;]<br \/>\ndef _def_before(defs, key, pos):   # \u4e8c\u5206\u627e use \u4e4b\u524d\u90a3\u4e00\u6b21\u5199; \u627e\u4e0d\u5230 &#061; \u8fd9\u4e2a varnode \u662f\u6839<\/p>\n<h5>\u5f71\u5b50\u6c42\u503c&#xff1a;\u503c\u4ece\u54ea\u6765<\/h5>\n<p>\u5207\u7247\u672c\u8eab\u53ea\u8981\u7ed3\u6784&#xff0c;\u4f46\u540e\u9762\u7684\u6298\u53e0\u8981\u503c\u3002\u503c\u8fd8\u662f\u8d70\u5f71\u5b50\u8f68\u9053\u90a3\u4e00\u5957&#xff0c;\u4e09\u6863&#xff1a;<\/p>\n<table>\n<tr>\u6765\u6e90\u600e\u4e48\u53d6<\/tr>\n<tbody>\n<tr>\n<td>\u5bc4\u5b58\u5668<\/td>\n<td>trace \u8bfb\/\u5199\u5217\u5c31\u662f\u5730\u9762\u771f\u503c&#xff0c;\u4e0d\u7b97<\/td>\n<\/tr>\n<tr>\n<td>unique<\/td>\n<td>\u6309\u7b97\u5b50\u8bed\u4e49\u63a8&#xff08;\u52a0\/\u51cf\/\u4e0e\/\u6216\/\u79fb\u4f4d\/\u53d6\u7b26\u53f7\u90a3\u51e0\u4e2a&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>LOAD<\/td>\n<td>\u8bfb\u7684\u662f\u5185\u5b58&#xff0c;trace \u4e0d\u8bb0 \u2014\u2014 \u53ea\u80fd\u53cd\u67e5&#xff1a;\u540c\u4e00\u6761\u6307\u4ee4\u5185\u8c01\u8bfb\u4e86\u5b83\u3001\u53c8\u5199\u8fdb\u5bc4\u5b58\u5668&#xff0c;\u90a3\u4e2a\u5bc4\u5b58\u5668\u7684\u5199\u5217\u5c31\u662f\u8bfb\u51fa\u6765\u7684\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53cd\u67e5\u90a3\u6761\u8981\u6309 LOAD \u81ea\u5df1\u7684\u5bbd\u5ea6\u622a\u65ad&#xff08;\u540e\u9762 sext \u4e86\u4e0d\u7b97&#xff09;&#xff0c;\u5426\u5219 ldrsh \u8bfb\u51fa\u6765\u7684 u16 \u4f1a\u5e26\u7740\u7b26\u53f7\u6269\u5c55\u3002<\/p>\n<h5>\u5361\u70b9&#xff1a;\u4f4d\u62fc\u88c5\u80fd\u5410\u51fa\u4e00\u5835\u5899<\/h5>\n<p>\u7b2c\u4e00\u6761\u80fd\u8dd1\u7684 handler \u662f\u5e72\u51c0\u7684&#xff0c;\u4e24\u884c\u5c31\u5b8c\u4e86\u3002\u6362\u4e00\u4e2a\u5c31\u5d29\u4e86 \u2014\u2014 0x2ea7cc \u76f4\u63a5\u5410\u51fa\u6765\u4e00\u68f5\u51e0\u767e\u4e2a\u8282\u70b9\u7684\u6811&#xff1a;<\/p>\n<p>v[(((bc[&#043;0x8] &amp; ~(0xffffff)) | (((bc[&#043;0x8] &amp; ~(0xff0000)) | (((bc[&#043;0xa] &gt;&gt; 0x10) |<br \/>\n(bc[&#043;0xa] &lt;&lt; (0x20 &#8211; 0x10))) &amp; 0xff0000)) &amp; 0xffffff)) &gt;&gt; 0x10)] &#061; sext((v[(((((&#8230;<\/p>\n<p>SLEIGH \u628a BFI W8, W9, #16, #8 \u5c55\u6210 (dst &amp; ~mask) | (rot(src) &amp; mask)&#xff0c;\u518d\u53e0\u4e0a UBFX\/LSR \u7684\u63d0\u53d6&#xff0c;\u4e00\u6761\u6307\u4ee4\u81a8\u80c0\u6210\u51e0\u5341\u4e2a\u7b97\u7b26\u3002\u8fd9\u4e9b\u79fb\u4f4d\/\u63a9\u7801\u662f\u89e3\u7801\u5934 \u2014\u2014 \u628a\u5b57\u8282\u4ece\u5b57\u8282\u7801\u91cc\u6311\u51fa\u6765\u6309\u4f4d\u62fc\u6210\u64cd\u4f5c\u6570&#xff0c;\u4e0d\u662f VM \u8bed\u4e49\u3002\u4e0d\u6298\u7684\u8bdd&#xff0c;IR \u5c31\u662f\u8fd9\u5835\u5899\u3002<\/p>\n<h5>\u89e3\u6cd5&#xff1a;\u8ffd\u5b57\u8282\u9053<\/h5>\n<p>\u4e0d\u731c\u3001\u4e5f\u4e0d\u5199\u89c4\u5219\u8868&#xff0c;\u7528 trace \u503c\u672c\u8eab\u5f53\u5224\u636e&#xff1a;\u7b97\u5f0f\u7684\u7b2c k \u5b57\u8282\u662f\u4ece\u54ea\u4e2a\u5185\u5b58\u5b57\u8282\u6765\u7684\u3002\u4f4d\u5bf9\u9f50&#xff08;\u6574\u5b57\u8282\u7684\u79fb\u4f4d\/\u63a9\u7801&#xff09;\u624d\u8ffd\u5f97\u52a8&#xff0c;\u8ffd\u4e0d\u52a8\u5c31\u4e0d\u6298\u3002<\/p>\n<p># \u5b57\u8282\u9053\u6765\u5386: {\u8f93\u51fa\u7b2c k \u5b57\u8282: (\u7a7a\u95f4, \u5730\u5740, \u8be5\u5b57\u8282\u503c)}<br \/>\n# \u7a7a\u95f4\u662f &#034;bc&#034;\/&#034;ctx&#034;(\u5730\u5740\u662f\u5b57\u8282\u504f\u79fb) \u6216 &#034;*&#034;(\u5730\u5740\u662f\u4e2a\u5730\u5740\u8282\u70b9 \u2014\u2014 \u64cd\u4f5c\u6570\u662f\u4ece\u5b57\u8282\u7801\u91cc<br \/>\n# \u7684\u6307\u9488\u53d6\u51fa\u6765\u7684), &#034;c&#034; \u8868\u793a\u8fd9\u4e00\u9053\u662f\u5e38\u91cf<\/p>\n<p>\u63a9\u7801\/\u6216\/\u79fb\u4f4d\u6309\u5b57\u8282\u9010\u9053\u63a8&#xff1a;&amp; mask \u63a9\u6389\u7684\u9053\u662f\u6052 0\u3001\u6574\u5b57\u8282\u4fdd\u7559\u7684\u9053\u8ddf\u7740\u8d70\u3001\u534a\u5b57\u8282\u8de8\u7b97\u7684\u4e0d\u8ffd&#xff1b;&gt;&gt; 8n \u628a\u9053\u6574\u4f53\u632a\u4e0b\u6765&#xff1b;| \u4e24\u9053\u5408\u4e00&#xff0c;\u4e00\u8fb9\u662f\u5e38\u91cf 0 \u5c31\u8ba9\u53e6\u4e00\u8fb9\u8fc7\u3002<\/p>\n<p>\u591f\u4e0d\u591f\u683c\u6298\u6210&#034;\u8bfb&#034;&#xff0c;\u4e09\u6761\u5224\u636e\u7f3a\u4e00\u4e0d\u53ef&#xff1a;<\/p>\n<li>\u6070\u597d\u4e00\u6761\u5185\u5b58\u6765\u5904 \u2014\u2014 \u4e24\u6761\u4ee5\u4e0a\u5c31\u662f\u62fc\u51fa\u6765\u7684\u5b57\u8282&#xff0c;\u4e0d\u662f\u5728\u63d0\u53d6<\/li>\n<li>\u843d\u5728\u7b2c 0 \u9053\u4e0a \u2014\u2014 \u843d\u5728\u522b\u7684\u9053\u4e0a\u8bf4\u660e\u662f\u300c\u642c\u4e86\u4f4d\u7f6e\u300d<\/li>\n<li>\u503c\u4e5f\u7b49\u4e8e\u5b83 \u2014\u2014 \u4f4d\u7f6e\u5bf9\u4e86\u4f46\u503c\u53d8\u5f62&#xff08;\u63a9\u6389\u534a\u622a&#xff09;\u7684\u4e0d\u7b97<\/li>\n<p>\u4e24\u4e2a\u5751\u90fd\u503c\u5f97\u8bb0&#xff1a;<\/p>\n<p>\u2460 \u53ea\u6bd4\u503c\u4f1a\u8ba4\u9519\u5b57\u8282\u3002 0x2ea7cc \u8fd9\u6b21 W8 &amp; 0xff \u548c W8 &gt;&gt; 16 \u90fd\u7b49\u4e8e 0x14 \u2014\u2014 \u5b57\u8282 &#043;8 \u548c\u5b57\u8282 &#043;0xa \u6070\u597d\u540c\u503c&#xff0c;\u62ff\u503c\u53bb\u649e\u5019\u9009\u5c31\u649e\u5230\u522b\u7684\u5b57\u8282\u4e0a\u4e86\u3002\u6240\u4ee5\u987a\u5e8f\u5fc5\u987b\u662f\u5148\u7531\u6765\u5386\u5b9a\u662f\u54ea\u4e2a\u5b57\u8282&#xff0c;\u503c\u53ea\u505a\u786e\u8ba4\u3002<\/p>\n<p>\u2461 \u6765\u5386\u76f8\u540c \u2260 \u4f4d\u7f6e\u76f8\u540c\u3002 \u7b2c 2 \u6761\u5224\u636e\u5c31\u662f\u8fd9\u4e48\u6765\u7684&#xff1a;u16[&#043;8] &lt;&lt; 8 \u7684\u5b57\u8282 0 \u4e5f\u6765\u81ea &#043;8&#xff0c;\u4f46\u90a3\u662f\u79fb\u4f4d\u4e0d\u662f\u63d0\u53d6\u3002\u8fd9\u4e2a\u662f\u5728 0x2fdaf0 \u4e0a\u6293\u5230\u7684 \u2014\u2014 \u90a3\u6b21\u5b57\u8282\u503c\u6070\u597d\u662f 0&#xff0c;\u53ea\u9760\u503c\u6bd4\u5bf9\u5224\u4e0d\u51fa\u6765&#xff08;0 \u548c 0 \u76f8\u7b49&#xff09;&#xff0c;\u53ea\u80fd\u9760&#034;\u843d\u5728\u54ea\u4e00\u9053&#034;\u3002<\/p>\n<p>\u6298\u5b8c\u5c31\u662f\u624b\u753b\u7684\u90a3\u68f5\u6811&#xff1a;<\/p>\n<p>VREG[0x14] &#061; sext((VREG[0xb] &gt;&gt; (VREG[0x14] &amp; 0x1f))) | 0xa4<\/p>\n<p>&#xff08;| 0xa4 \u662f\u56de\u5199\u540e\u7684 IP&#xff0c;\u89c1\u4e0b\u9762 IR \u90a3\u6bb5\u3002&#xff09;<\/p>\n<h5>IR \u957f\u4ec0\u4e48\u6837<\/h5>\n<p>\u4e2d\u95f4\u6362\u8fc7\u51e0\u7248\u5f62\u6001&#xff08;\u8bed\u4e49\u6458\u8981 &#043; \u8868\u8fbe\u5f0f\u6811 \u2192 \u9010\u6307\u4ee4\u5de6\u53f3\u5bf9\u7167 \u2192 \u53ea\u8981 IR&#xff09;&#xff0c;\u6700\u540e\u5b9a\u4e0b\u6765\u662f\u4e00\u6761 VM \u6307\u4ee4\u4e00\u884c&#xff1a;<\/p>\n<p>VREG[0x1] &#061; (VREG[0x1] &#043; -0x4a0) | 0x1<br \/>\nVREG[0x6] &#061; *(VREG[0x5] &#043; 0xc) | 0xf<br \/>\n*(VREG[0x1] &#043; 0x498) &#061; VREG[0x3] | 0x3<\/p>\n<p>\u51e0\u6761\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6\u4e09\u5957\u540d\u5b57&#xff1a;VREG&#xff08;\u6574\u6570&#xff0c;x24&#xff09;\u3001FREG&#xff08;\u6d6e\u70b9&#xff0c;x26&#xff0c;4 \u5b57\u8282\u6b65\u957f&#xff09;\u3001DREG&#xff08;\u53cc\u7cbe\u5ea6&#xff0c;x27&#xff0c;8 \u5b57\u8282\u6b65\u957f&#xff09;\u3002x25 \u662f handler \u8868&#xff0c;\u6545\u610f\u4e0d\u79cd\u3002<\/li>\n<li>\u69fd\u53f7\u5199\u5b9e\u4f8b\u503c&#xff08;VREG[0x14]&#xff09;\u2014\u2014 \u69fd\u53f7\u672c\u8eab\u5c31\u662f\u8fd9\u6761\u6307\u4ee4\u7684\u64cd\u4f5c\u6570\u3002<\/li>\n<li>\u89e3\u5f15\u7528\u4e0d\u6298&#xff1a;*(VREG[0x5] &#043; 0xc) \u6298\u4e86\u64cd\u4f5c\u5c31\u6ca1\u4e86\u3002sext(*(&#8230;)) \u540c\u7406\u3002<\/li>\n<li>\u5b50\u6811\u91cc\u6ca1\u6709\u8bfb&#xff08;\u6ca1\u6709 VREG \u8bfb\u3001\u6ca1\u6709\u89e3\u5f15\u7528&#xff09;\u7684\u5f0f\u5b50\u6574\u4f53\u7b97\u6210\u4e00\u4e2a\u6570&#xff0c;\u8d1f\u6570\u5199\u6210 -0x4a0&#xff1a;sext(0xfb60) \u5c31\u662f\u8fd9\u4e48\u53d8\u6210 -0x4a0 \u7684&#xff08;ldrsh \u8bfb\u51fa\u6765\u7684 16 \u4f4d\u539f\u6587&#xff0c;\u7b26\u53f7\u6269\u5c55\u540e\u662f\u8d1f\u504f\u79fb&#xff09;\u3002<\/li>\n<li>\u5199 vPC \u7684\u90a3\u6761 STORE \u4e0d\u5360\u884c&#xff0c;\u5b83\u662f\u884c\u5c3e\u7684 | ip\u3002<\/li>\n<\/ul>\n<h5>\u5361\u70b9&#xff1a;\u79cd\u5b50\u592a\u7a84&#xff0c;\u6f0f\u6389\u4e00\u6574\u7c7b handler<\/h5>\n<p>\u4e0a\u9762\u90a3\u884c *(VREG[0x1] &#043; 0x498) &#061; VREG[0x3] \u662f\u540e\u6765\u624d\u6709\u7684\u3002\u4e2d\u95f4\u6709\u4e2a handler \u8ba9\u6211\u4e00\u5ea6\u6000\u7591\u53cd\u5411\u662f\u9519\u7684&#xff1a;<\/p>\n<p>0x2e8e40  ldr   w9, [x23]              ; IP<br \/>\n0x2e8e4c  ldrb  w10, [x8, #8]          ; \u6e90\u865a\u62df\u5bc4\u5b58\u5668\u53f7<br \/>\n0x2e8e54  ldrb  w13, [x8, #9]          ; \u76ee\u6807\u865a\u62df\u5bc4\u5b58\u5668\u53f7<br \/>\n0x2e8e58  ldrsh x14, [x8, #0xa]        ; \u504f\u79fb<br \/>\n0x2e8e64  ldr   x10, [x24, x10, lsl#3] ; x10 &#061; VREG[\u6e90] \u7684\u503c&#xff08;\u4e00\u4e2a\u6307\u9488&#xff09;<br \/>\n0x2e8e68  ldr   x12, [x24, x13, lsl#3] ; x12 &#061; VREG[\u76ee\u6807] \u7684\u503c<br \/>\n0x2e8e74  str   x12, [x10, x14]        ; \u2605 \u5f80\u5185\u5b58\u5199, \u4e0d\u662f\u5f80 x24 \u5199<\/p>\n<p>\u5b83\u4e00\u4e2a\u5b57\u8282\u90fd\u4e0d\u843d x24 \u2014\u2014 \u8fd9\u662f VM \u7684 store \u6307\u4ee4&#xff1a;\u628a VREG[\u76ee\u6807] \u5199\u8fdb\u300cVREG[\u6e90] \u6307\u5411\u7684\u5bf9\u8c61 &#043; \u504f\u79fb\u300d\u3002\u6211\u539f\u6765\u628a\u79cd\u5b50\u5b9a\u6210\u300c\u5199 x24 \u7684 STORE\u300d&#xff0c;\u8fd9\u4e00\u6574\u7c7b\u5168\u88ab\u8fc7\u6ee4\u6389\u4e86&#xff0c;\u770b\u8d77\u6765\u5c31\u50cf&#034;\u8fd9\u6761 handler \u6ca1\u7b97\u4e1c\u897f&#034;\u3002<\/p>\n<p>\u7ed3\u8bba\u662f&#xff1a;\u53cd\u5411\u6ca1\u95ee\u9898&#xff0c;\u662f\u79cd\u5b50\u592a\u7a84\u3002 \u79cd\u5b50\u5e94\u8be5\u662f\u6240\u6709 STORE \u2014\u2014 \u5199\u865a\u62df\u5bc4\u5b58\u5668\u6587\u4ef6\u548c\u5199\u5185\u5b58\u90fd\u662f\u300c\u8fd9\u6761 VM \u6307\u4ee4\u5e72\u4e86\u4ec0\u4e48\u300d&#xff1b;\u8bfb&#xff08;load&#xff09;\u672c\u6765\u5c31\u4f1a\u5728\u503c\u8868\u8fbe\u5f0f\u91cc\u88ab\u53cd\u5411\u5e26\u51fa\u6765&#xff0c;\u4e0d\u7528\u5355\u72ec\u6536\u3002<\/p>\n<p>\u6539\u5b8c\u4e4b\u540e\u5b83\u51fa\u6765\u7684\u662f&#xff1a;<\/p>\n<p>*(VREG[0x1] &#043; 0x498) &#061; VREG[0x3] | 0x3<\/p>\n<p>\u62ff trace \u5bf9&#xff1a;ldrb w10,[x8,#8]&#061;1&#xff08;\u6e90&#xff09;\u3001ldrb w13,[x8,#9]&#061;3&#xff08;\u76ee\u6807&#xff09;\u3001ldrsh x14,[x8,#0xa]&#061;0x498\u3001X10&#061;0x6d9da72d60&#061;VREG[1]\u3001X12&#061;0x0&#061;VREG[3]&#xff0c;\u5168\u5bf9\u4e0a\u3002<\/p>\n<h5>\u5b9e\u6d4b<\/h5>\n<p>\u5168\u91cf 749 \u4e07\u884c trace \u8dd1\u4e00\u904d&#xff1a;<\/p>\n<p>\u6bb5\u6570 &#061; 232281        \u552f\u4e00 entry &#061; 266<br \/>\n\u6bcf\u4e2a entry \u90fd\u6709 IR&#xff08;2~6 \u884c&#xff0c;\u5408\u8ba1 875 \u884c&#xff09;<br \/>\n\u5f02\u5e38 0      \u6e32\u67d3\u649e\u4e0a\u9650 0<\/p>\n<p>\u300c\u6bcf\u4e2a entry \u90fd\u6709\u300d\u8fd9\u53e5\u662f\u653e\u5bbd\u79cd\u5b50\u4e4b\u540e\u624d\u6210\u7acb\u7684&#xff1a;\u4e4b\u524d\u6709 15 \u4e2a entry \u4e00\u884c\u90fd\u6253\u4e0d\u51fa\u6765&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u662f\u7eaf\u5199\u5185\u5b58\u7684&#xff08;\u4e00\u4e2a\u5b57\u8282\u4e0d\u843d x24&#xff09;\u2014\u2014 \u79cd\u5b50\u4e00\u653e\u5bbd&#xff0c;\u8fd9 15 \u4e2a\u5168\u51fa\u6765\u4e86&#xff0c;\u6b63\u597d\u8865\u4e0a 266 \u8fd9\u4e2a\u6570\u3002<\/p>\n<p>40 \u4e07\u884c\u62bd\u6837\u90a3\u8d9f\u4e5f\u987a\u624b\u91cf\u4e86&#xff1a;4567 \u4e2a\u5e26 IR \u7684\u6bb5\u300112003 \u884c IR\u30010 \u6761\u8868\u8fbe\u5f0f\u649e\u4e0a\u9650 \u2014\u2014 \u6298\u53e0\u628a\u4f4d\u62fc\u88c5\u771f\u7684\u6536\u5e72\u51c0\u4e86&#xff0c;\u4e0d\u662f\u9760\u622a\u65ad\u906e\u4e11\u3002<\/p>\n<p>\u6700\u540e\u662f\u90a3\u4e2a\u611f\u609f\u7684\u5f15\u5b50&#xff0c;\u4e00\u5c4f IR \u91cc\u89c4\u5f8b\u81ea\u5df1\u5f80\u5916\u5192&#xff1a;<\/p>\n<p>*(VREG[0x1] &#043; 0x498) &#061; VREG[0x3]  | 0x3<br \/>\n*(VREG[0x1] &#043; 0x490) &#061; VREG[0x4]  | 0x4<br \/>\n*(VREG[0x1] &#043; 0x488) &#061; VREG[0x1b] | 0x5<br \/>\n*(VREG[0x1] &#043; 0x480) &#061; VREG[0x1a] | 0x6<\/p>\n<p>\u504f\u79fb\u6bcf\u6b21 \u22128\u3001\u6e90\u69fd\u53f7\u9012\u51cf \u2014\u2014 \u4e00\u4e2a\u7ed3\u6784\u4f53\u5b57\u6bb5\u7684\u6279\u91cf\u642c\u8fd0&#xff0c;\u5c55\u5f00\u6210\u76f4\u7ebf IR \u4e4b\u540e\u89c4\u5f8b\u81ea\u5df1\u6d6e\u51fa\u6765\u4e86\u3002\u540c\u7406 (*(0x70173276a8) &#043; 0x0\/0xe0\/0x140) \u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\u7684\u5b57\u6bb5\u8bbf\u95ee&#xff1a;\u57fa\u5740\u4e00\u6837\u3001\u5e38\u91cf\u504f\u79fb\u4e0d\u540c\u3002<\/p>\n<p>\u987a\u7740\u8fd9\u4e2a\u518d\u5f80\u4e0b\u8d70\u4e00\u6b65\u5c31\u5f88\u81ea\u7136&#xff1a;\u73b0\u5728\u884c\u5c3e\u53ea\u6709\u4e00\u4e2a IP&#xff08;\u56de\u5199\u540e\u7684&#xff09;&#xff0c;\u628a\u53d6\u51fa\u6765\u90a3\u4e2a pre \u4e5f\u5e26\u4e0a\u5199\u6210 0x2 -&gt; 0x3&#xff0c;\u8fd9 23 \u4e07\u884c IR \u5c31\u4e0d\u518d\u662f\u5b64\u7acb\u7247\u6bb5&#xff0c;\u800c\u662f VM \u5c42\u7684\u6267\u884c\u5e8f\u5217 \u2014\u2014 IP&#043;1 \u662f\u987a\u5e8f\u3001\u8df3\u53d8\u662f\u5206\u652f\u3001\u56de\u8df3\u662f\u5faa\u73af&#xff0c;CFG \u548c\u5faa\u73af\u8fb9\u754c\u81ea\u5df1\u5c31\u6389\u51fa\u6765\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7279\u522b\u8bf4\u660e&#xff1a;\u672c\u5e16\u4e0d\u63d0\u4f9b\u4e00\u952e\u8131\u58f3\u6216\u8fc7\u68c0\u6d4b\u4ee3\u7801&#xff0c;\u4ec5\u516c\u5f00\u6211\u5728\u8fd8\u539f VMP \u865a\u62df\u673a\u6267\u884c\u6846\u67b6\u65f6\u7684\u5bc4\u5b58\u5668\u951a\u5b9a\u65b9\u6cd5\u8bba\u548c IR \u63d0\u5347\u8fc7\u7a0b\u4e2d\u7684\u5361\u70b9\u3002\u6211\u77e5\u9053\u5b83\u4e0d\u5b8c\u6574&#xff0c;\u4f46\u5e02\u9762\u4e0a\u516c\u5f00\u8d44\u6599\u91cc&#xff0c;\u5927\u591a\u6570\u8fd8\u662f\u5728\u8bb2 handler \u548c\u5b57\u8282\u7801&#xff0c;\u624b\u52a8\u5206\u6790\u4f9d\u65e7\u662f VMP \u65b9\u9762\u7684\u5185\u5bb9\u4f46 VMP \u4e5f\u786e\u5b9e\u662f\u4e00\u4e2a\u96be\u70b9&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u65e0\u9650\u53d8\u4f53&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u601d\u8def&#xff0c;\u8fd8\u662f\u5148\u6765\u56de\u987e\u4e00\u4e0bUnpacking Virtualizatio<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11820,99,87,427],"topic":[],"class_list":["post-112753","post","type-post","status-publish","format-standard","hentry","category-server","tag-atomgit","tag-java","tag-87","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/112753.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7279\u522b\u8bf4\u660e&#xff1a;\u672c\u5e16\u4e0d\u63d0\u4f9b\u4e00\u952e\u8131\u58f3\u6216\u8fc7\u68c0\u6d4b\u4ee3\u7801&#xff0c;\u4ec5\u516c\u5f00\u6211\u5728\u8fd8\u539f VMP \u865a\u62df\u673a\u6267\u884c\u6846\u67b6\u65f6\u7684\u5bc4\u5b58\u5668\u951a\u5b9a\u65b9\u6cd5\u8bba\u548c IR \u63d0\u5347\u8fc7\u7a0b\u4e2d\u7684\u5361\u70b9\u3002\u6211\u77e5\u9053\u5b83\u4e0d\u5b8c\u6574&#xff0c;\u4f46\u5e02\u9762\u4e0a\u516c\u5f00\u8d44\u6599\u91cc&#xff0c;\u5927\u591a\u6570\u8fd8\u662f\u5728\u8bb2 handler \u548c\u5b57\u8282\u7801&#xff0c;\u624b\u52a8\u5206\u6790\u4f9d\u65e7\u662f VMP \u65b9\u9762\u7684\u5185\u5bb9\u4f46 VMP \u4e5f\u786e\u5b9e\u662f\u4e00\u4e2a\u96be\u70b9&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u65e0\u9650\u53d8\u4f53&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u601d\u8def&#xff0c;\u8fd8\u662f\u5148\u6765\u56de\u987e\u4e00\u4e0bUnpacking Virtualizatio\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/112753.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-04T11:49:05+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"27 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112753.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/112753.html\",\"name\":\"dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-04T11:49:05+00:00\",\"dateModified\":\"2026-10-04T11:49:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/112753.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/112753.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112753.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"dy\u4e03\u795e\u534f\u8bae\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/112753.html","og_locale":"zh_CN","og_type":"article","og_title":"dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7279\u522b\u8bf4\u660e&#xff1a;\u672c\u5e16\u4e0d\u63d0\u4f9b\u4e00\u952e\u8131\u58f3\u6216\u8fc7\u68c0\u6d4b\u4ee3\u7801&#xff0c;\u4ec5\u516c\u5f00\u6211\u5728\u8fd8\u539f VMP \u865a\u62df\u673a\u6267\u884c\u6846\u67b6\u65f6\u7684\u5bc4\u5b58\u5668\u951a\u5b9a\u65b9\u6cd5\u8bba\u548c IR \u63d0\u5347\u8fc7\u7a0b\u4e2d\u7684\u5361\u70b9\u3002\u6211\u77e5\u9053\u5b83\u4e0d\u5b8c\u6574&#xff0c;\u4f46\u5e02\u9762\u4e0a\u516c\u5f00\u8d44\u6599\u91cc&#xff0c;\u5927\u591a\u6570\u8fd8\u662f\u5728\u8bb2 handler \u548c\u5b57\u8282\u7801&#xff0c;\u624b\u52a8\u5206\u6790\u4f9d\u65e7\u662f VMP \u65b9\u9762\u7684\u5185\u5bb9\u4f46 VMP \u4e5f\u786e\u5b9e\u662f\u4e00\u4e2a\u96be\u70b9&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u65e0\u9650\u53d8\u4f53&#xff0c;\u5404\u79cd\u5404\u6837\u7684\u601d\u8def&#xff0c;\u8fd8\u662f\u5148\u6765\u56de\u987e\u4e00\u4e0bUnpacking Virtualizatio","og_url":"https:\/\/www.wsisp.com\/helps\/112753.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-04T11:49:05+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"27 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/112753.html","url":"https:\/\/www.wsisp.com\/helps\/112753.html","name":"dy\u4e03\u795e\u534f\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-04T11:49:05+00:00","dateModified":"2026-10-04T11:49:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/112753.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/112753.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/112753.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"dy\u4e03\u795e\u534f\u8bae"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=112753"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112753\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=112753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=112753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=112753"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=112753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}