Skip to content

Commit

Permalink
deploy: 1dedbd0
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Nov 2, 2024
1 parent c878a39 commit 3830153
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions results__dumper_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,36 +429,36 @@
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <a class="code hl_class" href="classpesieve_1_1_module_dump_report.html">ModuleDumpReport</a> *modDumpReport = <span class="keyword">new</span> <a class="code hl_class" href="classpesieve_1_1_module_dump_report.html">ModuleDumpReport</a>(module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9d000c40c9a58e7c4bb6ac670f40085f">getModuleBase</a>(), module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a379a216aa27e43ead89c38c6f7326ace">getBufferSize</a>());</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> dumpReport.appendReport(modDumpReport);</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> </div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keywordflow">if</span> (out_base) {</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a0d18965c81a334eddc02466d20d97bf3">rebasedTo</a> = out_base;</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> }</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a> = makeModuleDumpPath(module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9d000c40c9a58e7c4bb6ac670f40085f">getModuleBase</a>(), module_name, payload_ext);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#aadf8118269fad055196034c7daeca382">is_corrupt_pe</a> = is_corrupt_pe;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a9cdd70712964e083c4c0f6257336d48d">is_shellcode</a> = !module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a314ac1c88e3eb95becd89ae75c92b67f">isValidPe</a>() &amp;&amp; module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a39400f75a56c653e647fd7cb19724d27">isCode</a>();</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> peconv::ImpsNotCovered notCovered;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> </div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <span class="keywordflow">if</span> (module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a2d59396064feb956755694ddb6b4df07">isFilled</a>()) {</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> </div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="comment">// Try to fix imports:</span></div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> <a class="code hl_class" href="classpesieve_1_1_imp_reconstructor.html">ImpReconstructor</a> impRec(module_buf);</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <a class="code hl_typedef" href="classpesieve_1_1_imp_reconstructor.html#adb44686388c5b88f038956deab4b6eee">ImpReconstructor::t_imprec_res</a> imprec_res = impRec.<a class="code hl_function" href="classpesieve_1_1_imp_reconstructor.html#a0bd47882ef4d6ec060058fd7301bd98b">rebuildImportTable</a>(exportsMap, imprec_mode);</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#afa53bc05cf4910ceca008bbeaae5df93">impRecMode</a> = <a class="code hl_function" href="namespacepesieve.html#a1e399694b7982880e00ec3e08a858cc7">get_imprec_res_name</a>(imprec_res);</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> </div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a00efa67d16b3dd1f718678e84ee907a4">setRelocBase</a>(mod-&gt;getRelocBase());</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keywordflow">if</span> (out_base) {</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a00efa67d16b3dd1f718678e84ee907a4">setRelocBase</a>(out_base);</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a> = makeModuleDumpPath(module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9d000c40c9a58e7c4bb6ac670f40085f">getModuleBase</a>(), module_name, payload_ext);</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#aadf8118269fad055196034c7daeca382">is_corrupt_pe</a> = is_corrupt_pe;</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a9cdd70712964e083c4c0f6257336d48d">is_shellcode</a> = !module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a314ac1c88e3eb95becd89ae75c92b67f">isValidPe</a>() &amp;&amp; module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a39400f75a56c653e647fd7cb19724d27">isCode</a>();</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> </div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> peconv::ImpsNotCovered notCovered;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> </div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <span class="keywordflow">if</span> (module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a2d59396064feb956755694ddb6b4df07">isFilled</a>()) {</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> </div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <span class="comment">// Try to fix imports:</span></div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <a class="code hl_class" href="classpesieve_1_1_imp_reconstructor.html">ImpReconstructor</a> impRec(module_buf);</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <a class="code hl_typedef" href="classpesieve_1_1_imp_reconstructor.html#adb44686388c5b88f038956deab4b6eee">ImpReconstructor::t_imprec_res</a> imprec_res = impRec.<a class="code hl_function" href="classpesieve_1_1_imp_reconstructor.html#a0bd47882ef4d6ec060058fd7301bd98b">rebuildImportTable</a>(exportsMap, imprec_mode);</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#afa53bc05cf4910ceca008bbeaae5df93">impRecMode</a> = <a class="code hl_function" href="namespacepesieve.html#a1e399694b7982880e00ec3e08a858cc7">get_imprec_res_name</a>(imprec_res);</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> </div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a00efa67d16b3dd1f718678e84ee907a4">setRelocBase</a>(mod-&gt;getRelocBase());</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> <span class="keywordflow">if</span> (out_base) {</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a00efa67d16b3dd1f718678e84ee907a4">setRelocBase</a>(out_base);</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> }</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keywordflow">if</span> (imprec_mode == pesieve::PE_IMPREC_NONE) {</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9032a33069a00aab2264c09172376d7a">dumpPeToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>, curr_dump_mode);</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> }</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <span class="keywordflow">if</span> (imprec_mode == pesieve::PE_IMPREC_NONE) {</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9032a33069a00aab2264c09172376d7a">dumpPeToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>, curr_dump_mode);</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9032a33069a00aab2264c09172376d7a">dumpPeToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>, curr_dump_mode, exportsMap, &amp;notCovered);</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> }</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#a9032a33069a00aab2264c09172376d7a">dumpPeToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>, curr_dump_mode, exportsMap, &amp;notCovered);</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> }</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> <span class="keywordflow">if</span> (!modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a>) {</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#af917a4a96569cd80a957a44ef7dd2954">dumpToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> curr_dump_mode = peconv::PE_DUMP_VIRTUAL;</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> </div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> <span class="keywordflow">if</span> (!modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a>) {</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a111e084a95143aeeeb7bdfae1408eb75">isDumped</a> = module_buf.<a class="code hl_function" href="classpesieve_1_1_pe_buffer.html#af917a4a96569cd80a957a44ef7dd2954">dumpToFile</a>(modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#ad9ffe25caa0688a2951d0695c8f012c5">dumpFileName</a>);</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> curr_dump_mode = peconv::PE_DUMP_VIRTUAL;</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> }</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <span class="keywordflow">if</span> (curr_dump_mode != peconv::PE_DUMP_VIRTUAL &amp;&amp; out_base) {</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a0d18965c81a334eddc02466d20d97bf3">rebasedTo</a> = out_base;</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> }</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> modDumpReport-&gt;<a class="code hl_variable" href="classpesieve_1_1_module_dump_report.html#a52db7093f340f7b001cfe4a382f2e36c">mode_info</a> = <a class="code hl_function" href="namespacepesieve.html#afb544770522131db2e3e0ff29e41b4ed">get_dump_mode_name</a>(curr_dump_mode);</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keywordtype">bool</span> iat_not_rebuilt = (imprec_res == <a class="code hl_enumvalue" href="classpesieve_1_1_imp_reconstructor.html#ad9230d5b439e1f91586c29071ad9ec18a217055404d833d8acf434367ae5a8a7e">ImpReconstructor::IMP_RECOVERY_ERROR</a>) || (imprec_res == <a class="code hl_enumvalue" href="classpesieve_1_1_imp_reconstructor.html#ad9230d5b439e1f91586c29071ad9ec18a75c87ffb239490891b35ce29b071968f">ImpReconstructor::IMP_RECOVERY_NOT_APPLICABLE</a>);</div>
Expand Down

0 comments on commit 3830153

Please sign in to comment.