title: C++ PE injection - EXE file from remote location (e.g. HTTP)
body: <p>I am a novice security researcher trying to learn about PE injection using droppers/stagers, very much like a cryptolocker would operate.</p>
  
  <p>We are setting up a fire drill for our blue team that handles our QRadar SIEM and we would like to launch some custom malware on it.</p>
  
  <p>So now, for my question :). I understand the general concept op PE injection, but almost all tutorials I have found inject the current EXE (so usually by invoking GetModuleHandle(NULL))</p>
  
  <p>I was wondering how you would go about injecting an EXE from a remote resource (e.g. a HTTP download). 
  Basically my goal is this:</p>
  
  <ol>
  <li>STAGER file downloads EXE in memory</li>
  <li>STAGER file inject EXE using PE method in process X</li>
  </ol>
  
  <p>I do not expect a full answer here, but if you could point me in the right direction, that would be great :).</p>
  
  <p>Note that this code will <strong>not</strong> be used for malicious purposes.</p>
  
  <p>Best regards!</p>