// // sub_D8B3AC from 0xd8b3ac to 0xd8b4c0 (276 bytes) // // 3 xrefs: // > sub_D8B4C0 @ 0xd8ba90 // > sub_D8BF28 @ 0xd8bf88 // > sub_D8C0B4 @ 0xd8c11c // // 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_D8B3AC(int a1, int *a2) { __int64 v2; // x19 __int64 v3; // x0 __int64 v4; // x0 __int64 v5; // x20 __int64 result; // x0 __int64 v7; // x2 __int64 v9; // [xsp+38h] [xbp+38h] BYREF if ( a1 != 16 ) { if ( a1 == 6 ) { v2 = EC_KEY_new(); if ( v2 ) { v3 = OBJ_obj2nid(a2); v4 = EC_GROUP_new_by_curve_name(v3); v5 = v4; if ( v4 ) { EC_GROUP_set_asn1_flag(v4, 1); if ( (unsigned int)EC_KEY_set_group(v2, v5) ) { EC_GROUP_free(v5); return v2; } } } else { ERR_put_error(16, 220, 65, "crypto/ec/ec_ameth.c", 113); } } else { v2 = 0; ERR_put_error(16, 220, 142, "crypto/ec/ec_ameth.c", 124); } LABEL_9: EC_KEY_free(v2); return 0; } v7 = *a2; v9 = *((_QWORD *)a2 + 1); result = d2i_ECParameters(0, &v9, v7); v2 = result; if ( !result ) { ERR_put_error(16, 220, 142, "crypto/ec/ec_ameth.c", 102); goto LABEL_9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source