// // PlatformToolbox::saveAndEncryptStringToFile from 0x10016b924 to 0x10016ba68 (324 bytes) // // 1 xrefs: // > GManager::saveData @ 0x10024aa94 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void *__fastcall PlatformToolbox::saveAndEncryptStringToFile(__int64 a1, __int64 a2) { int v4; // w9 _BYTE *v5; // x2 __int64 v6; // x3 NSData *v7; // x19 v4 = *(char *)(a1 + 23); if ( v4 >= 0 ) v5 = (_BYTE *)a1; else v5 = *(_BYTE **)a1; if ( v4 >= 0 ) v6 = *(unsigned __int8 *)(a1 + 23); else v6 = *(_QWORD *)(a1 + 8); v7 = +[NSData dataWithBytes:length:](&OBJC_CLASS___NSData, "dataWithBytes:length:", v5, v6); if ( *(char *)(a1 + 23) < 0 ) { **(_BYTE **)a1 = 0; *(_QWORD *)(a1 + 8) = 0; } else { *(_BYTE *)a1 = 0; *(_BYTE *)(a1 + 23) = 0; } return objc_msgSend( -[NSData encryptedWithKey:]( v7, "encryptedWithKey:", -[NSString dataUsingEncoding:]( +[NSString stringWithString:]( &OBJC_CLASS___NSString, "stringWithString:", +[NSString stringWithFormat:]( &OBJC_CLASS___NSString, "stringWithFormat:", CFSTR("%c%c%s%@%c%s%c%s%@%s"), 105, 112, "u9TUv54y", CFSTR("v]isFM"), 104, "5@;t.5w3", 52, "E2Ry@{", CFSTR("lXrRCGEN"), "IiB@")), "dataUsingEncoding:", 4)), "writeToFile:atomically:", objc_msgSend( -[NSArray objectAtIndex:]( NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, 1u, 1), "objectAtIndex:", 0), "stringByAppendingPathComponent:", +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a2)), 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source