www.SecurityXploded.com
Disclaimer
The Content, Demonstration, Source Code and Programs presented here is "AS IS"
without any warranty or conditio...
Acknowledgement
 Special thanks to null & Garage4Hackers community for their extended support and
cooperation.
 Thanks t...
Reversing & Malware Analysis Training
This presentation is part of our Reverse Engineering & Malware Analysis Training
pro...
Who am I #1
Amit Malik (sometimes DouBle_Zer0,DZZ)
 Member SecurityXploded
 Security Researcher @ McAfee Labs
 RE, Expl...
Who am I #2
Swapnil Pathak
 Member SecurityXploded
 Security Researcher @ McAfee Labs
 RE, Malware Analysis, Network Se...
Course Q&A
 Keep yourself up to date with latest security news
 http://www.securityphresh.com
 For Q&A, join our mailin...
Windows Architecture
www.SecurityXploded.com
Memory Management
 Virtual Memory
- An invisiblelayerbetween a softwareand physicalmemory
- Every process first get loade...
Memory Management Cont.
 UserAddressSpace
- Allocatedfor user mode applications.
- All processes executein theirown virtu...
Kernel & UserAddress Space
www.SecurityXploded.com
Process and Thread
 Process
- Executinginstanceofan application.
- Isolatedaddress space
- PEB data structurestoreinforma...
PEB (Process Environment Block)
An opaque data structure that store information about process in user
space
www.SecurityXp...
PEB Cont.
www.SecurityXploded.com
TEB (Thread Environment Block)
TEB is a data structure that store information about thread
www.SecurityXploded.com
Application Programming Interface
 API
- Includesfunctions,classes, datastructures and variables
- Interfacebetween vario...
System Service Dispatching
www.SecurityXploded.com
System Service Dispatching Cont.
www.SecurityXploded.com
Important API
 File and Directories
- CreateFile, GetSystemDirectory, ReadFile, WriteFile etc
 Network
- socket, send, r...
Important API Cont.
 Processes, Threads, Synchronization using mutex, semaphore.
- CreateProcess, ReadProcessMemory,
Writ...
Reference
 Complete Reference Guide for Reversing & Malware Analysis Training
www.SecurityXploded.com
Thank You !
http://SecurityXploded.com
Upcoming SlideShare
Loading in …5
×

Reversing & malware analysis training part 2 introduction to windows internals

688
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
688
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
70
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Reversing & malware analysis training part 2 introduction to windows internals

  1. 1. www.SecurityXploded.com
  2. 2. Disclaimer The Content, Demonstration, Source Code and Programs presented here is "AS IS" without any warranty or conditions of any kind. Also the views/ideas/knowledge expressed here are solely of the trainer’s only and nothing to do with the company or the organization in which the trainer is currently working. However in no circumstances neither the trainer nor SecurityXploded is responsible for any damage or loss caused due to use or misuse of the information presented here. www.SecurityXploded.com
  3. 3. Acknowledgement  Special thanks to null & Garage4Hackers community for their extended support and cooperation.  Thanks to all the trainers who have devoted their precious time and countless hours to make it happen. www.SecurityXploded.com
  4. 4. Reversing & Malware Analysis Training This presentation is part of our Reverse Engineering & Malware Analysis Training program. Currently it is delivered only during our local meet for FREE of cost. For complete details of this course, visit our Security Training page. www.SecurityXploded.com
  5. 5. Who am I #1 Amit Malik (sometimes DouBle_Zer0,DZZ)  Member SecurityXploded  Security Researcher @ McAfee Labs  RE, Exploit Analysis/Development, Malware Analysis  Email: m.amit30@gmail.com www.SecurityXploded.com
  6. 6. Who am I #2 Swapnil Pathak  Member SecurityXploded  Security Researcher @ McAfee Labs  RE, Malware Analysis, Network Security  Email: swapnilpathak101@gmail.com www.SecurityXploded.com
  7. 7. Course Q&A  Keep yourself up to date with latest security news  http://www.securityphresh.com  For Q&A, join our mailing list.  http://groups.google.com/group/securityxploded www.SecurityXploded.com
  8. 8. Windows Architecture www.SecurityXploded.com
  9. 9. Memory Management  Virtual Memory - An invisiblelayerbetween a softwareand physicalmemory - Every process first get loaded into its virtual memory address space - Small units called “pages”are used to do mapping between physicalmemory and virtual memory.  Paging - Memory managementschemethat stores and retrieves datafrom secondary storageforuse in main memory - Uses same size blocks called pages - Pagetable is used to translatevirtualaddresses in physicalmemory addresses www.SecurityXploded.com
  10. 10. Memory Management Cont.  UserAddressSpace - Allocatedfor user mode applications. - All processes executein theirown virtual space. - Useoperating system dlls to interact with kernel  Kernel AddressSpace - Strictlyreserved forkernel, devicedrivers and operatingsystemexecutive. - No user mode applicationcan directly interactwith thekernel. www.SecurityXploded.com
  11. 11. Kernel & UserAddress Space www.SecurityXploded.com
  12. 12. Process and Thread  Process - Executinginstanceofan application. - Isolatedaddress space - PEB data structurestoreinformationabout process - PEB is an user space data structure  Threads - Multiplethreads sharethe same address spacein the process. - Each process has at least a single executingthread. - TEBdata structurestoreinformation aboutthread www.SecurityXploded.com
  13. 13. PEB (Process Environment Block) An opaque data structure that store information about process in user space www.SecurityXploded.com
  14. 14. PEB Cont. www.SecurityXploded.com
  15. 15. TEB (Thread Environment Block) TEB is a data structure that store information about thread www.SecurityXploded.com
  16. 16. Application Programming Interface  API - Includesfunctions,classes, datastructures and variables - Interfacebetween varioussoftwarecomponents to communicatewith each other. - WindowsAPIs areused to interact with kernel or othermodules.  MSDN - Providesdocumentationforvarious APIfunctions.  System Dlls - ntdll.dll, kernel32.dll, user32.dll, advapi32.dll, hal.dll etc www.SecurityXploded.com
  17. 17. System Service Dispatching www.SecurityXploded.com
  18. 18. System Service Dispatching Cont. www.SecurityXploded.com
  19. 19. Important API  File and Directories - CreateFile, GetSystemDirectory, ReadFile, WriteFile etc  Network - socket, send, recv, URLDownloadToFile etc  Registry - RegOpenKey, RegSetValue, RegQueryValue etc www.SecurityXploded.com
  20. 20. Important API Cont.  Processes, Threads, Synchronization using mutex, semaphore. - CreateProcess, ReadProcessMemory, WriteProcessMemory,CreateRemoteThread, CreateMutex etc  Memory - VirtualAlloc, VirtualProtect ,HeapAlloc, LocalAlloc etc www.SecurityXploded.com
  21. 21. Reference  Complete Reference Guide for Reversing & Malware Analysis Training www.SecurityXploded.com
  22. 22. Thank You ! http://SecurityXploded.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×