diff --git a/results__dumper_8cpp_source.html b/results__dumper_8cpp_source.html index 9e4f044e2..ab4564adb 100644 --- a/results__dumper_8cpp_source.html +++ b/results__dumper_8cpp_source.html @@ -429,36 +429,36 @@
311 ModuleDumpReport *modDumpReport = new ModuleDumpReport(module_buf.getModuleBase(), module_buf.getBufferSize());
312 dumpReport.appendReport(modDumpReport);
313
-
314 if (out_base) {
-
315 modDumpReport->rebasedTo = out_base;
-
316 }
-
317 modDumpReport->dumpFileName = makeModuleDumpPath(module_buf.getModuleBase(), module_name, payload_ext);
-
318 modDumpReport->is_corrupt_pe = is_corrupt_pe;
-
319 modDumpReport->is_shellcode = !module_buf.isValidPe() && module_buf.isCode();
-
320
-
321 peconv::ImpsNotCovered notCovered;
-
322
-
323 if (module_buf.isFilled()) {
-
324
-
325 // Try to fix imports:
-
326 ImpReconstructor impRec(module_buf);
-
327 ImpReconstructor::t_imprec_res imprec_res = impRec.rebuildImportTable(exportsMap, imprec_mode);
-
328 modDumpReport->impRecMode = get_imprec_res_name(imprec_res);
-
329
-
330 module_buf.setRelocBase(mod->getRelocBase());
-
331 if (out_base) {
-
332 module_buf.setRelocBase(out_base);
+
314 modDumpReport->dumpFileName = makeModuleDumpPath(module_buf.getModuleBase(), module_name, payload_ext);
+
315 modDumpReport->is_corrupt_pe = is_corrupt_pe;
+
316 modDumpReport->is_shellcode = !module_buf.isValidPe() && module_buf.isCode();
+
317
+
318 peconv::ImpsNotCovered notCovered;
+
319
+
320 if (module_buf.isFilled()) {
+
321
+
322 // Try to fix imports:
+
323 ImpReconstructor impRec(module_buf);
+
324 ImpReconstructor::t_imprec_res imprec_res = impRec.rebuildImportTable(exportsMap, imprec_mode);
+
325 modDumpReport->impRecMode = get_imprec_res_name(imprec_res);
+
326
+
327 module_buf.setRelocBase(mod->getRelocBase());
+
328 if (out_base) {
+
329 module_buf.setRelocBase(out_base);
+
330 }
+
331 if (imprec_mode == pesieve::PE_IMPREC_NONE) {
+
332 modDumpReport->isDumped = module_buf.dumpPeToFile(modDumpReport->dumpFileName, curr_dump_mode);
333 }
-
334 if (imprec_mode == pesieve::PE_IMPREC_NONE) {
-
335 modDumpReport->isDumped = module_buf.dumpPeToFile(modDumpReport->dumpFileName, curr_dump_mode);
+
334 else {
+
335 modDumpReport->isDumped = module_buf.dumpPeToFile(modDumpReport->dumpFileName, curr_dump_mode, exportsMap, &notCovered);
336 }
-
337 else {
-
338 modDumpReport->isDumped = module_buf.dumpPeToFile(modDumpReport->dumpFileName, curr_dump_mode, exportsMap, &notCovered);
-
339 }
-
340
-
341 if (!modDumpReport->isDumped) {
-
342 modDumpReport->isDumped = module_buf.dumpToFile(modDumpReport->dumpFileName);
-
343 curr_dump_mode = peconv::PE_DUMP_VIRTUAL;
+
337
+
338 if (!modDumpReport->isDumped) {
+
339 modDumpReport->isDumped = module_buf.dumpToFile(modDumpReport->dumpFileName);
+
340 curr_dump_mode = peconv::PE_DUMP_VIRTUAL;
+
341 }
+
342 if (curr_dump_mode != peconv::PE_DUMP_VIRTUAL && out_base) {
+
343 modDumpReport->rebasedTo = out_base;
344 }
345 modDumpReport->mode_info = get_dump_mode_name(curr_dump_mode);
346 bool iat_not_rebuilt = (imprec_res == ImpReconstructor::IMP_RECOVERY_ERROR) || (imprec_res == ImpReconstructor::IMP_RECOVERY_NOT_APPLICABLE);