{"type": "func", "start": 8358292, "end": 8358516, "name": "ENGINE_pkey_asn1_find_str", "pseudocode": "// \n// ENGINE_pkey_asn1_find_str from 0x7f8994 to 0x7f8a74 (224 bytes)\n// \n// 2 xrefs:\n// > EVP_PKEY_asn1_find_str @ 0x7c21e0\n// > <???> @ 0x5e5ec\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 ENGINE_pkey_asn1_find_str(_DWORD *a1, int a2, int a3)\n{\n  int v4; // r3\n  int v6; // [sp+8h] [bp-14h] BYREF\n  int v7; // [sp+Ch] [bp-10h]\n  int v8; // [sp+10h] [bp-Ch]\n  int v9; // [sp+14h] [bp-8h]\n\n  v8 = a2;\n  v9 = a3;\n  v6 = 0;\n  v7 = 0;\n  if ( CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_) && do_engine_lock_init_ossl_ret_ )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    engine_table_doall(dword_AD2E8C, sub_7F85C8, &v6);\n    v4 = v6;\n    if ( v6 )\n      ++*(_DWORD *)(v6 + 80);\n    *a1 = v4;\n    CRYPTO_THREAD_unlock(global_engine_lock);\n    return v7;\n  }\n  else\n  {\n    ERR_put_error(38, 197, 65, \"crypto/engine/tb_asnmth.c\", 193);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_pkey_asn1_find_str from 0x7f8994 to 0x7f8a74 (224 bytes)\n; \n; 2 xrefs:\n; > EVP_PKEY_asn1_find_str @ 0x7c21e0\n; > <???> @ 0x5e5ec\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,R5,LR}                                             ; +0x0, 0x7f8994\nLDR             R4, =(_GLOBAL_OFFSET_TABLE_ - 0x7F89AC)                ; +0x4, 0x7f8998\nLDR             R12, =(engine_lock_init_ptr - 0xAB8990)                ; +0x8, 0x7f899c\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x7f89a0\nADD             R4, PC, R4; _GLOBAL_OFFSET_TABLE_                      ; +0x10, 0x7f89a4\nMOV             LR, #0                                                 ; +0x14, 0x7f89a8\nSTR             R1, [SP,#0x1C+var_C]                                   ; +0x18, 0x7f89ac\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x1c, 0x7f89b0\nSTR             LR, [SP,#0x1C+var_14]                                  ; +0x20, 0x7f89b4\nSTR             LR, [SP,#0x1C+var_10]                                  ; +0x24, 0x7f89b8\nLDR             R3, =(do_engine_lock_init_ossl__ptr - 0xAB8990)        ; +0x28, 0x7f89bc\nLDR             R2, [R4,R12]; engine_lock_init                         ; +0x2c, 0x7f89c0\nLDR             R1, [R4,R3]; do_engine_lock_init_ossl_                 ; +0x30, 0x7f89c4\nMOV             R5, R0                                                 ; +0x34, 0x7f89c8\nMOV             R0, R2                                                 ; +0x38, 0x7f89cc\nBL              CRYPTO_THREAD_run_once                                 ; +0x3c, 0x7f89d0\nCMP             R0, #0                                                 ; +0x40, 0x7f89d4\nBEQ             loc_7F8A48                                             ; +0x44, 0x7f89d8\nLDR             R3, =(do_engine_lock_init_ossl_ret__ptr - 0xAB8990)    ; +0x48, 0x7f89dc\nLDR             R3, [R4,R3]; do_engine_lock_init_ossl_ret_             ; +0x4c, 0x7f89e0\nLDR             R3, [R3]                                               ; +0x50, 0x7f89e4\nCMP             R3, #0                                                 ; +0x54, 0x7f89e8\nBEQ             loc_7F8A48                                             ; +0x58, 0x7f89ec\nLDR             R3, =(global_engine_lock_ptr - 0xAB8990)               ; +0x5c, 0x7f89f0\nLDR             R4, [R4,R3]; global_engine_lock                        ; +0x60, 0x7f89f4\nLDR             R0, [R4]                                               ; +0x64, 0x7f89f8\nBL              CRYPTO_THREAD_write_lock                               ; +0x68, 0x7f89fc\nLDR             R3, =(dword_AD2E8C - 0x7F8A10)                         ; +0x6c, 0x7f8a00\nLDR             R1, =(sub_7F85C8 - 0x7F8A18)                           ; +0x70, 0x7f8a04\nADD             R3, PC, R3; dword_AD2E8C                               ; +0x74, 0x7f8a08\nADD             R2, SP, #0x1C+var_14                                   ; +0x78, 0x7f8a0c\nADD             R1, PC, R1; sub_7F85C8                                 ; +0x7c, 0x7f8a10\nLDR             R0, [R3]                                               ; +0x80, 0x7f8a14\nBL              engine_table_doall                                     ; +0x84, 0x7f8a18\nLDR             R3, [SP,#0x1C+var_14]                                  ; +0x88, 0x7f8a1c\nCMP             R3, #0                                                 ; +0x8c, 0x7f8a20\nLDRNE           R2, [R3,#0x50]                                         ; +0x90, 0x7f8a24\nADDNE           R2, R2, #1                                             ; +0x94, 0x7f8a28\nSTRNE           R2, [R3,#0x50]                                         ; +0x98, 0x7f8a2c\nSTR             R3, [R5]                                               ; +0x9c, 0x7f8a30\nLDR             R0, [R4]                                               ; +0xa0, 0x7f8a34\nBL              CRYPTO_THREAD_unlock                                   ; +0xa4, 0x7f8a38\nLDR             R0, [SP,#0x1C+var_10]                                  ; +0xa8, 0x7f8a3c\nADD             SP, SP, #0x1C                                          ; +0xac, 0x7f8a40\nPOP             {R4,R5,PC}                                             ; +0xb0, 0x7f8a44\nMOV             R3, #0xC1                                              ; +0xb4, 0x7f8a48\nSTR             R3, [SP,#0x1C+var_1C]                                  ; +0xb8, 0x7f8a4c\nLDR             R3, =(aCryptoEngineTb - 0x7F8A68); \"crypto/engine/tb_asnmth.c\" ; +0xbc, 0x7f8a50\nMOV             R0, #0x26 ; '&'                                        ; +0xc0, 0x7f8a54\nMOV             R1, #0xC5                                              ; +0xc4, 0x7f8a58\nMOV             R2, #0x41 ; 'A'                                        ; +0xc8, 0x7f8a5c\nADD             R3, PC, R3; \"crypto/engine/tb_asnmth.c\"                ; +0xcc, 0x7f8a60\nBL              ERR_put_error                                          ; +0xd0, 0x7f8a64\nMOV             R0, #0                                                 ; +0xd4, 0x7f8a68\nADD             SP, SP, #0x1C                                          ; +0xd8, 0x7f8a6c\nPOP             {R4,R5,PC}                                             ; +0xdc, 0x7f8a70", "xrefs": ["EVP_PKEY_asn1_find_str @ 0x7c21e0", "<???> @ 0x5e5ec"], "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"}