// // ASN1_INTEGER_set_int64 from 0x1088ac4 to 0x1088ba0 (220 bytes) // // 3 xrefs: // > ASN1_INTEGER_set @ 0x1088df4 // > PKCS5_pbe2_set_scrypt @ 0x10f1040 // > @ 0x79e88 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:17:14 +0000 // __int64 __fastcall ASN1_INTEGER_set_int64(__int64 a1, __int64 a2) { __int64 v2; // x2 unsigned int v3; // w1 __int64 v5; // x1 __int64 v6; // x3 unsigned __int64 v7; // x4 char *v8; // x3 __int64 v9; // x3 unsigned __int64 v10; // x4 char *v11; // x3 char v12[8]; // [xsp+18h] [xbp+18h] BYREF *(_DWORD *)(a1 + 4) = 2; if ( a2 < 0 ) { v5 = -a2; if ( v5 > 255 ) { v9 = 0; v10 = v5; while ( 1 ) { v10 >>= 8; v2 = v9 + 1; if ( !v10 ) break; ++v9; } v11 = &v12[v9]; do { *v11-- = v5; v5 = (unsigned __int64)v5 >> 8; } while ( v11 >= v12 ); } else { v12[0] = v5; v2 = 1; } *(_DWORD *)(a1 + 4) = 258; } else { if ( a2 > 255 ) { v6 = 0; v7 = a2; while ( 1 ) { v7 >>= 8; v2 = v6 + 1; if ( !v7 ) break; ++v6; } v8 = &v12[v6]; do { *v8-- = a2; a2 = (unsigned __int64)a2 >> 8; } while ( v8 >= v12 ); } else { v12[0] = a2; v2 = 1; } *(_DWORD *)(a1 + 4) = 2; } v3 = 0; if ( v2 ) return (unsigned int)ASN1_STRING_set(a1, v12, v2); return v3; }