{"type": "func", "start": 8134844, "end": 8135076, "name": "EVP_PKEY_asn1_find", "pseudocode": "// \n// EVP_PKEY_asn1_find from 0x7c20bc to 0x7c21a4 (232 bytes)\n// \n// 6 xrefs:\n// > EVP_PKEY_set_type @ 0x8051c0\n// > EVP_PKEY_set_type @ 0x805200\n// > EVP_PKEY_set_type_str @ 0x805458\n// > EVP_PKEY_type @ 0x8057bc\n// > X509_signature_print @ 0x83d3d4\n// > <???> @ 0x5e5bc\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_find(int *a1, int a2)\n{\n  int *v4; // r0\n  int v5; // r4\n  int v6; // r1\n  int pkey_asn1_meth_engine; // r0\n  _DWORD *v9; // [sp+Ch] [bp-78h] BYREF\n  _DWORD v10[29]; // [sp+10h] [bp-74h] BYREF\n\n  while ( 1 )\n  {\n    v9 = v10;\n    v10[0] = a2;\n    if ( !dword_AD2DDC )\n      break;\n    v6 = OPENSSL_sk_find(dword_AD2DDC, v10);\n    if ( v6 < 0 )\n      break;\n    v5 = OPENSSL_sk_value(dword_AD2DDC, v6);\n    if ( !v5 )\n      goto LABEL_9;\nLABEL_4:\n    if ( (*(_DWORD *)(v5 + 8) & 1) == 0 )\n      goto LABEL_9;\n    a2 = *(_DWORD *)(v5 + 4);\n  }\n  v4 = (int *)OBJ_bsearch_(&v9, &off_AC0A28, 13, 4, sub_7C2034);\n  if ( v4 )\n  {\n    v5 = *v4;\n    if ( *v4 )\n      goto LABEL_4;\n  }\n  v5 = 0;\nLABEL_9:\n  if ( a1 && (pkey_asn1_meth_engine = ENGINE_get_pkey_asn1_meth_engine(a2), (*a1 = pkey_asn1_meth_engine) != 0) )\n    return ENGINE_get_pkey_asn1_meth(pkey_asn1_meth_engine, a2);\n  else\n    return v5;\n}", "assembly": "; \n; EVP_PKEY_asn1_find from 0x7c20bc to 0x7c21a4 (232 bytes)\n; \n; 6 xrefs:\n; > EVP_PKEY_set_type @ 0x8051c0\n; > EVP_PKEY_set_type @ 0x805200\n; > EVP_PKEY_set_type_str @ 0x805458\n; > EVP_PKEY_type @ 0x8057bc\n; > X509_signature_print @ 0x83d3d4\n; > <???> @ 0x5e5bc\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            {R4-R11,LR}                                            ; +0x0, 0x7c20bc\nLDR             R7, =(dword_AD2DDC - 0x7C20D8)                         ; +0x4, 0x7c20c0\nLDR             R10, =(off_AC0A28 - 0x7C20DC)                          ; +0x8, 0x7c20c4\nLDR             R9, =(sub_7C2034 - 0x7C20E0)                           ; +0xc, 0x7c20c8\nSUB             SP, SP, #0x84                                          ; +0x10, 0x7c20cc\nADD             R7, PC, R7; dword_AD2DDC                               ; +0x14, 0x7c20d0\nADD             R10, PC, R10; off_AC0A28                               ; +0x18, 0x7c20d4\nADD             R9, PC, R9; sub_7C2034                                 ; +0x1c, 0x7c20d8\nMOV             R11, R0                                                ; +0x20, 0x7c20dc\nMOV             R5, R1                                                 ; +0x24, 0x7c20e0\nADD             R6, SP, #0x84+var_74                                   ; +0x28, 0x7c20e4\nADD             R8, SP, #0x84+var_78                                   ; +0x2c, 0x7c20e8\nB               loc_7C212C                                             ; +0x30, 0x7c20ec\nSTR             R9, [SP,#0x84+var_84]                                  ; +0x34, 0x7c20f0\nMOV             R0, R8                                                 ; +0x38, 0x7c20f4\nMOV             R1, R10                                                ; +0x3c, 0x7c20f8\nMOV             R2, #0xD                                               ; +0x40, 0x7c20fc\nMOV             R3, #4                                                 ; +0x44, 0x7c2100\nBL              OBJ_bsearch_                                           ; +0x48, 0x7c2104\nCMP             R0, #0                                                 ; +0x4c, 0x7c2108\nBEQ             loc_7C219C                                             ; +0x50, 0x7c210c\nLDR             R4, [R0]                                               ; +0x54, 0x7c2110\nCMP             R4, #0                                                 ; +0x58, 0x7c2114\nBEQ             loc_7C219C                                             ; +0x5c, 0x7c2118\nLDR             R3, [R4,#8]                                            ; +0x60, 0x7c211c\nTST             R3, #1                                                 ; +0x64, 0x7c2120\nBEQ             loc_7C2164                                             ; +0x68, 0x7c2124\nLDR             R5, [R4,#4]                                            ; +0x6c, 0x7c2128\nLDR             R3, [R7]                                               ; +0x70, 0x7c212c\nMOV             R1, R6                                                 ; +0x74, 0x7c2130\nSUBS            R0, R3, #0                                             ; +0x78, 0x7c2134\nSTR             R6, [SP,#0x84+var_78]                                  ; +0x7c, 0x7c2138\nSTR             R5, [SP,#0x84+var_74]                                  ; +0x80, 0x7c213c\nBEQ             loc_7C20F0                                             ; +0x84, 0x7c2140\nBL              OPENSSL_sk_find                                        ; +0x88, 0x7c2144\nSUBS            R1, R0, #0                                             ; +0x8c, 0x7c2148\nBLT             loc_7C20F0                                             ; +0x90, 0x7c214c\nLDR             R0, [R7]                                               ; +0x94, 0x7c2150\nBL              OPENSSL_sk_value                                       ; +0x98, 0x7c2154\nCMP             R0, #0                                                 ; +0x9c, 0x7c2158\nMOV             R4, R0                                                 ; +0xa0, 0x7c215c\nBNE             loc_7C211C                                             ; +0xa4, 0x7c2160\nCMP             R11, #0                                                ; +0xa8, 0x7c2164\nBEQ             loc_7C2190                                             ; +0xac, 0x7c2168\nMOV             R0, R5                                                 ; +0xb0, 0x7c216c\nBL              ENGINE_get_pkey_asn1_meth_engine                       ; +0xb4, 0x7c2170\nSUBS            R3, R0, #0                                             ; +0xb8, 0x7c2174\nSTR             R3, [R11]                                              ; +0xbc, 0x7c2178\nBEQ             loc_7C2190                                             ; +0xc0, 0x7c217c\nMOV             R1, R5                                                 ; +0xc4, 0x7c2180\nBL              ENGINE_get_pkey_asn1_meth                              ; +0xc8, 0x7c2184\nADD             SP, SP, #0x84                                          ; +0xcc, 0x7c2188\nPOP             {R4-R11,PC}                                            ; +0xd0, 0x7c218c\nMOV             R0, R4                                                 ; +0xd4, 0x7c2190\nADD             SP, SP, #0x84                                          ; +0xd8, 0x7c2194\nPOP             {R4-R11,PC}                                            ; +0xdc, 0x7c2198\nMOV             R4, #0                                                 ; +0xe0, 0x7c219c\nB               loc_7C2164                                             ; +0xe4, 0x7c21a0", "xrefs": ["EVP_PKEY_set_type @ 0x8051c0", "EVP_PKEY_set_type @ 0x805200", "EVP_PKEY_set_type_str @ 0x805458", "EVP_PKEY_type @ 0x8057bc", "X509_signature_print @ 0x83d3d4", "<???> @ 0x5e5bc"], "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"}