// // sub_DA8028 from 0xda8028 to 0xda80f8 (208 bytes) // // 1 xrefs: // > @ 0x1124d30 // // 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 // __int64 __fastcall sub_DA8028(__int64 a1, __int64 a2, __int64 a3, unsigned __int64 a4) { unsigned __int64 v4; // x19 unsigned __int64 v5; // x20 __int64 cipher_data; // x24 __int64 v10; // x6 __int64 v11; // x0 unsigned __int64 v12; // x2 __int64 v14; // [xsp+58h] [xbp+58h] unsigned int v15; // [xsp+6Ch] [xbp+6Ch] BYREF v4 = a4; v5 = 0x4000000000000000LL; if ( a4 <= 0x3FFFFFFFFFFFFFFFLL ) v5 = a4; do { if ( !v4 ) break; v15 = EVP_CIPHER_CTX_num(a1); cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1); v14 = EVP_CIPHER_CTX_iv_noconst(a1); v10 = (unsigned int)EVP_CIPHER_CTX_encrypting(a1); v11 = a3; v12 = v4; v4 -= v5; a3 += v5; RC2_cfb64_encrypt(v11, a2, v12, cipher_data + 4, v14, &v15, v10); a2 += v5; EVP_CIPHER_CTX_set_num(a1, v15); if ( v5 > v4 ) v5 = v4; } while ( v4 >= v5 ); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source