{"type": "func", "start": 10317980, "end": 10318148, "name": "EVP_PKEY_asn1_new", "pseudocode": "// \n// EVP_PKEY_asn1_new from 0x9d709c to 0x9d7144 (168 bytes)\n// \n// 2 xrefs:\n// > EVP_PKEY_asn1_add_alias @ 0x9d7164\n// > <???> @ 0x780bc\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:15 +0000\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 0x9d709c to 0x9d7144 (168 bytes)\n; \n; 2 xrefs:\n; > EVP_PKEY_asn1_add_alias @ 0x9d7164\n; > <???> @ 0x780bc\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:15 +0000\n; \nPUSH            {R3-R9,LR}                                             ; +0x0, 0x9d709c\nLDR             R8, =(aCryptoAsn1Amet - 0x9D70B0); \"crypto/asn1/ameth_lib.c\" ; +0x4, 0x9d70a0\nMOV             R6, R0                                                 ; +0x8, 0x9d70a4\nADD             R8, PC, R8; \"crypto/asn1/ameth_lib.c\"                  ; +0xc, 0x9d70a8\nMOV             R5, R1                                                 ; +0x10, 0x9d70ac\nMOV             R7, R2                                                 ; +0x14, 0x9d70b0\nMOV             R1, R8                                                 ; +0x18, 0x9d70b4\nMOV             R0, #0x70 ; 'p'                                        ; +0x1c, 0x9d70b8\nMOV             R2, #0xE8                                              ; +0x20, 0x9d70bc\nMOV             R9, R3                                                 ; +0x24, 0x9d70c0\nBL              CRYPTO_zalloc                                          ; +0x28, 0x9d70c4\nSUBS            R4, R0, #0                                             ; +0x2c, 0x9d70c8\nBEQ             loc_9D712C                                             ; +0x30, 0x9d70cc\nORR             R5, R5, #2                                             ; +0x34, 0x9d70d0\nCMP             R9, #0                                                 ; +0x38, 0x9d70d4\nSTR             R5, [R4,#8]                                            ; +0x3c, 0x9d70d8\nSTR             R6, [R4]                                               ; +0x40, 0x9d70dc\nSTR             R6, [R4,#4]                                            ; +0x44, 0x9d70e0\nBEQ             loc_9D7104                                             ; +0x48, 0x9d70e4\nMOV             R0, R9                                                 ; +0x4c, 0x9d70e8\nMOV             R1, R8                                                 ; +0x50, 0x9d70ec\nMOV             R2, #0xF2                                              ; +0x54, 0x9d70f0\nBL              CRYPTO_strdup                                          ; +0x58, 0x9d70f4\nCMP             R0, #0                                                 ; +0x5c, 0x9d70f8\nSTR             R0, [R4,#0x10]                                         ; +0x60, 0x9d70fc\nBEQ             loc_9D7134                                             ; +0x64, 0x9d7100\nCMP             R7, #0                                                 ; +0x68, 0x9d7104\nBEQ             loc_9D712C                                             ; +0x6c, 0x9d7108\nLDR             R1, =(aCryptoAsn1Amet - 0x9D711C); \"crypto/asn1/ameth_lib.c\" ; +0x70, 0x9d710c\nMOV             R0, R7                                                 ; +0x74, 0x9d7110\nADD             R1, PC, R1; \"crypto/asn1/ameth_lib.c\"                  ; +0x78, 0x9d7114\nMOV             R2, #0xF8                                              ; +0x7c, 0x9d7118\nBL              CRYPTO_strdup                                          ; +0x80, 0x9d711c\nCMP             R0, #0                                                 ; +0x84, 0x9d7120\nSTR             R0, [R4,#0xC]                                          ; +0x88, 0x9d7124\nBEQ             loc_9D7134                                             ; +0x8c, 0x9d7128\nMOV             R0, R4                                                 ; +0x90, 0x9d712c\nPOP             {R3-R9,PC}                                             ; +0x94, 0x9d7130\nMOV             R0, R4                                                 ; +0x98, 0x9d7134\nBL              EVP_PKEY_asn1_free                                     ; +0x9c, 0x9d7138\nMOV             R0, #0                                                 ; +0xa0, 0x9d713c\nPOP             {R3-R9,PC}                                             ; +0xa4, 0x9d7140", "xrefs": ["EVP_PKEY_asn1_add_alias @ 0x9d7164", "<???> @ 0x780bc"], "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"}