{"type": "func", "start": 10466044, "end": 10466320, "name": "EC_GROUP_get_ecpkparameters", "pseudocode": "// \n// EC_GROUP_get_ecpkparameters from 0x9fb2fc to 0x9fb410 (276 bytes)\n// \n// 3 xrefs:\n// > i2d_ECPKParameters @ 0x9fbfa8\n// > i2d_ECPrivateKey @ 0x9fc514\n// > <???> @ 0x7aecc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:35 +0000\n// \n\n_DWORD *__fastcall EC_GROUP_get_ecpkparameters(_DWORD *a1, int a2)\n{\n  _DWORD *v2; // r4\n  _DWORD *asn1_flag; // r1\n  _DWORD *ecparameters; // r0\n  int curve_name; // r0\n  _DWORD *v8; // r0\n  int v9; // r0\n\n  v2 = (_DWORD *)a2;\n  if ( a2 )\n  {\n    if ( !*(_DWORD *)a2 )\n    {\n      ASN1_OBJECT_free(*(_DWORD **)(a2 + 4));\n      asn1_flag = (_DWORD *)EC_GROUP_get_asn1_flag(a1);\n      if ( !asn1_flag )\n        goto LABEL_5;\nLABEL_7:\n      curve_name = EC_GROUP_get_curve_name(a1);\n      if ( !curve_name )\n        goto LABEL_8;\n      *v2 = 0;\n      v9 = OBJ_nid2obj(curve_name);\n      v2[1] = v9;\n      if ( !v9 )\n        goto LABEL_8;\n      return v2;\n    }\n    if ( *(_DWORD *)a2 == 1 )\n    {\n      v8 = *(_DWORD **)(a2 + 4);\n      if ( v8 )\n      {\n        ECPARAMETERS_free(v8);\n        asn1_flag = (_DWORD *)EC_GROUP_get_asn1_flag(a1);\n        if ( asn1_flag )\n          goto LABEL_7;\nLABEL_5:\n        *v2 = 1;\n        ecparameters = EC_GROUP_get_ecparameters(a1, asn1_flag);\n        v2[1] = ecparameters;\n        if ( !ecparameters )\n        {\nLABEL_8:\n          ECPKPARAMETERS_free(v2);\n          return nullptr;\n        }\n        return v2;\n      }\n    }\nLABEL_4:\n    asn1_flag = (_DWORD *)EC_GROUP_get_asn1_flag(a1);\n    if ( !asn1_flag )\n      goto LABEL_5;\n    goto LABEL_7;\n  }\n  v2 = ECPKPARAMETERS_new();\n  if ( v2 )\n    goto LABEL_4;\n  ERR_put_error(16, 262, 65, \"crypto/ec/ec_asn1.c\", 559);\n  return nullptr;\n}", "assembly": "; \n; EC_GROUP_get_ecpkparameters from 0x9fb2fc to 0x9fb410 (276 bytes)\n; \n; 3 xrefs:\n; > i2d_ECPKParameters @ 0x9fbfa8\n; > i2d_ECPrivateKey @ 0x9fc514\n; > <???> @ 0x7aecc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:35 +0000\n; \nPUSH            {R4,R5,LR}                                             ; +0x0, 0x9fb2fc\nSUBS            R4, R1, #0                                             ; +0x4, 0x9fb300\nSUB             SP, SP, #0xC                                           ; +0x8, 0x9fb304\nMOV             R5, R0                                                 ; +0xc, 0x9fb308\nBEQ             loc_9FB3DC                                             ; +0x10, 0x9fb30c\nLDR             R3, [R4]                                               ; +0x14, 0x9fb310\nCMP             R3, #0                                                 ; +0x18, 0x9fb314\nBEQ             loc_9FB380                                             ; +0x1c, 0x9fb318\nCMP             R3, #1                                                 ; +0x20, 0x9fb31c\nBEQ             loc_9FB39C                                             ; +0x24, 0x9fb320\nMOV             R0, R5                                                 ; +0x28, 0x9fb324\nBL              EC_GROUP_get_asn1_flag                                 ; +0x2c, 0x9fb328\nSUBS            R1, R0, #0                                             ; +0x30, 0x9fb32c\nBNE             loc_9FB35C                                             ; +0x34, 0x9fb330\nMOV             R3, #1                                                 ; +0x38, 0x9fb334\nMOV             R0, R5                                                 ; +0x3c, 0x9fb338\nSTR             R3, [R4]                                               ; +0x40, 0x9fb33c\nBL              EC_GROUP_get_ecparameters                              ; +0x44, 0x9fb340\nCMP             R0, #0                                                 ; +0x48, 0x9fb344\nSTR             R0, [R4,#4]                                            ; +0x4c, 0x9fb348\nBEQ             loc_9FB36C                                             ; +0x50, 0x9fb34c\nMOV             R0, R4                                                 ; +0x54, 0x9fb350\nADD             SP, SP, #0xC                                           ; +0x58, 0x9fb354\nPOP             {R4,R5,PC}                                             ; +0x5c, 0x9fb358\nMOV             R0, R5                                                 ; +0x60, 0x9fb35c\nBL              EC_GROUP_get_curve_name                                ; +0x64, 0x9fb360\nCMP             R0, #0                                                 ; +0x68, 0x9fb364\nBNE             loc_9FB3C0                                             ; +0x6c, 0x9fb368\nMOV             R0, R4                                                 ; +0x70, 0x9fb36c\nBL              ECPKPARAMETERS_free                                    ; +0x74, 0x9fb370\nMOV             R0, #0                                                 ; +0x78, 0x9fb374\nADD             SP, SP, #0xC                                           ; +0x7c, 0x9fb378\nPOP             {R4,R5,PC}                                             ; +0x80, 0x9fb37c\nLDR             R0, [R4,#4]                                            ; +0x84, 0x9fb380\nBL              ASN1_OBJECT_free                                       ; +0x88, 0x9fb384\nMOV             R0, R5                                                 ; +0x8c, 0x9fb388\nBL              EC_GROUP_get_asn1_flag                                 ; +0x90, 0x9fb38c\nSUBS            R1, R0, #0                                             ; +0x94, 0x9fb390\nBEQ             loc_9FB334                                             ; +0x98, 0x9fb394\nB               loc_9FB35C                                             ; +0x9c, 0x9fb398\nLDR             R0, [R4,#4]                                            ; +0xa0, 0x9fb39c\nCMP             R0, #0                                                 ; +0xa4, 0x9fb3a0\nBEQ             loc_9FB324                                             ; +0xa8, 0x9fb3a4\nBL              ECPARAMETERS_free                                      ; +0xac, 0x9fb3a8\nMOV             R0, R5                                                 ; +0xb0, 0x9fb3ac\nBL              EC_GROUP_get_asn1_flag                                 ; +0xb4, 0x9fb3b0\nSUBS            R1, R0, #0                                             ; +0xb8, 0x9fb3b4\nBEQ             loc_9FB334                                             ; +0xbc, 0x9fb3b8\nB               loc_9FB35C                                             ; +0xc0, 0x9fb3bc\nMOV             R3, #0                                                 ; +0xc4, 0x9fb3c0\nSTR             R3, [R4]                                               ; +0xc8, 0x9fb3c4\nBL              OBJ_nid2obj                                            ; +0xcc, 0x9fb3c8\nCMP             R0, #0                                                 ; +0xd0, 0x9fb3cc\nSTR             R0, [R4,#4]                                            ; +0xd4, 0x9fb3d0\nBNE             loc_9FB350                                             ; +0xd8, 0x9fb3d4\nB               loc_9FB36C                                             ; +0xdc, 0x9fb3d8\nBL              ECPKPARAMETERS_new                                     ; +0xe0, 0x9fb3dc\nSUBS            R4, R0, #0                                             ; +0xe4, 0x9fb3e0\nBNE             loc_9FB324                                             ; +0xe8, 0x9fb3e4\nLDR             R3, =0x22F                                             ; +0xec, 0x9fb3e8\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xf0, 0x9fb3ec\nLDR             R3, =(aCryptoEcEcAsn1 - 0x9FB408); \"crypto/ec/ec_asn1.c\" ; +0xf4, 0x9fb3f0\nMOV             R0, #0x10                                              ; +0xf8, 0x9fb3f4\nLDR             R1, =0x106                                             ; +0xfc, 0x9fb3f8\nMOV             R2, #0x41 ; 'A'                                        ; +0x100, 0x9fb3fc\nADD             R3, PC, R3; \"crypto/ec/ec_asn1.c\"                      ; +0x104, 0x9fb400\nBL              ERR_put_error                                          ; +0x108, 0x9fb404\nMOV             R0, R4                                                 ; +0x10c, 0x9fb408\nB               loc_9FB354                                             ; +0x110, 0x9fb40c", "xrefs": ["i2d_ECPKParameters @ 0x9fbfa8", "i2d_ECPrivateKey @ 0x9fc514", "<???> @ 0x7aecc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}