Advertisement
moreaki

Untitled

Nov 20th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int EntryPoint() {
  2.     var_8 = *___stack_chk_guard;
  3.     printf("< T0AD K3YG3N >\n");
  4.     printf("Username: ");
  5.     maxInputSize = 0;
  6.     fgets(*0x100000f36, 0x9, *___stdinp);
  7.     goto loc_100000d2c;
  8.  
  9. loc_100000d2c:
  10.     if (maxInputSize >= 9) goto loc_100000d68;
  11.  
  12. loc_100000d39:
  13.     if (sign_extend_64(*(int8_t *)(rbp + sign_extend_64(maxInputSize) + 0xffffffffffffffef)) != 32) goto loc_100000d53;
  14.  
  15. loc_100000e76:
  16.     printf("Access Denied.\n");
  17.     goto loc_100000eab;
  18.  
  19. loc_100000eab:
  20.     var_7C = 0;
  21.     if (*___stack_chk_guard == var_8) {
  22.             rax = var_7C;
  23.     }
  24.     else {
  25.             rax = __stack_chk_fail();
  26.     }
  27.     return rax;
  28.  
  29. loc_100000d53:
  30.     maxInputSize = maxInputSize + 1;
  31.     goto loc_100000d2c;
  32.  
  33. loc_100000d68:
  34.     fflush(*___stdinp);
  35.     printf("Password: ");
  36.     fgets(*0x100000f3f, 9, *___stdinp);
  37.     mult = sign_extend_64(var_10) / 3;
  38.     for (i = 0; i < 9; i = i + 1) {
  39.             rcx = sign_extend_64(*(int8_t *)(rbp + sign_extend_64(i) + 0xffffffffffffffef));
  40.             *(int8_t *)(rbp + sign_extend_64(i) + 0xffffffffffffffdd) = sign_extend_64((rcx ^ mult) & 60) + 48;
  41.             mult = ((rcx ^ mult) & 60) * 3;
  42.     }
  43.     var_3C = 0;
  44.     goto loc_100000e1f;
  45.  
  46. loc_100000e1f:
  47.     if (sign_extend_64(var_3C) >= strlen(*0x100000f3f)) goto loc_100000e93;
  48.  
  49. loc_100000e3d:
  50.     if (sign_extend_64(*(int8_t *)(rbp + sign_extend_64(var_3C) + 0xffffffffffffffdd)) == sign_extend_64(*(int8_t *)(rbp + sign_extend_64(var_3C) + 0xffffffffffffffe6))) goto loc_100000e61;
  51.     goto loc_100000e76;
  52.  
  53. loc_100000e61:
  54.     var_3C = var_3C + 1;
  55.     goto loc_100000e1f;
  56.  
  57. loc_100000e93:
  58.     printf("Access Granted.\n");
  59.     goto loc_100000eab;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement