kkmomo 發表於 2015-1-1 21:58:21

Memory Scan

本帖最後由 kkmomo 於 2015-1-1 22:05 編輯 <br /><br /><div>為了找特殊值只好自己寫一個</div><div>偷懶就寫得很隨便~<br>這裡的直接寫死成找 DWORD 而已</div><div>需要找別的要自己改<br><br><span style="color: rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 11.818181991577148px; line-height: 21px;">找加密過的值在 getCryptValue 裡換成解密運算就可以</span></div><div><span style="color: rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 11.818181991577148px; line-height: 21px;">(像是找動態數據什麼的)</span><br><br>也可以參考google到的這篇<br>http://www.csdn123.com/html/mycsdn20140110/65/659154f3fcd53390cb5cc65945fc3cb7.html<br><br><ol style="padding-left: 5px; color: rgb(172, 172, 172); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; background-color: rgb(248, 248, 248);"><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">DWORD getCryptValue<span class="br0" style="color: rgb(0, 128, 0);">(</span>DWORD ptr<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">return</span>&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">*</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>PDWORD<span class="br0" style="color: rgb(0, 128, 0);">)</span>ptr<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp;</div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;FirstMemScan<span class="br0" style="color: rgb(0, 128, 0);">(</span>HANDLE hProcess, DWORD start, DWORD end, DWORD value, DWORD&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">*</span>result,&nbsp;<span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;size<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; MEMORY_BASIC_INFORMATION mbi<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; DWORD localStart<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; DWORD localEnd<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; DWORD totalsize<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;count<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp;</div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; VirtualQueryEx<span class="br0" style="color: rgb(0, 128, 0);">(</span>hProcess,&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>PVOID<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>start<span class="br0" style="color: rgb(0, 128, 0);">)</span>,&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">&amp;</span>mbi,&nbsp;<span class="kw3" style="color: rgb(0, 0, 221);">sizeof</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>MEMORY_BASIC_INFORMATION<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; localStart&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>DWORD<span class="br0" style="color: rgb(0, 128, 0);">)</span>mbi.<span class="me1" style="color: rgb(0, 119, 136);">BaseAddress</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; count&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">0</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp;</div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">while</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&lt;</span>&nbsp;MEMORY_BOUNDARY&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">&amp;&amp;</span>&nbsp;localStart&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&lt;=</span>&nbsp;end<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">!</span>IsValidMem<span class="br0" style="color: rgb(0, 128, 0);">(</span>mbi<span class="br0" style="color: rgb(0, 128, 0);">)</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localStart&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span><span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;mbi.<span class="me1" style="color: rgb(0, 119, 136);">RegionSize</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VirtualQueryEx<span class="br0" style="color: rgb(0, 128, 0);">(</span>hProcess,&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>PVOID<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart<span class="br0" style="color: rgb(0, 128, 0);">)</span>,&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">&amp;</span>mbi,&nbsp;<span class="kw3" style="color: rgb(0, 0, 221);">sizeof</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>MEMORY_BASIC_INFORMATION<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">continue</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalsize&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">0</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">while</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span>&nbsp;totalsize&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&lt;</span>&nbsp;MEMORY_BOUNDARY<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VirtualQueryEx<span class="br0" style="color: rgb(0, 128, 0);">(</span>hProcess,&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>PVOID<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span>&nbsp;totalsize<span class="br0" style="color: rgb(0, 128, 0);">)</span>,&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">&amp;</span>mbi,&nbsp;<span class="kw3" style="color: rgb(0, 0, 221);">sizeof</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>MEMORY_BASIC_INFORMATION<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">!</span>IsValidMem<span class="br0" style="color: rgb(0, 128, 0);">(</span>mbi<span class="br0" style="color: rgb(0, 128, 0);">)</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">break</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalsize&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span><span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;mbi.<span class="me1" style="color: rgb(0, 119, 136);">RegionSize</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localEnd&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;min<span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span>&nbsp;totalsize, end<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">for</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>DWORD curr&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;max<span class="br0" style="color: rgb(0, 128, 0);">(</span>localStart , start<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>&nbsp;curr&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&lt;</span>&nbsp;localEnd<span class="sy4" style="color: rgb(0, 128, 128);">;</span>&nbsp;curr&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span><span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">4</span><span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>getCryptValue<span class="br0" style="color: rgb(0, 128, 0);">(</span>curr<span class="br0" style="color: rgb(0, 128, 0);">)</span>&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">==</span>&nbsp;value<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result<span class="br0" style="color: rgb(0, 128, 0);">[</span>count<span class="sy2" style="color: rgb(0, 0, 64);">++</span><span class="br0" style="color: rgb(0, 128, 0);">]</span>&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;curr<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="st0" style="color: rgb(255, 0, 0);">"[%4d] %08X<span class="es1" style="color: rgb(0, 0, 153); font-weight: bold;">\n</span>"</span>, count&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">-</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">1</span>, result<span class="br0" style="color: rgb(0, 128, 0);">[</span>count&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">-</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">1</span><span class="br0" style="color: rgb(0, 128, 0);">]</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>count&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&gt;=</span>&nbsp;size<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="st0" style="color: rgb(255, 0, 0);">"result arrive max size<span class="es1" style="color: rgb(0, 0, 153); font-weight: bold;">\n</span>"</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">break</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>count&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&gt;=</span>&nbsp;size<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">break</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localStart&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">+</span><span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;totalsize<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">return</span>&nbsp;count<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp;</div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;MemScan<span class="br0" style="color: rgb(0, 128, 0);">(</span>HANDLE hProcess, DWORD value, DWORD&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">*</span>oldResult, DWORD&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">*</span>newResult,&nbsp;<span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;size<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; MEMORY_BASIC_INFORMATION mbi<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;count&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">0</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>oldResult&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">==</span>&nbsp;nullptr&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">||</span>&nbsp;newResult&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">==</span>&nbsp;nullptr<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">return</span>&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="nu0" style="color: rgb(0, 0, 221);">1</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp;</div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">for</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="kw4" style="color: rgb(0, 0, 255);">int</span>&nbsp;index&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">0</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>&nbsp;index&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">&lt;</span>&nbsp;size<span class="sy4" style="color: rgb(0, 128, 128);">;</span>&nbsp;index<span class="sy2" style="color: rgb(0, 0, 64);">++</span><span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">if</span>&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">(</span>IsValidPtr<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>PVOID<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">(</span>oldResult<span class="br0" style="color: rgb(0, 128, 0);">[</span>index<span class="br0" style="color: rgb(0, 128, 0);">]</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">)</span>&nbsp;<span class="sy3" style="color: rgb(0, 0, 64);">&amp;&amp;</span>&nbsp;getCryptValue<span class="br0" style="color: rgb(0, 128, 0);">(</span>oldResult<span class="br0" style="color: rgb(0, 128, 0);">[</span>index<span class="br0" style="color: rgb(0, 128, 0);">]</span><span class="br0" style="color: rgb(0, 128, 0);">)</span>&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">==</span>&nbsp;value<span class="br0" style="color: rgb(0, 128, 0);">)</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">{</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newResult<span class="br0" style="color: rgb(0, 128, 0);">[</span>count<span class="sy2" style="color: rgb(0, 0, 64);">++</span><span class="br0" style="color: rgb(0, 128, 0);">]</span>&nbsp;<span class="sy1" style="color: rgb(0, 0, 128);">=</span>&nbsp;oldResult<span class="br0" style="color: rgb(0, 128, 0);">[</span>index<span class="br0" style="color: rgb(0, 128, 0);">]</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="st0" style="color: rgb(255, 0, 0);">"new[%4d] %08X<span class="es1" style="color: rgb(0, 0, 153); font-weight: bold;">\n</span>"</span>, count&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">-</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">1</span>, newResult<span class="br0" style="color: rgb(0, 128, 0);">[</span>count&nbsp;<span class="sy2" style="color: rgb(0, 0, 64);">-</span>&nbsp;<span class="nu0" style="color: rgb(0, 0, 221);">1</span><span class="br0" style="color: rgb(0, 128, 0);">]</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li><li class="li2" style="-webkit-user-select: none;"><div class="de2" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="kw1" style="color: rgb(0, 0, 255);">return</span>&nbsp;count<span class="sy4" style="color: rgb(0, 128, 128);">;</span></div></li><li class="li1" style="-webkit-user-select: none;"><div class="de1" style="-webkit-user-select: text; padding-right: 5px; padding-left: 5px; vertical-align: top; color: rgb(0, 0, 0); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-left: -7px; position: relative; background: rgb(255, 255, 255);"><span class="br0" style="color: rgb(0, 128, 0);">}</span></div></li></ol><br><br></div><p></p>

nmasd1023 發表於 2015-1-1 22:06:50

本帖最後由 nmasd1023 於 2015-2-5 09:15 編輯

不客氣地收下了:)
頁: [1]
查看完整版本: Memory Scan