WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

PE imagebase, I know I can retrieve the image base of exe file or dll file with the help of that method

monst123
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 50330
Joined: 19-March 12


i have seen tut by icelzion for validating pe, i know i can retrieve the image base of exe file or dll file with the help of that method, but is there any other way to do the same thing. i mean short method to get the image base of exe or dll file. please share if you know.
PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 873
Member No.: 5019
Joined: 13-May 07


It gives many ways to get the imagebase

1.via File Map (like Izelions tut)
2.with Module32First and ModuleEntry32.modBaseAddr
3.with ReadFile
4.Peb and Teb
...
..
.
PMUsers Website
Top
Wessol
Quote Post


Member
**

Group: Members
Posts: 32
Member No.: 51593
Joined: 16-May 12


Well, to get the imagebase im using:

Push 0
Call GetModuleHandle
PMEmail Poster
Top
ragdog
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 873
Member No.: 5019
Joined: 13-May 07


From own process wink.gif
But this question was "retrieve the image base of exe file or dll file"

Greets,


PMUsers Website
Top
[FFFFFFFF]
Quote Post


New Member
*

Group: Members
Posts: 9
Member No.: 44117
Joined: 20-May 11


from first instruction assuming win 7 x64
MOV EAX,DWORD PTR DS:[EBX+8]

or

DB 064h,0A1h,018h,000h,000h,000h ; = mov eax,dword ptr fs:[18] open PEB structure
mov eax,dword ptr ds:[eax+030h]
mov eax,dword ptr ds:[eax+08h] ; get module imagebase address
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) [1] 2  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google