|
|
|
|
@ -3360,7 +3360,8 @@ int cli_scanpe(cli_ctx *ctx) |
|
|
|
|
cli_bytecode_context_destroy(bc_ctx); |
|
|
|
|
|
|
|
|
|
/* Attempt to run scans on import table */ |
|
|
|
|
/* TODO: should this be target-tree-only? */ |
|
|
|
|
/* Run if there are existing signatures and/or preclassing */ |
|
|
|
|
if (ctx->dconf->pe & PE_CONF_IMPTBL) { |
|
|
|
|
ret = scan_pe_imptbl(ctx, dirs, exe_sections, nsections, hdr_size, pe_plus); |
|
|
|
|
switch (ret) { |
|
|
|
|
case CL_ENULLARG: |
|
|
|
|
@ -3374,6 +3375,7 @@ int cli_scanpe(cli_ctx *ctx) |
|
|
|
|
free(exe_sections); |
|
|
|
|
return ret == CL_VIRUS ? CL_VIRUS : CL_CLEAN; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/* Attempt to detect some popular polymorphic viruses */ |
|
|
|
|
|
|
|
|
|
/* W32.Parite.B */ |
|
|
|
|
|