Skip to content

Instantly share code, notes, and snippets.

@jiva
Created September 6, 2017 04:32
Show Gist options
  • Select an option

  • Save jiva/44f89a44a03914c7e87432d1b0ea84d6 to your computer and use it in GitHub Desktop.

Select an option

Save jiva/44f89a44a03914c7e87432d1b0ea84d6 to your computer and use it in GitHub Desktop.
jiva.io | microcorruption | disassembly | johannesburg | login
452c <login>
452c: 3150 eeff add #0xffee, sp
4530: f140 ec00 1100 mov.b #0xec, 0x11(sp)
4536: 3f40 7c44 mov #0x447c "Enter the password to continue.", r15
453a: b012 f845 call #0x45f8 <puts>
453e: 3f40 9c44 mov #0x449c "Remember: passwords are between 8 and 16 characters.", r15
4542: b012 f845 call #0x45f8 <puts>
4546: 3e40 3f00 mov #0x3f, r14
454a: 3f40 0024 mov #0x2400, r15
454e: b012 e845 call #0x45e8 <getsn>
4552: 3e40 0024 mov #0x2400, r14
4556: 0f41 mov sp, r15
4558: b012 2446 call #0x4624 <strcpy>
455c: 0f41 mov sp, r15
455e: b012 5244 call #0x4452 <test_password_valid>
4562: 0f93 tst r15
4564: 0524 jz #0x4570 <login+0x44>
4566: b012 4644 call #0x4446 <unlock_door>
456a: 3f40 d144 mov #0x44d1 "Access granted.", r15
456e: 023c jmp #0x4574 <login+0x48>
4570: 3f40 e144 mov #0x44e1 "That password is not correct.", r15
4574: b012 f845 call #0x45f8 <puts>
4578: f190 ec00 1100 cmp.b #0xec, 0x11(sp)
457e: 0624 jeq #0x458c <login+0x60>
4580: 3f40 ff44 mov #0x44ff "Invalid Password Length: password too long.", r15
4584: b012 f845 call #0x45f8 <puts>
4588: 3040 3c44 br #0x443c <__stop_progExec__>
458c: 3150 1200 add #0x12, sp
4590: 3041 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment