Reflective PE COFF DLL loader
A loader is a program that loads some executable code (e.g. in ELF, PE COFF, or Mach-O formats) into memory so that it can be executed.
A reflective loader is such a loader that loads the executable code from a memory buffer, rather than from a file on disk.
use ;
let bytes: & = include_bytes!;
let pe_dll = new.unwrap;
let add: = ;
assert_eq!;
Credits
It is largely based on the code from https://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/.