Refactor the emission a bit and add way to allocate RW memory, and then
set RX permissions on it for execution.