Advertisement
Guest User

Untitled

a guest
Dec 30th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:00961034 sub_961034      proc near               ; CODE XREF: start-7B↓p
  2. .text:00961034
  3. .text:00961034 Buf             = byte ptr -6Ch
  4. .text:00961034 var_68          = byte ptr -68h
  5. .text:00961034 var_4           = dword ptr -4
  6. .text:00961034
  7. .text:00961034                 push    ebp
  8. .text:00961035                 mov     ebp, esp
  9. .text:00961037                 sub     esp, 6Ch
  10. .text:0096103A                 mov     eax, ___security_cookie
  11. .text:0096103F                 xor     eax, ebp
  12. .text:00961041                 mov     [ebp+var_4], eax
  13. .text:00961044                 push    ebx
  14. .text:00961045                 push    offset aPleaseEnterThe ; "Please enter the password: "
  15. .text:0096104A                 call    sub_961006
  16. .text:0096104F                 xor     ebx, ebx
  17. .text:00961051                 push    ebx
  18. .text:00961052                 call    ds:__acrt_iob_func
  19. .text:00961058                 push    eax             ; File
  20. .text:00961059                 lea     eax, [ebp+Buf]
  21. .text:0096105C                 push    64h             ; MaxCount
  22. .text:0096105E                 push    eax             ; Buf
  23. .text:0096105F                 call    ds:fgets
  24. .text:00961065                 lea     ecx, [ebp+Buf]
  25. .text:00961068                 add     esp, 14h
  26. .text:0096106B                 lea     edx, [ecx+1]
  27. .text:0096106E
  28. .text:0096106E loc_96106E:                             ; CODE XREF: sub_961034+3F↓j
  29. .text:0096106E                 mov     al, [ecx]
  30. .text:00961070                 inc     ecx
  31. .text:00961071                 test    al, al
  32. .text:00961073                 jnz     short loc_96106E
  33. .text:00961075                 sub     ecx, edx
  34. .text:00961077                 cmp     ecx, 5
  35. .text:0096107A                 jnz     short loc_9610C3
  36. .text:0096107C                 mov     [ebp+var_68], bl
  37. .text:0096107F
  38. .text:0096107F loc_96107F:                             ; CODE XREF: sub_961034+5E↓j
  39. .text:0096107F                 mov     eax, ebx
  40. .text:00961081                 and     eax, 3
  41. .text:00961084                 mov     al, [ebp+eax+Buf]
  42. .text:00961088                 xor     byte_963018[ebx], al
  43. .text:0096108E                 inc     ebx
  44. .text:0096108F                 cmp     ebx, 0Ah
  45. .text:00961092                 jb      short loc_96107F
  46. .text:00961094                 mov     ecx, offset byte_963018
  47. .text:00961099                 mov     edx, offset unk_963024
  48. .text:0096109E                 mov     eax, [ecx]
  49. .text:009610A0                 cmp     eax, [edx]
  50. .text:009610A2                 jnz     short loc_9610C3
  51. .text:009610A4                 mov     eax, [ecx+4]
  52. .text:009610A7                 cmp     eax, [edx+4]
  53. .text:009610AA                 jnz     short loc_9610C3
  54. .text:009610AC                 movzx   eax, byte ptr [ecx+8]
  55. .text:009610B0                 cmp     al, [edx+8]
  56. .text:009610B3                 jnz     short loc_9610C3
  57. .text:009610B5                 push    offset aYouDidIt ; "YOU DID IT !~!\r\n"
  58. .text:009610BA                 call    sub_961006
  59. .text:009610BF                 xor     eax, eax
  60. .text:009610C1                 jmp     short loc_9610D0
  61. .text:009610C3 ; ---------------------------------------------------------------------------
  62. .text:009610C3
  63. .text:009610C3 loc_9610C3:                             ; CODE XREF: sub_961034+46↑j
  64. .text:009610C3                                         ; sub_961034+6E↑j ...
  65. .text:009610C3                 push    offset aOhhhhNooTryAga ; "Ohhhh noo... try again.\r\n"
  66. .text:009610C8                 call    sub_961006
  67. .text:009610CD                 xor     eax, eax
  68. .text:009610CF                 inc     eax
  69. .text:009610D0
  70. .text:009610D0 loc_9610D0:                             ; CODE XREF: sub_961034+8D↑j
  71. .text:009610D0                 pop     ecx
  72. .text:009610D1                 mov     ecx, [ebp+var_4]
  73. .text:009610D4                 xor     ecx, ebp
  74. .text:009610D6                 pop     ebx
  75. .text:009610D7                 call    @__security_check_cookie@4 ; __security_check_cookie(x)
  76. .text:009610DC                 mov     esp, ebp
  77. .text:009610DE                 pop     ebp
  78. .text:009610DF                 retn
  79. .text:009610DF sub_961034      endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement