<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Malware on 0xPacx</title><link>https://0xpacx.github.io/tags/malware/</link><description>Recent content in Malware on 0xPacx</description><generator>Hugo</generator><language>tr-TR</language><lastBuildDate>Wed, 25 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://0xpacx.github.io/tags/malware/index.xml" rel="self" type="application/rss+xml"/><item><title>MalwareTech VM1 Challenge: Sanallaştırma Üzerine...</title><link>https://0xpacx.github.io/posts/vm1/</link><pubDate>Wed, 25 Nov 2026 00:00:00 +0000</pubDate><guid>https://0xpacx.github.io/posts/vm1/</guid><description>&lt;p&gt;Zararlı yazılımlar bazen analizi zorlaştırmak için standart &lt;code&gt;x86_64&lt;/code&gt; komutları yerine kendi içlerinde küçük bir VM kurarlar. Bu yapıda kritik veriler doğrudan çözülmez; bellekteki &lt;code&gt;bytecode&lt;/code&gt; dizisi, programın kendi &lt;code&gt;dispatcher&lt;/code&gt; fonksiyonu tarafından yorumlanarak adım adım işlenir.&lt;/p&gt;
&lt;p&gt;Bu yazıda MalwareTech VM1 challenge&amp;rsquo;ını statik analizle nasıl çözdüğümü anlatacağım.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Img" loading="lazy" src="https://0xpacx.github.io/assets/img/vm1.1.png"&gt;&lt;/p&gt;
&lt;h3 id="1-entry0-fonksiyonu"&gt;1. entry0 Fonksiyonu&lt;/h3&gt;
&lt;p&gt;Analize &lt;code&gt;entry0&lt;/code&gt; (&lt;code&gt;0x1400019b0&lt;/code&gt;) fonksiyonundan başladığımızda programın tüm yaşam döngüsünü tek blokta görebiliyoruz:&lt;/p&gt;
&lt;p&gt;Program ilk olarak &lt;code&gt;GetProcessHeap&lt;/code&gt; ile mevcut process &lt;code&gt;heap&lt;/code&gt; alanının handle değerini alıyor ve &lt;code&gt;HeapAlloc&lt;/code&gt; çağrısına 507 byte vererek bellekte dinamik bir alan ayırıyor. Ayrılan bu belleğin başlangıç adresi &lt;code&gt;data.140003890&lt;/code&gt; işaretçisine kaydediliyor. Hemen ardından kaynak adresi (&lt;code&gt;rsi&lt;/code&gt;) &lt;code&gt;data.140003100&lt;/code&gt;, hedef adresi (&lt;code&gt;rdi&lt;/code&gt;) &lt;code&gt;data.140003890&lt;/code&gt; ve boyutu (&lt;code&gt;ecx&lt;/code&gt;) &lt;code&gt;0x1fb&lt;/code&gt;(507 byte) olarak ayarlayıp &lt;code&gt;rep movsb&lt;/code&gt; komutuyla binary içine gömülü ham veriyi bu &lt;code&gt;heap&lt;/code&gt; alanına kopyalıyor. Program çalışma boyunca bu &lt;code&gt;heap&lt;/code&gt; bloğunu kendi RAM alanı olarak kullanıyor.&lt;/p&gt;</description></item></channel></rss>