- UID
- 89605
注册时间2015-5-1
阅读权限40
最后登录1970-1-1
独步武林
TA的每日心情 | 奋斗 2024-9-19 12:05 |
---|
签到天数: 1001 天 [LV.10]以坛为家III
|
楼主 |
发表于 2015-10-10 14:28:37
|
显示全部楼层
一切尽在代码中:
.386
.model flat, stdcall
option casemap:none
include windows.inc
include kernel32.inc
includelib kernel32.lib
include user32.inc
includelib user32.lib
.data
szCaption db 'Msg', 0
szText db 'Hello, World', 0
.code
start:
push 0
push offset szCaption
push offset szText
push 0
call dword ptr [offset MessageBox]
invoke ExitProcess, 0
ret
end start
;以下是反汇编代码
00401000 > PUSH 0
00401002 | PUSH a.00403000 ; /Style = MB_OK|3000|400000
00401007 | PUSH a.00403004 ; |Title = "Hello, World"
0040100C | PUSH 0 ; |Text = NULL
0040100E | PUSH CS ; |hOwner
0040100F | CALL <JMP.&USER32.MessageBoxA> ; \MessageBoxA
00401014 | PUSH 0 ; /ExitCode = 0
00401016 \ CALL <JMP.&KERNEL32.ExitProcess> ; \ExitProcess
0040101B RETN
0040101C JMP DWORD PTR DS:[<&KERNEL32.ExitProcess>; kernel32.ExitProcess
00401022 JMP DWORD PTR DS:[<&USER32.MessageBoxA>] ; USER32.MessageBoxA
小弟汇编功底太差,还在打基础 -_- 谢谢啦
|
|