Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:000003F9 ; =============== S U B R O U T I N E =======================================
- .text:000003F9
- .text:000003F9 ; Attributes: bp-based frame
- .text:000003F9
- .text:000003F9 ; int __stdcall _AhnHS_StartService()
- .text:000003F9 public __AhnHS_StartService@0
- .text:000003F9 __AhnHS_StartService@0 proc near
- .text:000003F9
- .text:000003F9 var_10 = dword ptr -10h
- .text:000003F9 var_C = dword ptr -0Ch
- .text:000003F9 var_8 = dword ptr -8
- .text:000003F9 var_4 = dword ptr -4
- .text:000003F9
- .text:000003F9 push ebp
- .text:000003FA mov ebp, esp
- .text:000003FC sub esp, 10h
- .text:000003FF mov [ebp+var_4], 0
- .text:00000406 cmp ds:?g_hInstLib@@3PAUHINSTANCE__@@A, 0 ; HINSTANCE__ * g_hInstLib
- .text:0000040D jz short loc_418
- .text:0000040F cmp ds:_g_pfnSecureFunctionCall, 0
- .text:00000416 jnz short loc_421
- .text:00000418
- .text:00000418 loc_418: ; CODE XREF: _AhnHS_StartService()+14j
- .text:00000418 mov [ebp+var_4], 3
- .text:0000041F jmp short loc_478
- .text:00000421 ; ---------------------------------------------------------------------------
- .text:00000421
- .text:00000421 loc_421: ; CODE XREF: _AhnHS_StartService()+1Dj
- .text:00000421 lea eax, [ebp+var_4]
- .text:00000424 push eax
- .text:00000425 push 0
- .text:00000427 push 5
- .text:00000429 call ds:_g_pfnSecureFunctionCall
- .text:0000042F and eax, 0FFh
- .text:00000434 cmp eax, 1
- .text:00000437 jz short loc_440 // you want to go to cmp g_buseMonitor
- .text:00000439 mov [ebp+var_4], 1 // this makes the return HS_ERR1
- .text:00000440
- .text:00000440 loc_440: ; CODE XREF: _AhnHS_StartService()+3Ej
- .text:00000440 ; _AhnHS_StartService():loc_478j
- .text:00000440 cmp ds:?g_bUseMonitor@@3HA, 0 ; int g_bUseMonitor
- .text:00000447 jz short loc_473 // you want to jump
- .text:00000449 cmp [ebp+var_4], 0
- .text:0000044D jz short loc_473
- .text:0000044F mov [ebp+var_8], 0
- .text:00000456 mov ecx, [ebp+var_4]
- .text:00000459 mov [ebp+var_10], ecx
- .text:0000045C mov [ebp+var_C], offset $SG78338
- .text:00000463 lea edx, [ebp+var_8]
- .text:00000466 push edx
- .text:00000467 lea eax, [ebp+var_10]
- .text:0000046A push eax
- .text:0000046B push 12h
- .text:0000046D call ds:_g_pfnSecureFunctionCall
- .text:00000473
- .text:00000473 loc_473: ; CODE XREF: _AhnHS_StartService()+4Ej
- .text:00000473 ; _AhnHS_StartService()+54j
- .text:00000473 mov eax, [ebp+var_4]
- .text:00000476 jmp short loc_47A // oh look code exit
- .text:00000478 ; ---------------------------------------------------------------------------
- .text:00000478
- .text:00000478 loc_478: ; CODE XREF: _AhnHS_StartService()+26j
- .text:00000478 jmp short loc_440
- .text:0000047A ; ---------------------------------------------------------------------------
- .text:0000047A
- .text:0000047A loc_47A: ; CODE XREF: _AhnHS_StartService()+7Dj
- .text:0000047A mov esp, ebp
- .text:0000047C pop ebp
- .text:0000047D retn
- .text:0000047D __AhnHS_StartService@0 endp
Add Comment
Please, Sign In to add comment