// // EC_KEY_new_method from 0x9fe790 to 0x9fe948 (440 bytes) // // 3 xrefs: // > EC_KEY_new @ 0x9fd558 // > EC_KEY_dup @ 0x9fd8f0 // > @ 0x7b0dc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:07:36 +0000 // _DWORD *__fastcall EC_KEY_new_method(int a1) { int v2; // r0 _DWORD *v3; // r4 int v4; // r6 int default_EC; // r0 int EC; // r0 _DWORD *result; // r0 int (__fastcall *v8)(_DWORD *); // r3 v2 = CRYPTO_zalloc(48, "crypto/ec/ec_kmeth.c", 75); v3 = (_DWORD *)v2; if ( !v2 ) { ERR_put_error(16, 245, 65, "crypto/ec/ec_kmeth.c", 78); return nullptr; } *(_DWORD *)(v2 + 32) = 1; v4 = CRYPTO_THREAD_lock_new(v2); v3[11] = v4; if ( !v4 ) { ERR_put_error(16, 245, 65, "crypto/ec/ec_kmeth.c", 85); CRYPTO_free(v3, "crypto/ec/ec_kmeth.c", 86); return nullptr; } *v3 = EC_KEY_get_default_method(); if ( a1 ) { if ( !ENGINE_init(a1) ) { ERR_put_error(16, 245, 38, "crypto/ec/ec_kmeth.c", 94); LABEL_14: EC_KEY_free((int)v3); return nullptr; } v3[1] = a1; default_EC = a1; } else { default_EC = ENGINE_get_default_EC(); v3[1] = default_EC; if ( !default_EC ) goto LABEL_8; } EC = ENGINE_get_EC(default_EC); *v3 = EC; if ( !EC ) { ERR_put_error(16, 245, 38, "crypto/ec/ec_kmeth.c", 103); goto LABEL_14; } LABEL_8: v3[2] = 1; v3[7] = 4; if ( !CRYPTO_new_ex_data(8, v3, v3 + 10) ) goto LABEL_14; result = v3; v8 = *(int (__fastcall **)(_DWORD *))(*v3 + 8); if ( v8 ) { if ( v8(v3) ) return v3; ERR_put_error(16, 245, 70, "crypto/ec/ec_kmeth.c", 117); goto LABEL_14; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source