关于调试.text

博主表示.text调试老是出现问题,且相册也出了毛病,询问是否有稳定点的版本。

02.gif郁闷,.text调试老有问题,这回相册出了毛病,不知道现在有没有稳定点的版本呀sad.gif

转载于:https://www.cnblogs.com/GSpring/archive/2004/11/07/61187.html

详细注释每一行汇编 .text:00000001800CC9B0 public DbgUiDebugActiveProcess .text:00000001800CC9B0 DbgUiDebugActiveProcess proc near ; DATA XREF: .rdata:0000000180120BE8↓o .text:00000001800CC9B0 ; .rdata:off_1801521D8↓o ... .text:00000001800CC9B0 .text:00000001800CC9B0 arg_0 = qword ptr 8 .text:00000001800CC9B0 .text:00000001800CC9B0 mov [rsp+arg_0], rbx .text:00000001800CC9B5 push rdi .text:00000001800CC9B6 sub rsp, 20h .text:00000001800CC9BA mov rdx, gs:30h .text:00000001800CC9C3 mov rdi, rcx ; rdi= Process 被调试进程的句柄 .text:00000001800CC9C6 mov rdx, [rdx+16A8h] ; rdx=调试器中存放的调试对象 .text:00000001800CC9CD call NtDebugActiveProcess ; 将调试器与被调试进程连接在一起 .text:00000001800CC9D2 mov ebx, eax .text:00000001800CC9D4 test eax, eax .text:00000001800CC9D6 js short loc_1800CC9FE .text:00000001800CC9D8 mov rcx, rdi .text:00000001800CC9DB call DbgUiIssueRemoteBreakin ; 这个函数的作用就是创建一个远程线程,然后int3中断 .text:00000001800CC9E0 mov ebx, eax .text:00000001800CC9E2 test eax, eax .text:00000001800CC9E4 jns short loc_1800CC9FE .text:00000001800CC9E6 mov rdx, gs:30h ; 如果断点失败了就终止了 .text:00000001800CC9E6 ; 必须保证成功 .text:00000001800CC9EF mov rcx, rdi .text:00000001800CC9F2 mov rdx, [rdx+16A8h] .text:00000001800CC9F9 call ZwRemoveProcessDebug .text:00000001800CC9FE .text:00000001800CC9FE loc_1800CC9FE: ; CODE XREF: DbgUiDebugActiveProcess+26↑j .text:00000001800CC9FE ; DbgUiDebugActiveProcess+34↑j .text:00000001800CC9FE mov eax, ebx .text:00000001800CCA00 mov rbx, [rsp+28h+arg_0] .text:00000001800CCA05 add rsp, 20h .text:00000001800CCA09 pop rdi .text:00000001800CCA0A retn .text:00000001800CCA0A ; --------------------------------------------------------------------------- .text:00000001800CCA0B db 0CCh .text:00000001800CCA0B DbgUiDebugActiveProcess endp
08-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值