|
[原创]自己写的显示内存的数据函数
写驱动的时候写的这两个函数。很好用。 printhex proc dataaddr:dword,datalen:dword pushad mov ecx,datalen lea edx,buffer mov eax,dataaddr myloop: xor ebx,ebx mov bl,byte ptr[eax] shr ebx,4 .if ebx<0ah add ebx,30h .else add ebx,37h .endif mov byte ptr[edx],bl inc edx mov bl,byte ptr[eax] shl ebx,01ch shr ebx,01ch .if ebx<0ah add ebx,30h .else add ebx,37h .endif mov byte ptr[edx],bl inc edx mov byte ptr[edx],20h inc edx inc eax loop myloop invoke DbgPrint,addr buffer popad ret printhex endp printunicode proc dataaddr:dword pushad mov eax,dataaddr lea edx,buffer xor ebx,ebx mov bx,word ptr[eax] .while ebx!=0 mov cl,byte ptr[eax] .if cl!=0 mov byte ptr[edx],cl inc edx .endif inc eax mov cl,byte ptr[eax] .if cl!=0 mov byte ptr[edx],cl inc edx .endif inc eax mov bx,word ptr[eax] .endw mov byte ptr[edx],00h invoke DbgPrint,addr buffer popad ret printunicode endp |
|
[原创]网龙公司高薪诚聘:反病毒工程师
观望中...... |
|
[推荐]杭州天布网络 20万诚聘汇编、VC程序员
顶起.我的VC 不好 哦. |
|
[下载]驱动程序设计基础专题(chm版)
收藏来学一学 |
|
|
|
|
|
[求助]hook IoCreateSymbolicLink老是蓝屏 现在贴上原码。望大侠指点下
调试之后,终于明白了问题 newIoCreateSymbolicLink proc int 3 mov eax,[esp+4] add eax,4 mov eax,[eax] invoke printhex,eax,50 ;打印第一个参数的数据 mov eax,[esp] mov rfnaddr,eax mov [esp],$+22 mov edi,edi push ebp mov ebp,esp mov eax,dwoldIoCreateSymbolicLink add eax,5 jmp eax mov eax,rfnaddr mov [esp],eax ret newIoCreateSymbolicLink endp 再调用原IoCreateSymbolicLink 的时候eax会返回成功与否。我却把它改了。 修改了一下。没问题了 newIoCreateSymbolicLink proc mov eax,[esp+4] add eax,4 mov eax,[eax] invoke printunicode,eax mov eax,[esp] mov rfnaddr,eax mov [esp],$+22 mov edi,edi push ebp mov ebp,esp mov eax,dwoldIoCreateSymbolicLink add eax,5 jmp eax push edx mov edx,rfnaddr mov [esp+4],edx pop edx ret newIoCreateSymbolicLink endp |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值