I am stuck on making (my little self-task for learning) that thing:
Basically it should be something like Themida or VMProtect (do mutation, virtualization, etc.), but in my case, i want to take ASM code between pointers, obfuscate it etc, and write it to some DLL. On original application, we have a patched trampoline with generated by our "disasm tool" function... Hmm, any example how to make that? =)
Maybe it is not a good idea of protection software code or something like that, i just do that for learning. I know how ASM pointers works in theory. For example, i can do all of that manually with Olly, but how to do that programatically like VMProtect, Enigma or Themida "compiler tools" do this? Never tried to make a something like that by my self. And did not find any examples, because that is "arcane" level of programming, and also such things hard to find on opensource =(
So to questions:
1)How to search programmatically ASM pointer inside compiled application?
2)How to "cut" & disasm code between 2 ASM pointers programmatically?
3)How to paste them back (after edit) programmatically?