Working

  • Allocate memory for payload with RWX permissions using VirtualAlloc.
  • Copy shellcode to allocated buffer using memcpy.
  • Run the shellcode by creating a threading using CreateThread.