All of this code gets executed to load up a virtual machine with its own opcodes.
Next comes ANOTHER virtual machine with its own, different opcodes, which decrypts and loads more software.
The injector also has countermeasures to defeat common detection methods.
It's a very clever piece of puzzlemaking, and an even more clever piece of detective work to solve it.
This may be the key to how Marcus "Malwaretech" Hutchins saved the world from Wannacry ransomware.