楼主: wangjay1980
收起左侧

[病毒样本] 一个毒[MD5: 8D31B1]

[复制链接]
promised
发表于 2007-6-21 21:44:06 | 显示全部楼层
原帖由 wangjay1980 于 2007-6-21 21:42 发表
真正高手是为了显示自己的才能,那些小马作者是为了钱财,而且技术很烂

为了钱是肯定的
技术烂不一定
The EQs
发表于 2007-6-21 21:44:23 | 显示全部楼层
现在期待eset的引擎有所改进。。。。发现nod32的引擎有非常多的问题。。。已经向他们技术部提交了N多问题
wangjay1980
 楼主| 发表于 2007-6-21 21:44:52 | 显示全部楼层
卡巴实验室的精英还是很多的
wangjay1980
 楼主| 发表于 2007-6-21 21:45:54 | 显示全部楼层
就像李俊?他的水平高吗
promised
发表于 2007-6-21 21:45:54 | 显示全部楼层
可惜卡巴没有特征码启发
PS:李俊的水平已经不错了啊
The EQs
发表于 2007-6-21 21:46:52 | 显示全部楼层

回复 #45 promised 的帖子

特征码启发????静态启发??
promised
发表于 2007-6-21 21:47:42 | 显示全部楼层
原帖由 EQ2 于 2007-6-21 21:46 发表
特征码启发????静态启发??

对啊
NOD32的顶梁柱
VBA32的辅助
The EQs
发表于 2007-6-21 21:49:04 | 显示全部楼层

在nod32club看到的clamav脱FSG的代码

/*
*  Copyright (C) 2004 aCaB <acab@clamav.net>
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
*  MA 02110-1301, USA.
*/

#ifndef __FSG_H
#define __FSG_H

#include "cltypes.h"
#include "execs.h"

int unfsg_200(char *, char *, int, int, uint32_t, uint32_t, uint32_t, int);
int unfsg_133(char *, char *, int , int, struct cli_exe_section *, int, uint32_t, uint32_t, int);

#endif
The EQs
发表于 2007-6-21 21:49:40 | 显示全部楼层
*
*  Copyright (C) 2004 aCaB <acab@clamav.net>
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
*  MA 02110-1301, USA.
*/

/*
** defsg.c
**
** 02/08/2k4 - Dumped and reversed
** 02/08/2k4 - Done coding
** 03/08/2k4 - Cleaning and securing
** 04/08/2k4 - Done porting
** 07/08/2k4 - Started adding support for 1.33
*/

/*
** Unpacks an FSG compressed section.
**
** Czesc bart, good asm, nice piece of code ;)
*/

#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif

#include <stdlib.h>

#include "cltypes.h"
#include "rebuildpe.h"
#include "others.h"
#include "packlibs.h"
#include "fsg.h"

int unfsg_200(char *source, char *dest, int ssize, int dsize, uint32_t rva, uint32_t base, uint32_t ep, int file) {
  char *tsrc;
  struct cli_exe_section section; /* Yup, just one ;) */
  
  if ( cli_unfsg(source, dest, ssize, dsize, NULL, NULL) ) return -1;
  
  section.raw=0;
  section.rsz = dsize;
  section.vsz = dsize;
  section.rva = rva;

  if (!cli_rebuildpe(dest, &section, 1, base, ep, 0, 0, file)) {
    cli_dbgmsg("FSG: Rebuilding failed\n");
    return 0;
  }
  return 1;
}


int unfsg_133(char *source, char *dest, int ssize, int dsize, struct cli_exe_section *sections, int sectcount, uint32_t base, uint32_t ep, int file) {
  char *tsrc=source, *tdst=dest;
  int i, upd=1, offs=0, lastsz=dsize;

  for (i = 0 ; i <= sectcount ; i++) {
    char *startd=tdst;
    if ( cli_unfsg(tsrc, tdst, ssize - (tsrc - source), dsize - (tdst - dest), &tsrc, &tdst) == -1 )
      return -1;

    /* RVA has been filled already in pe.c */
    sections.raw=offs;
    sections.rsz=tdst-startd;
    /*    cli_dbgmsg("Unpacked section %d @%x size %x Vsize =%x \n", i, offs, tdst-startd, dsize - (startd - dest)); */
    offs+=tdst-startd;
  }

  /* Sort out the sections */
  while ( upd ) {
    upd = 0;
    for (i = 0; i < sectcount  ; i++) {
      uint32_t trva,trsz,traw;
      
      if ( sections.rva <= sections[i+1].rva )
        continue;
      trva = sections.rva;
      traw = sections.raw;
      trsz = sections.rsz;
      sections.rva = sections[i+1].rva;
      sections.rsz = sections[i+1].rsz;
      sections.raw = sections[i+1].raw;
      sections[i+1].rva = trva;
      sections[i+1].raw = traw;
      sections[i+1].rsz = trsz;
      upd = 1;
    }
  }

  /* Cure Vsizes and debugspam */
  for (i = 0; i <= sectcount ; i++) {
    if ( i != sectcount ) {
      sections.vsz = sections[i+1].rva - sections.rva;
      lastsz-= sections[i+1].rva - sections.rva;
    }
    else
      sections.vsz = lastsz;

    cli_dbgmsg("FSG: .SECT%d RVA:%x VSize:%x ROffset: %x, RSize:%x\n", i, sections.rva, sections.vsz, sections.raw, sections.rsz);
  }

  if (!cli_rebuildpe(dest, sections, sectcount+1, base, ep, 0, 0, file)) {
    cli_dbgmsg("FSG: Rebuilding failed\n");
    return 0;
  }
  return 1;
}
wangjay1980
 楼主| 发表于 2007-6-21 21:50:20 | 显示全部楼层
你是说基因?
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-5-2 07:17 , Processed in 0.100048 second(s), 15 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表