[TUT] Encrypt/Decrypt .DLLs

XeVexed Jan 28, 2013

  1. XeVexed

    XeVexed Banned BANNED
    0/47

    Joined:
    Nov 20, 2012
    Messages:
    60
    Likes Received:
    10
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Riverside, CA
    Console:
    Xbox
    * NOTE *
    I know this is old and I know a lot of people have posted this, but that's not the concept of it. It's to have the best tutorial that is very well elaborated so people have a better understanding of things. That is why I made this tutorial. I would hope this gets PINNED but who knows, well let's carry on.


    What is a .dll?
    - DLL stand for ( Dynamic Link Library ), A DLL is a library that contains code and data that can be used by more than one program at the same time. For example, in Windows operating systems, the Comdlg32 DLL performs common dialog box related functions. Therefore, each program can use the functionality that is contained in this DLL to implement an Open dialog box. This helps promote code reuse and efficient memory usage. By using a DLL, a program can be modularized into separate components. For example, an accounting program may be sold by module. Each module can be loaded into the main program at run time if that module is installed. Because the modules are separate, the load time of the program is faster, and a module is only loaded when that functionality is requested. Additionally, updates are easier to apply to each module without affecting other parts of the program. For example, you may have a payroll program, and the tax rates change each year. When these changes are isolated to a DLL, you can apply an update without needing to build or install the whole program again.

    Additional Information:
    when you run a program on one of these Windows operating systems, much of the functionality of the program may be provided by DLLs. For example, some programs may contain many different modules, and each module of the program is contained and distributed in DLLs. The use of DLLs helps promote modularization of code, code reuse, efficient memory usage, and reduced disk space. Therefore, the operating system and the programs load faster, run faster, and take less disk space on the computer. When a program uses a DLL, an issue that is called dependency may cause the program not to run. When a program uses a DLL, a dependency is created. If another program overwrites and breaks this dependency, the original program may not successfully run. With the introduction of the Microsoft .NET Framework, most dependency problems have been eliminated by using assemblies.

    Ok, now on to the actual Tutorial:

    REQUIRMENTS:
    [1] HxD ( Here )
    [2] Notepad++ ( Optional )
    [3] Visual Studios or Visual Basics ( If you don't want to use HxD to edit )
    [4] XeX Tool ( Here )


    * DECRYPTION *

    Step 1 - Download "XeX Tool" and "Drag & Drop" the "XeX Tool" folder on your Desktop
    Step 2 - "Drag & Drop" the .dll you want to Decrypt into the "XeX Tool" Folder
    Step 3 - Rename the .dll to .xex ( Example: ihc.dll becomes ihc.xex )
    Step 4 - Run cmd.exe ( Command Prompt )
    Step 5 - In cmd, type this code in:
    Code:
    xextool -e d -c b -o ihc-decompress.xex "Your file name".xex
    
    - You should then get this:

    [​IMG]
    - You should now have "ihc-decompress.xex" inside the "XeX Tool" folder
    - Continue to "Step 6"
    Step 6 - Open the "ihc-decompress.xex" inside HxD
    - There you go.








    * ENCRYPTION *

    - To encrypt ( Lock your file ), follow the steps.
    Step 1 - After you are done editing/coding the "ihc-decompress.xex", save it.
    Step 2 - Run cmd.exe again
    Step 3 - Then type in this code:
    Code:
    xextool -e e -c c -o "Your file name".xex ihc-decompress.xex
    
    -You should then get this:

    [​IMG]
    - Continue to "Step 4"
    Step 4 - Rename the file you changed from .dll to .xex back to .dll ( Example: ihc.dll to ihc.xex back to ihc.dll )
    - Then you're done
    - Hope this helped ( Leave feedback, likes, etc )
    - PM me for help or just post below
     
  2. BMTHstanton1990

    BMTHstanton1990 RGH/JTAG God
    0/47

    Joined:
    Mar 28, 2011
    Messages:
    843
    Likes Received:
    264
    Trophy Points:
    0
    Gender:
    Male
    Location:
    United States
    Console:
    Xbox
    I didn't get a chance to read all the way through it, but man. That's some detail.

    Great job. I vote for a pin. ;)
     
  3. XeVexed

    XeVexed Banned BANNED
    0/47

    Joined:
    Nov 20, 2012
    Messages:
    60
    Likes Received:
    10
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Riverside, CA
    Console:
    Xbox
    Haha thanks man, just trying to elaborate as good as I can to get people to understand what they are really working with you know? I thought about adding description about what Decrypting and Encrypting means, ( for the noobiess ). But I thought that might take the attention off of what I was really trying to get across.
     
  4. BMTHstanton1990

    BMTHstanton1990 RGH/JTAG God
    0/47

    Joined:
    Mar 28, 2011
    Messages:
    843
    Likes Received:
    264
    Trophy Points:
    0
    Gender:
    Male
    Location:
    United States
    Console:
    Xbox
    To put it bluntly, if they don't know what encrypting or decrypting is, they shouldn't be trying it. :LOL: So, there's no real need for that, but it would be a bonus for those that like a good read. I think it's a good tutorial. Clean, organized, and to the point. Most importantly, it has pictures! Most need pictures to fully understand what's going on. :LOL:
     
  5. XeVexed

    XeVexed Banned BANNED
    0/47

    Joined:
    Nov 20, 2012
    Messages:
    60
    Likes Received:
    10
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Riverside, CA
    Console:
    Xbox
    I agree. And yes, pictures/vids/proof is ALWAYS important. Especially dealing with very complex things that you could screw up so easily. And thank you for the feedback man, greatly appreciated!
     
  6. BMTHstanton1990

    BMTHstanton1990 RGH/JTAG God
    0/47

    Joined:
    Mar 28, 2011
    Messages:
    843
    Likes Received:
    264
    Trophy Points:
    0
    Gender:
    Male
    Location:
    United States
    Console:
    Xbox
    No worries, man. Great to see other people doing tutorials! I thought i was the only one. :LOL: :LOL:

    Only thing i didn't see that should be up there (for the newbies of coarse) is making a back up of the file first. MANY MANY MANY people forget to do that as it is. xD
     
  7. XeVexed

    XeVexed Banned BANNED
    0/47

    Joined:
    Nov 20, 2012
    Messages:
    60
    Likes Received:
    10
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Riverside, CA
    Console:
    Xbox
    I will add it when I get back home from school. Thanks for reminding me!
     
  8. Lu

    Lusid Newbie
    0/47

    Joined:
    Dec 14, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Where is the "ihc-decompress.xex" file?
     

Share This Page

Close