Guest User

Untitled

a guest
Nov 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ¡
  2. .text:01331000 sub_1331000 proc near                   ; CODE XREF: start-6Dp
  3. .text:01331000
  4. .text:01331000 var_8= dword ptr -8
  5. .text:01331000 var_4= dword ptr -4
  6. .text:01331000
  7. .text:01331000 push    ebp
  8. .text:01331001 mov     ebp, esp
  9. .text:01331003 sub     esp, 8
  10. .text:01331006 push    esi
  11. .text:01331007 mov     esi, ds:printf
  12. .text:0133100D mov     [ebp+var_4], 0
  13. .text:01331014 push    offset aEnterPassword           ; "Enter password!\n"
  14. .text:01331019 mov     [ebp+var_8], 0
  15. .text:01331020 call    esi ; printf
  16. .text:01331022 lea     eax, [ebp+var_4]
  17. .text:01331025 push    eax
  18. .text:01331026 push    offset aLd                      ; "%ld"
  19. .text:0133102B call    ds:scanf
  20. .text:01331031 mov     eax, [ebp+var_4]
  21. .text:01331034 add     esp, 0Ch
  22. .text:01331037 cmp     eax, 186A0h
  23. .text:0133103C jg      short loc_1331060
  24. .text:0133103E lea     eax, ds:0Ah[eax*2]
  25. .text:01331045 mov     [ebp+var_4], eax
  26. .text:01331048 cmp     eax, 1E240h
  27. .text:0133104D jnz     short loc_1331060
  28. .text:0133104F push    offset aCorrect                 ; "Correct\n"
  29. .text:01331054 call    esi ; printf
  30. .text:01331056 add     esp, 4
  31. .text:01331059 xor     eax, eax
  32. .text:0133105B pop     esi
  33. .text:0133105C mov     esp, ebp
  34. .text:0133105E pop     ebp
  35. .text:0133105F retn
  36. .text:01331060 ; ---------------------------------------------------------------------------
  37. .text:01331060
  38. .text:01331060 loc_1331060:                            ; CODE XREF: sub_1331000+3Cj
  39. .text:01331060                                         ; sub_1331000+4Dj
  40. .text:01331060 push    offset aWrongPassword           ; "Wrong password\n"
  41. .text:01331065 call    esi ; printf
  42. .text:01331067 add     esp, 4
  43. .text:0133106A xor     eax, eax
  44. .text:0133106C pop     esi
  45. .text:0133106D mov     esp, ebp
  46. .text:0133106F pop     ebp
  47. .text:01331070 retn
  48. .text:01331070 sub_1331000 endp
  49. .text:01331070
  50. .text:01331070 ; ---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment