{"type": "func", "start": 8135836, "end": 8136004, "name": "EVP_PKEY_asn1_new", "pseudocode": "// \n// EVP_PKEY_asn1_new from 0x7c249c to 0x7c2544 (168 bytes)\n// \n// 2 xrefs:\n// > EVP_PKEY_asn1_add_alias @ 0x7c2564\n// > <???> @ 0x5e63c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall EVP_PKEY_asn1_new(int a1, int a2, int a3, int a4)\n{\n  _DWORD *v8; // r0\n  int v9; // r4\n  int v10; // r0\n  int v11; // r0\n\n  v8 = (_DWORD *)CRYPTO_zalloc(112, \"crypto/asn1/ameth_lib.c\", 232);\n  v9 = (int)v8;\n  if ( !v8 )\n    return v9;\n  v8[2] = a2 | 2;\n  *v8 = a1;\n  v8[1] = a1;\n  if ( !a4 || (v10 = CRYPTO_strdup(a4, \"crypto/asn1/ameth_lib.c\", 242), (*(_DWORD *)(v9 + 16) = v10) != 0) )\n  {\n    if ( !a3 )\n      return v9;\n    v11 = CRYPTO_strdup(a3, \"crypto/asn1/ameth_lib.c\", 248);\n    *(_DWORD *)(v9 + 12) = v11;\n    if ( v11 )\n      return v9;\n  }\n  EVP_PKEY_asn1_free(v9);\n  return 0;\n}", "assembly": "; \n; EVP_PKEY_asn1_new from 0x7c249c to 0x7c2544 (168 bytes)\n; \n; 2 xrefs:\n; > EVP_PKEY_asn1_add_alias @ 0x7c2564\n; > <???> @ 0x5e63c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R9,LR}                                             ; +0x0, 0x7c249c\nLDR             R8, =(aCryptoAsn1Amet - 0x7C24B0); \"crypto/asn1/ameth_lib.c\" ; +0x4, 0x7c24a0\nMOV             R6, R0                                                 ; +0x8, 0x7c24a4\nADD             R8, PC, R8; \"crypto/asn1/ameth_lib.c\"                  ; +0xc, 0x7c24a8\nMOV             R5, R1                                                 ; +0x10, 0x7c24ac\nMOV             R7, R2                                                 ; +0x14, 0x7c24b0\nMOV             R1, R8                                                 ; +0x18, 0x7c24b4\nMOV             R0, #0x70 ; 'p'                                        ; +0x1c, 0x7c24b8\nMOV             R2, #0xE8                                              ; +0x20, 0x7c24bc\nMOV             R9, R3                                                 ; +0x24, 0x7c24c0\nBL              CRYPTO_zalloc                                          ; +0x28, 0x7c24c4\nSUBS            R4, R0, #0                                             ; +0x2c, 0x7c24c8\nBEQ             loc_7C252C                                             ; +0x30, 0x7c24cc\nORR             R5, R5, #2                                             ; +0x34, 0x7c24d0\nCMP             R9, #0                                                 ; +0x38, 0x7c24d4\nSTR             R5, [R4,#8]                                            ; +0x3c, 0x7c24d8\nSTR             R6, [R4]                                               ; +0x40, 0x7c24dc\nSTR             R6, [R4,#4]                                            ; +0x44, 0x7c24e0\nBEQ             loc_7C2504                                             ; +0x48, 0x7c24e4\nMOV             R0, R9                                                 ; +0x4c, 0x7c24e8\nMOV             R1, R8                                                 ; +0x50, 0x7c24ec\nMOV             R2, #0xF2                                              ; +0x54, 0x7c24f0\nBL              CRYPTO_strdup                                          ; +0x58, 0x7c24f4\nCMP             R0, #0                                                 ; +0x5c, 0x7c24f8\nSTR             R0, [R4,#0x10]                                         ; +0x60, 0x7c24fc\nBEQ             loc_7C2534                                             ; +0x64, 0x7c2500\nCMP             R7, #0                                                 ; +0x68, 0x7c2504\nBEQ             loc_7C252C                                             ; +0x6c, 0x7c2508\nLDR             R1, =(aCryptoAsn1Amet - 0x7C251C); \"crypto/asn1/ameth_lib.c\" ; +0x70, 0x7c250c\nMOV             R0, R7                                                 ; +0x74, 0x7c2510\nADD             R1, PC, R1; \"crypto/asn1/ameth_lib.c\"                  ; +0x78, 0x7c2514\nMOV             R2, #0xF8                                              ; +0x7c, 0x7c2518\nBL              CRYPTO_strdup                                          ; +0x80, 0x7c251c\nCMP             R0, #0                                                 ; +0x84, 0x7c2520\nSTR             R0, [R4,#0xC]                                          ; +0x88, 0x7c2524\nBEQ             loc_7C2534                                             ; +0x8c, 0x7c2528\nMOV             R0, R4                                                 ; +0x90, 0x7c252c\nPOP             {R3-R9,PC}                                             ; +0x94, 0x7c2530\nMOV             R0, R4                                                 ; +0x98, 0x7c2534\nBL              EVP_PKEY_asn1_free                                     ; +0x9c, 0x7c2538\nMOV             R0, #0                                                 ; +0xa0, 0x7c253c\nPOP             {R3-R9,PC}                                             ; +0xa4, 0x7c2540", "xrefs": ["EVP_PKEY_asn1_add_alias @ 0x7c2564", "<???> @ 0x5e63c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}