Jump to content
Tuts 4 You

[Help] Inject x64 DLL into x64 PE File


Recommended Posts

HelloI have problem with injection 64 bit dll into 64 bit exe file , in case i don't know what i should to do ?
any one can help me with information , sources or some thing that solve my problemThanks

Link to comment


Look at VirtualAllocEx + CreateRemoteThread, just start a new thread at LoadLibraryW and provide a newly allocated page as argument.

Its not much different from x32.


Mr. eXoDia

  • Like 1
Link to comment

Thanks Dear Mr.eXoDia & Dear Dreamer for reply

But i means Code Injection via Dll Directly to PE File not to Process

Look Likes Armadillo and many other protectors and packers

  • Like 1
Link to comment

That is not called "injection". ;)


Theoretically, everything is the same as in 32-bit world. The biggest difference is that you pass arguments to function in registers, not on stack.

What did you try and what exactly did not work?

Link to comment

Is this for your payware EXE packer/protector?

Looks to me for that article, you need to read up on the differences between x64 PE header and x86....


If it was me, I would just use TitanEngine for such things, plus a decent x64 assembler like AsmJit.

Edited by mudlord
  • Like 1
Link to comment

If you wanna execute your DllMain with the executable start: use CFF Explorer (import adder, add a random import).


  • Like 1
Link to comment

Ah! Then you need to understand the decryption/encryption of the file inside the executable and you also need to patch some crc checks.

Link to comment

I think Gladiator is meaning this in a protection sense, so this applies to unprotected apps.

Might be for a x64 port of his protector?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...