// // EC_GROUP_new from 0x7ea014 to 0x7ea154 (320 bytes) // // 7 xrefs: // > EC_GROUP_new_by_curve_name @ 0x7e8064 // > EC_GROUP_new_by_curve_name @ 0x7e80d8 // > EC_GROUP_new_curve_GFp @ 0x7e88a8 // > EC_GROUP_new_curve_GF2m @ 0x7e890c // > EC_KEY_copy @ 0x7e8b50 // > EC_GROUP_dup @ 0x7eab34 // > @ 0x615ac // // 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 // int **__fastcall EC_GROUP_new(int *a1) { int **v2; // r0 int **v3; // r4 int v4; // r3 int (__fastcall *v5)(int **); // r3 int v7; // r0 int v8; // r0 if ( a1 ) { if ( a1[2] ) { v2 = (int **)CRYPTO_zalloc(100, "crypto/ec/ec_lib.c", 38); v3 = v2; if ( v2 ) { v4 = *a1; *v2 = a1; if ( (v4 & 2) != 0 ) goto LABEL_5; v7 = BN_new(); v3[2] = (int *)v7; if ( !v7 ) { LABEL_10: BN_free(v7); BN_free((int)v3[3]); CRYPTO_free(v3, "crypto/ec/ec_lib.c", 62); return nullptr; } v8 = BN_new(); v3[3] = (int *)v8; if ( v8 ) { LABEL_5: v5 = (int (__fastcall *)(int **))a1[2]; v3[5] = &dword_0 + 1; v3[6] = (_DWORD *)byte_4; if ( v5(v3) ) return v3; } v7 = (int)v3[2]; goto LABEL_10; } ERR_put_error(16, 108, 65, "crypto/ec/ec_lib.c", 40); return nullptr; } else { ERR_put_error(16, 108, 66, "crypto/ec/ec_lib.c", 34); return nullptr; } } else { ERR_put_error(16, 108, 108, "crypto/ec/ec_lib.c", 30); return nullptr; } }