{"type": "func", "start": 8352684, "end": 8352880, "name": "ENGINE_new", "pseudocode": "// \n// ENGINE_new from 0x7f73ac to 0x7f7470 (196 bytes)\n// \n// 4 xrefs:\n// > ENGINE_by_id @ 0x7f8064\n// > engine_load_dynamic_int @ 0x8b393c\n// > engine_load_openssl_int @ 0x8b41b8\n// > <???> @ 0x6235c\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 ENGINE_new()\n{\n  int v0; // r0\n  int v1; // r4\n  int v2; // r6\n  int result; // r0\n\n  if ( CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)\n    && do_engine_lock_init_ossl_ret_\n    && (v0 = CRYPTO_zalloc(100, \"crypto/engine/eng_lib.c\", 31), (v1 = v0) != 0) )\n  {\n    *(_DWORD *)(v0 + 80) = 1;\n    v2 = CRYPTO_new_ex_data(10, v0, v0 + 88);\n    result = v1;\n    if ( !v2 )\n    {\n      CRYPTO_free(v1, \"crypto/engine/eng_lib.c\", 38);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(38, 122, 65, \"crypto/engine/eng_lib.c\", 32);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; ENGINE_new from 0x7f73ac to 0x7f7470 (196 bytes)\n; \n; 4 xrefs:\n; > ENGINE_by_id @ 0x7f8064\n; > engine_load_dynamic_int @ 0x8b393c\n; > engine_load_openssl_int @ 0x8b41b8\n; > <???> @ 0x6235c\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\nLDR             R0, =(engine_lock_init_ptr - 0x7F73C0)                 ; +0x0, 0x7f73ac\nLDR             R1, =(do_engine_lock_init_ossl__ptr - 0x7F73C8)        ; +0x4, 0x7f73b0\nPUSH            {R4-R6,LR}                                             ; +0x8, 0x7f73b4\nLDR             R0, [PC,R0]; engine_lock_init                          ; +0xc, 0x7f73b8\nSUB             SP, SP, #8                                             ; +0x10, 0x7f73bc\nLDR             R1, [PC,R1]; do_engine_lock_init_ossl_                 ; +0x14, 0x7f73c0\nBL              CRYPTO_THREAD_run_once                                 ; +0x18, 0x7f73c4\nCMP             R0, #0                                                 ; +0x1c, 0x7f73c8\nBEQ             loc_7F7430                                             ; +0x20, 0x7f73cc\nLDR             R3, =(do_engine_lock_init_ossl_ret__ptr - 0x7F73DC)    ; +0x24, 0x7f73d0\nLDR             R3, [PC,R3]; do_engine_lock_init_ossl_ret_             ; +0x28, 0x7f73d4\nLDR             R3, [R3]                                               ; +0x2c, 0x7f73d8\nCMP             R3, #0                                                 ; +0x30, 0x7f73dc\nBEQ             loc_7F7430                                             ; +0x34, 0x7f73e0\nLDR             R5, =(aCryptoEngineEn_3 - 0x7F73F4); \"crypto/engine/eng_lib.c\" ; +0x38, 0x7f73e4\nMOV             R0, #0x64 ; 'd'                                        ; +0x3c, 0x7f73e8\nADD             R5, PC, R5; \"crypto/engine/eng_lib.c\"                  ; +0x40, 0x7f73ec\nMOV             R1, R5                                                 ; +0x44, 0x7f73f0\nMOV             R2, #0x1F                                              ; +0x48, 0x7f73f4\nBL              CRYPTO_zalloc                                          ; +0x4c, 0x7f73f8\nSUBS            R4, R0, #0                                             ; +0x50, 0x7f73fc\nBEQ             loc_7F7430                                             ; +0x54, 0x7f7400\nMOV             R3, #1                                                 ; +0x58, 0x7f7404\nSTR             R3, [R4,#0x50]                                         ; +0x5c, 0x7f7408\nMOV             R0, #0xA                                               ; +0x60, 0x7f740c\nMOV             R1, R4                                                 ; +0x64, 0x7f7410\nADD             R2, R4, #0x58 ; 'X'                                    ; +0x68, 0x7f7414\nBL              CRYPTO_new_ex_data                                     ; +0x6c, 0x7f7418\nSUBS            R6, R0, #0                                             ; +0x70, 0x7f741c\nMOV             R0, R4                                                 ; +0x74, 0x7f7420\nBEQ             loc_7F745C                                             ; +0x78, 0x7f7424\nADD             SP, SP, #8                                             ; +0x7c, 0x7f7428\nPOP             {R4-R6,PC}                                             ; +0x80, 0x7f742c\nMOV             R3, #0x20 ; ' '                                        ; +0x84, 0x7f7430\nSTR             R3, [SP,#8+var_8]                                      ; +0x88, 0x7f7434\nLDR             R3, =(aCryptoEngineEn_3 - 0x7F7450); \"crypto/engine/eng_lib.c\" ; +0x8c, 0x7f7438\nMOV             R0, #0x26 ; '&'                                        ; +0x90, 0x7f743c\nMOV             R1, #0x7A ; 'z'                                        ; +0x94, 0x7f7440\nMOV             R2, #0x41 ; 'A'                                        ; +0x98, 0x7f7444\nADD             R3, PC, R3; \"crypto/engine/eng_lib.c\"                  ; +0x9c, 0x7f7448\nBL              ERR_put_error                                          ; +0xa0, 0x7f744c\nMOV             R0, #0                                                 ; +0xa4, 0x7f7450\nADD             SP, SP, #8                                             ; +0xa8, 0x7f7454\nPOP             {R4-R6,PC}                                             ; +0xac, 0x7f7458\nMOV             R1, R5                                                 ; +0xb0, 0x7f745c\nMOV             R2, #0x26 ; '&'                                        ; +0xb4, 0x7f7460\nBL              CRYPTO_free                                            ; +0xb8, 0x7f7464\nMOV             R0, R6                                                 ; +0xbc, 0x7f7468\nB               loc_7F7428                                             ; +0xc0, 0x7f746c", "xrefs": ["ENGINE_by_id @ 0x7f8064", "engine_load_dynamic_int @ 0x8b393c", "engine_load_openssl_int @ 0x8b41b8", "<???> @ 0x6235c"], "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"}