, , Disassembly Visual C++, , , Disassembly.
, Disassembly .
Go To, Go To Edit <Ctrl>+<G>. , Enter address expression . Go To , , .
, , KERNEL32.DLL, LoadLibrary Disassembly, Go
{,, kerne!32}_LoadLibraryA@4
, Disassembly ("drag-and-drop"). , , , . Disassembly .
, , Disassembly Show Next Statement. .
5 , . , .
Visual Basic 5 "" (native code), , "" . Visual Basic LINK.EXE 2.. Visual C++, , Visual Basic, . , LINK.EXE . 2. . Visual C++ 2. , .
(IDE) Visual C++ VB6.EXE . , {,, kernel32}_CreateProcessA@40. Visual Basic, , ' "" File|Make IDE Visual Basic. _CreateProcessA@4, 2., LINK.EXE.
Windows 2000 RC2 _CreateProcessA@40 0x77E8D7E6, , (PUSH EBP), . createProcess, . View|Debug Wmdows|Memory Memory Address ESP, , .
Memory . . Memory : byte, short hex (2 WORD) long hex (4 DWORD).
. 6.4 Memory CreateProcess. OxFB6B3F6J 10 yrwbb CreateProcess (. . 6.5). CreateProcess 40 , 4 . , , Memory , .
. 6.4. Memory Visual C++
. , Memory, . , , , () , , Watch. Watch . , ipAppiicationName , Watch <char*)Oxooi2EAC4. , :
000124 "c:\vb\C2.EXE"
000124 "@ -11 "e:\temp\VB815574
-f "c:\junk\vb\Forml.frm _W 3 _Gy _G5
-GS4096 _dos _Z1
-Fo"c:\junk\vb\Forml.OBJ" _Zi _QIfdiv
-ML _basic"
6.5. , VB6.EXE CreateProcess
|
|
|
0x001 24 |
LPCTSTR |
IpApplicationName |
0x0012EBC4 |
LPTSTR |
IpCommandLine |
0x00000000 |
LPSECURITY_ATTRIBUTES |
IpProcessAttributes |
0x00000000 |
LPSECURITY_ATTRIBUTES |
IpThreadAttributes |
0x00000001 |
BOOL |
blnheritHandles |
0x08000000 |
DWORD |
dwCreationFlags |
0x00000000 |
LPVOID |
IpEnvi r onment |
0x00000000 |
LPCTSTR |
IpCurrentDirectory |
0x001 2EA3C |
LPSTARTUPINFO |
IpStartupInfo |
0x001 2EC60 |
LPPROCESS_INFORMATION |
IpProcessInformation |
, , . . , . Memory .
Set Next Statement Disassembly ( ) EIP ( ), . Set Next Statement "", Disassembly.
EIP, . .
, , , . , 0x00401005.
00401032 PUSH EBP
00401033 MOV EBP , ESP
00401035 PUSH 404410h
0040103 CALL 00401005h
0040103F ADD ESP , 4
00401042 POP EBP
00401043 RET
, , ADD 0x0040103F . , _cded- ( ADD ). , 0x00401035, , PUSH .
Memory Disassembly . , Disassembly, Memory , , . , . Disassembly Memory . , Memory , . , , , . , . , . , . Visual C++ 6 Module List, , . , , , , . , , . , , .
, Memory Disassembly. Memory Address ESP , Long Hex Format . , Module List, Memory .
, Disassembly. , , .
ESP , , Memory . , , . "" , ESP .
, Memory. -, Memory , , 255 . , Memory .
. , Visual C++ , . -, , , . . , , ( Memory) . , Memory , . , , Address, . , Memory , .
GlobalUnlock?
.
, , . , , . , Print . ( ) . , GlobalUnlock.
-, , - - (handle-based memory) GlobalAlloc, GlobalLock, GlobalFree
GlobalUnlock) \/132-|». , , , 16- . , API- - .
GlobalAlloc, GlobalLock GlobalUnlock, , . , . , , .
Print, , GlobalAlloc , , , 5. Win32 , , , . Win32 - 0, 4, 8 , . , GlobalAlloc, ( ) .
, , , . , . , " ", , . .
, 32- Windows- . .
. , Print , Print . . , , - , .
, MSDN. 10 . PRINTDLG, Print, API- PrintDlg. hDevMode , Print. , GlobalLock . DEVMODE, . , . GlobalAlloc , , , , GlobalAlloc .
. , " ", , GlobalLock. Windows 3.1 , 16- Win32 API, .
. , "--". Microsoft ? , . , 32- Windows- Win32 . ( ) . ( ), , Microsoft .
, . , . , Print, , , " " ( - ).
5 , . , , .
"Endianness" CPU, . Intel CPU "Little Endian", , (. . ) . , 0x1234 0x34 0x12. . , . Memory , 0x12345678, 0x78 0x56 0x34 0x12.
: "Endian" " " , RFC- (Danny Cohen, 1980) . :
http://www.op.net/docs/RFCs/ien-137.
RFC Request for Comments ( ).
Disassembly, , ( ). :
Watch Visual C++ "", . , , , , , Watch (char*)@EDi, , .
, Visual C++ . /FAS Project Options C++ Project Settings, ASM- . ASM- , , . ASM- , .
Microsoft (Microsoft Macro Assembler MASM), . MASM, - -. ASM-.
Intel CPU, , Disassembly. Intel CPU, , , , , , , , , . , .
, , , . , - , , , , . .
10.11.2021 - 12:37: - Personalias -> WHO IS WHO - - _. 10.11.2021 - 12:36: - Conscience -> . ? - _. 10.11.2021 - 12:36: , , - Upbringing, Inlightening, Education -> ... - _. 10.11.2021 - 12:35: - Ecology -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> . - _. 10.11.2021 - 12:34: , , - Upbringing, Inlightening, Education -> , - _. 10.11.2021 - 09:18: - New Technologies -> , 5G- - _. 10.11.2021 - 09:18: - Ecology -> - _. 10.11.2021 - 09:16: - Ecology -> - _. 10.11.2021 - 09:15: , , - Upbringing, Inlightening, Education -> - _. 10.11.2021 - 09:13: , , - Upbringing, Inlightening, Education -> - _. |