Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Reverse Engineering

You're reading from   Mastering Reverse Engineering Re-engineer your ethical hacking skills

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781788838849
Length 436 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Reginald Wong Reginald Wong
Author Profile Icon Reginald Wong
Reginald Wong
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Preparing to Reverse 2. Identification and Extraction of Hidden Components FREE CHAPTER 3. The Low-Level Language 4. Static and Dynamic Reversing 5. Tools of the Trade 6. RE in Linux Platforms 7. RE for Windows Platforms 8. Sandboxing - Virtualization as a Component for RE 9. Binary Obfuscation Techniques 10. Packing and Encryption 11. Anti-analysis Tricks 12. Practical Reverse Engineering of a Windows Executable 13. Reversing Various File Types 14. Other Books You May Enjoy

Dumping processes from memory


A packed file's data cannot be seen in plain sight, but if we let it run, everything is expected to be unpacked in its process space. What we aim to do is to  produce a version of the file in its unpacked state. To do that, we need to dump the whole memory then extract the executable's process image to a file.

Memory dumping with VirtualBox

We will be using Volatility to dump the process from a suspended VirtualBox image. First of all, we need to learn how to dump a VirtualBox image:  

  1. Enable the VirtualBox's debug menu:
    • For Windows VirtualBox hosts:
      • Enter a new environment variable named VBOX_GUI_DBG_ENABLED and set it to true. This is shown in the following screenshot:
    • For Linux hosts:
      • Edit/etc/environment as a root user
      • Add a new entry VBOX_GUI_DBG_ENABLED=true 
      • Execute the command: source /etc/environment
      • Restart VirtualBox if already opened
  1. Run the packed executable in the Windows guest. We are going to run upxed.exe from our GitHub page.
  2. From the VBoxDbg console...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime