Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

From the base of NTDLL - the address that you printed - you are now at the base of the PE file. Use your knowledge

From the base of NTDLL - the address that you printed - you are now at the base of the PE file. Use your knowledge of the PE file format to walk the structure and identify the number of exports. For this part, all we want to do is print that value. There are a variety of resources in the project folder. In addition, you can use PE parsing utilities such as PE Studio and the 010 Editor to help understand the data/file format itself.

I am lost with this C program... I need to do something in the bold below

int main(void){

DWORD numExports = 0; DWORD dwNtdllBase = 0;

_asm{ xor ebx, ebx ; //clear ebx mov ebx, fs:[ 0x30 ] ; //get a pointer to the PEB mov ebx, [ebx + 0x0C ] ; //get PEB->Ldr mov ebx, [ebx + 0x1C ] ; //get PEB->Ldr InitializationOrder mov ebx, [ebx + 0x08 ] ; //get entries base address //mov dwNtdllBase, ebx

// find exports via PE file //xor eax, ebx //xor eax, ebx //Start with image base mov eax, [ebx + 0x10 ] add ebx, edx mov numExports, esi }

printf("NTDLL number of exports: %d/n,. numExports);

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

=+ Are ballots compulsory?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago