Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ¡
- .text:01331000 sub_1331000 proc near ; CODE XREF: start-6Dp
- .text:01331000
- .text:01331000 var_8= dword ptr -8
- .text:01331000 var_4= dword ptr -4
- .text:01331000
- .text:01331000 push ebp
- .text:01331001 mov ebp, esp
- .text:01331003 sub esp, 8
- .text:01331006 push esi
- .text:01331007 mov esi, ds:printf
- .text:0133100D mov [ebp+var_4], 0
- .text:01331014 push offset aEnterPassword ; "Enter password!\n"
- .text:01331019 mov [ebp+var_8], 0
- .text:01331020 call esi ; printf
- .text:01331022 lea eax, [ebp+var_4]
- .text:01331025 push eax
- .text:01331026 push offset aLd ; "%ld"
- .text:0133102B call ds:scanf
- .text:01331031 mov eax, [ebp+var_4]
- .text:01331034 add esp, 0Ch
- .text:01331037 cmp eax, 186A0h
- .text:0133103C jg short loc_1331060
- .text:0133103E lea eax, ds:0Ah[eax*2]
- .text:01331045 mov [ebp+var_4], eax
- .text:01331048 cmp eax, 1E240h
- .text:0133104D jnz short loc_1331060
- .text:0133104F push offset aCorrect ; "Correct\n"
- .text:01331054 call esi ; printf
- .text:01331056 add esp, 4
- .text:01331059 xor eax, eax
- .text:0133105B pop esi
- .text:0133105C mov esp, ebp
- .text:0133105E pop ebp
- .text:0133105F retn
- .text:01331060 ; ---------------------------------------------------------------------------
- .text:01331060
- .text:01331060 loc_1331060: ; CODE XREF: sub_1331000+3Cj
- .text:01331060 ; sub_1331000+4Dj
- .text:01331060 push offset aWrongPassword ; "Wrong password\n"
- .text:01331065 call esi ; printf
- .text:01331067 add esp, 4
- .text:0133106A xor eax, eax
- .text:0133106C pop esi
- .text:0133106D mov esp, ebp
- .text:0133106F pop ebp
- .text:01331070 retn
- .text:01331070 sub_1331000 endp
- .text:01331070
- .text:01331070 ; ---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment