Windows Memory Layout Flashcards

Win32 process memory layout

1
Q

Kernel land

A

0x7fffffff to 0xffffffff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Peb range

A

0x7ffdf000 and higher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Userland

A

0x00000000 to 0x7fffffff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Win32 layout

A
0x00000000
                                Stack [grows to lower address]
                                Heap [grows to higher address]
0x00400000  Program image
                                DLL
                                TEB
0x7ffdf0000   PEB
============
0x7fffffff to 0xffffffff Kernel land
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Executive process is?

A

Structure containing process attributes and pointers to related data structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Process Environment Block

A

EPROCESS structure inside user land

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Thread

A

Threads serve as the basic unit to which OS allocates processor time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

TEB

A

Thread env block stores

  1. context information for image loader and various windows dll
  2. location of exception handler list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DLL

A

Shared code libraries which allow for efficient code reuse and memory allocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Program Image

A

This memory location is where executable resides.
.text contains executable code
.data contains global variables
.rsrc non exec resources such as icons, text and strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Heap

A

Arbitrary but persistent portion of memory used to store global variables.
The memory allocation at heap is managed by the application.
Memory is freed when program terminates or voluntarily frees itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly