Advertisement
Guest User

more

a guest
Jan 12th, 2014
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function meth_static_Utils_parseHeaders_ {
  2.     var_152 = **stack_chk_guard;
  3.     eax = [arg_8 stringByReplacingOccurrencesOfString:@"\\r" withString:@""];
  4.     esi = eax;
  5.     eax = [NSMutableDictionary alloc];
  6.     eax = [eax init];
  7.     var_32 = eax;
  8.     [eax setObject:esi forKey:@"RAW_REQUEST"];
  9.     eax = [esi componentsSeparatedByString:@"\\n"];
  10.     var_40 = eax;
  11.     eax = [eax count];
  12.     if (eax == 0x0) goto loc_2d23b;
  13.     goto loc_2d09f;
  14.  
  15. loc_2d23b:
  16.     eax = [var_40 countByEnumeratingWithState:&var_112 objects:&var_48 count:0x10];
  17.     var_36 = eax;
  18.     if (eax != 0x0) {
  19.             var_28 = *var_120;
  20.             do {
  21.                     ebx = 0x0;
  22.                     do {
  23.                             if (*var_120 != var_28) {
  24.                                     objc_enumerationMutation(var_40);
  25.                             }
  26.                             eax = [*(var_116 + ebx * 0x4) rangeOfString:@": "];
  27.                             esi = eax;
  28.                             if (edx == 0x0) {
  29.                                     eax = [edi rangeOfString:@":"];
  30.                                     esi = eax;
  31.                             }
  32.                             if ((edx != 0x0) && (esi != 0x0)) {
  33.                                     edx = edx + esi;
  34.                                     var_44 = edi;
  35.                                     eax = [edi substringFromIndex:edx];
  36.                                     edi = eax;
  37.                                     eax = [edi hasPrefix:@"\\\""];
  38.                                     if (eax != 0x0) {
  39.                                             eax = [edi hasSuffix:@"\\\""];
  40.                                             if (eax != 0x0) {
  41.                                                     eax = [edi length];
  42.                                                     eax = [edi substringWithRange:0x1];
  43.                                                     edi = eax;
  44.                                             }
  45.                                     }
  46.                                     eax = [var_44 substringToIndex:esi];
  47.                                     eax = [eax uppercaseString];
  48.                                     [var_32 setObject:edi forKey:eax];
  49.                             }
  50.                             ebx = ebx + 0x1;
  51.                     } while (ebx < var_36);
  52.                     eax = [var_40 countByEnumeratingWithState:&var_112 objects:&var_48 count:0x10];
  53.                     var_36 = eax;
  54.             } while (eax != 0x0);
  55.     }
  56.     eax = [var_32 autorelease];
  57.     if (**stack_chk_guard != var_152) goto loc_2d454;
  58.     goto loc_2d449;
  59.  
  60. loc_2d454:
  61.     __stack_chk_fail();
  62.     ebp = esp;
  63.     esp = esp - 0x1c;
  64.     eax = objc_msgSend(*objc_msg_sharedInstance, ebx, ebp);
  65.     ebx = arg_0;
  66.     objc_msgSend(*objc_msg_setMirroringHeader2_, ebx);
  67.     eax = objc_msgSend(*objc_msg_alloc);
  68.     eax = objc_msgSend(*objc_msg_init);
  69.     esi = eax;
  70.     objc_msgSend(*objc_msg_appendString_, @"A863F9314B917F665980FA0532623B77EAF32D58B6E8D870A3A9F92B1A342E346B5CADE0AB2181BFDD305D07");
  71.     objc_msgSend(*objc_msg_appendString_, @"3254DC0BEE5C53C96C1006AE8166E5E373BC76B7A54D5DB2FB1832CD16B35833DCF8A324DAB9");
  72.     objc_msgSend(*objc_msg_appendString_, @"FAA8F7277BF2EE40D7D6F323B2C9F3F9");
  73.     objc_msgSend(*objc_msg_appendString_, @"E2FA7BF12D60D3022BA7A613848FDC3EB963EA10C4264A00E77FF35D5E04AE53523F36089402A9A15D3799FCD42BB659D8108CA96A6731B383");
  74.     objc_msgSend(*objc_msg_appendString_, @"51A13F15457A62E3413BF32EB");
  75.     objc_msgSend(*objc_msg_appendString_, @"4BA8F5D0234617A28D3B01E354463B56DDF4F13361E6E229E3");
  76.     objc_msgSend(*objc_msg_appendString_, @"E2CF772054DFCF2B22CA455FAF9509D5603656E78F38476B6633A39A2D38F56F5333A82E79A5A5DDCB6");
  77.     objc_msgSend(*objc_msg_appendString_, @"CE3001B2A9AC70F6978615363BC4708CB9F1354BFFDB");
  78.     eax = objc_msgSend(*objc_msg_alloc);
  79.     eax = objc_msgSend(*objc_msg_initWithPublicKey_privateKey_, esi, 0x0);
  80.     edi = eax;
  81.     objc_msgSend(*objc_msg_release);
  82.     eax = objc_msgSend(*objc_msg_hexToData_, ebx);
  83.     eax = objc_msgSend(*objc_msg_decryptData_, eax);
  84.     esi = eax;
  85.     objc_msgSend(*objc_msg_release);
  86.     eax = objc_msgSend(*objc_msg_componentsSeparatedByString_, @"\\t");
  87.     esi = eax;
  88.     eax = objc_msgSend(*objc_msg_objectAtIndex_, 0x3);
  89.     edi = eax;
  90.     eax = objc_msgSend(*objc_msg_count);
  91.     eax = objc_msgSend(*objc_msg_objectAtIndex_, eax - 0x1);
  92.     ebx = arg_4;
  93.     eax = objc_msgSend(*objc_msg_isEqualToString_, eax);
  94.     if (eax == 0x0) goto loc_2d858;
  95.     goto loc_2d697;
  96.  
  97. loc_2d858:
  98.     eax = [esi count];
  99.     eax = [esi objectAtIndex:eax - 0x1];
  100.     NSLog(@"nonce match: %@ vs %@", ebx, eax);
  101.     eax = [AppState sharedInstance];
  102.     eax = [eax setMirroringHeader2:0x0];
  103.  
  104. loc_2d9c7:
  105.     return eax;
  106.  
  107. loc_2d697:
  108.     eax = [edi intValue];
  109.     if (eax > 0x1) goto loc_2d9c7;
  110.     eax = [NSBundle mainBundle];
  111.     eax = [eax bundleIdentifier];
  112.     var_152 = eax;
  113.     eax = [NSUserDefaults standardUserDefaults];
  114.     edi = eax;
  115.     eax = [NSBundle mainBundle];
  116.     eax = [eax infoDictionary];
  117.     eax = [eax objectForKey:@"CFBundleVersion"];
  118.     [edi setObject:eax forKey:@"CFBundleActivatedVersion"];
  119.     eax = [AppState sharedInstance];
  120.     eax = [eax mirroringHeader2];
  121.     ebx = @"com.pratikkumar.airserver-mac";
  122.     if (var_152 != 0x0) {
  123.             ebx = **imp___nl_symbol_ptr__kCFPreferencesCurrentApplication;
  124.     }
  125.     CFPreferencesSetValue(STK33, STK32, @"activation4", eax, ebx);
  126.     CFPreferencesSetValue(@"code", arg_8, ebx, esi, edi);
  127.     eax = CFPreferencesSynchronize(ebx, esi, edi);
  128.     if (eax == 0x0) goto loc_2d8ca;
  129.     goto loc_2d7f5;
  130.  
  131. loc_2d8ca:
  132.     CFPreferencesSetValue(@"activation4", 0x0, ebx, esi, edi);
  133.     CFPreferencesSetValue(@"code", 0x0, ebx, esi, edi);
  134.     esi = **imp___nl_symbol_ptr__kCFPreferencesCurrentUser;
  135.     CFPreferencesSetValue(@"code", arg_8, ebx, esi, edi);
  136.     eax = [AppState sharedInstance];
  137.     eax = [eax mirroringHeader2];
  138.     CFPreferencesSetValue(@"activation4", eax, ebx, esi, edi);
  139.     eax = CFPreferencesSynchronize(ebx, esi, edi);
  140.     if (eax == 0x0) goto loc_2d99e;
  141.     goto loc_2d989;
  142.  
  143. loc_2d99e:
  144.     eax = [NSUserDefaults standardUserDefaults];
  145.     eax = [eax synchronize];
  146.     goto loc_2d9c7;
  147.  
  148. loc_2d989:
  149.     eax = NSUserName();
  150.     STK30 = eax;
  151.     STK31 = @"Activation succeeded for %@";
  152.  
  153. loc_2d999:
  154.     NSLog();
  155.     goto loc_2d99e;
  156.  
  157. loc_2d7f5:
  158.     esi = **imp___nl_symbol_ptr__kCFPreferencesCurrentUser;
  159.     CFPreferencesSetValue(@"activation4", 0x0, ebx, esi, edi);
  160.     CFPreferencesSetValue(@"code", 0x0, ebx, esi, edi);
  161.     CFPreferencesSynchronize(ebx, esi, edi);
  162.     STK31 = @"Activation succeeded for all users on current machine";
  163.     goto loc_2d999;
  164.  
  165. loc_2d449:
  166.     return eax;
  167.  
  168. loc_2d09f:
  169.     eax = [var_40 objectAtIndex:0x0];
  170.     eax = [eax hasSuffix:@"HTTP/1.1"];
  171.     if (eax != 0x0) {
  172.             STK30 = *objc_msg_numberWithBool_;
  173.             STK31 = *cls_NSNumber;
  174.             STK29 = 0x1;
  175.     }
  176.     else {
  177.             STK30 = *objc_msg_numberWithBool_;
  178.             STK31 = *cls_NSNumber;
  179.             STK29 = 0x0;
  180.     }
  181.     eax = objc_msgSend();
  182.     [var_32 setObject:eax forKey:@"IS_HTTP11"];
  183.     eax = [ebx rangeOfString:@" "];
  184.     esi = eax;
  185.     if (*objc_msg_numberWithBool_ != 0x0) {
  186.             eax = [ebx substringToIndex:esi];
  187.             eax = [eax uppercaseString];
  188.             [var_32 setObject:eax forKey:@"REQUEST_METHOD"];
  189.     }
  190.     eax = [ebx hasSuffix:@"HTTP/1.0"];
  191.     if (eax != 0x0) goto loc_2d1d5;
  192.     goto loc_2d1b8;
  193.  
  194. loc_2d1d5:
  195.     eax = [ebx rangeOfString:@" HTTP/1"];
  196.     if ((edi != 0x0) && (*objc_msg_numberWithBool_ != 0x0)) {
  197.             esi = esi + 0x1;
  198.             eax = [ebx substringWithRange:esi];
  199.             [var_32 setObject:eax forKey:@"REQUEST_URI"];
  200.     }
  201.     goto loc_2d23b;
  202.  
  203. loc_2d1b8:
  204.     eax = [ebx hasSuffix:@"HTTP/1.1"];
  205.     if (eax == 0x0) goto loc_2d23b;
  206.     goto loc_2d1d5;
  207. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement