首页
社区
课程
招聘
[旧帖] [求助]如何写成if形式,忘指教 0.00雪花
发表于: 2013-6-7 17:26 1819

[旧帖] [求助]如何写成if形式,忘指教 0.00雪花

2013-6-7 17:26
1819
不用goto语句,只用if怎么写成C源码
INIT:010B6005 ; NTSTATUS __stdcall DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
INIT:010B6005                 public DriverEntry  
INIT:010B6005 DriverEntry     proc near         
INIT:010B6005                 mov     edi, edi        
INIT:010B6007                 push    ebp            
INIT:010B6008                 mov     ebp, esp        
INIT:010B600A                 mov     eax, ___security_cookie      
INIT:010B600F                 test    eax, eax        
INIT:010B6011                 mov     ecx, 0BB40h
INIT:010B6016                 jz      short loc_10B601C                        if(___security_cookie!=0)
INIT:010B6018                 cmp     eax, ecx                                   {
INIT:010B601A                 jnz     short loc_10B603F                            if(___security_cookie!=0BB40h)
INIT:010B601C                                                                                        goto:loc_10B603F
INIT:010B601C loc_10B601C: ; CODE XREF: DriverEntry+11j        }
INIT:010B601C                 mov     edx, ds:KeTickCount                   ULONG *KeTickCount;
INIT:010B6022                 mov     eax, offset ___security_cookie
INIT:010B6027                 shr     eax, 8                                         (ULONG)(&___security_cookie)/256
INIT:010B602A                 xor     eax, [edx]                              
INIT:010B602C                 and     eax, 0FFFFh
INIT:010B6031                 mov     ___security_cookie, eax
INIT:010B6036                 jnz     short loc_10B603F                      if(___security_cookie==0)
INIT:010B6038                 mov     eax, ecx                                           ___security_cookie=0BB40h
INIT:010B603A                 mov     ___security_cookie, eax
INIT:010B603F
INIT:010B603F loc_10B603F:                            ; CODE XREF: DriverEntry+15j
INIT:010B603F                                         ; DriverEntry+31j
INIT:010B603F                 not     eax
INIT:010B6041                 mov     BugCheckParameter3, eax
INIT:010B6046                 pop     ebp
INIT:010B6047                 jmp     loc_100F40E
INIT:010B6047 DriverEntry     endp

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 29
活跃值: (37)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
if(___security_cookie==0BB40h)
       {
            /*current code here*/
        }
if(___security_cookie!=0)
       {
            /*current code here*/
        }
loc_10B603F:
        /*last jxx code here*/
2013-6-8 06:29
0
游客
登录 | 注册 方可回帖
返回
//