{"type": "func", "start": 14167068, "end": 14167204, "name": "CTLOG_STORE_new", "pseudocode": "// \n// CTLOG_STORE_new from 0xd82c1c to 0xd82ca4 (136 bytes)\n// \n// 2 xrefs:\n// > SSL_CTX_new @ 0xd41520\n// > <???> @ 0x5af48\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\n_QWORD *CTLOG_STORE_new()\n{\n  __int64 v0; // x0\n  _QWORD *v1; // x19\n  __int64 v2; // x21\n  _QWORD *result; // x0\n\n  v0 = CRYPTO_zalloc(8, \"crypto/ct/ct_log.c\", 94);\n  v1 = (_QWORD *)v0;\n  if ( v0 )\n  {\n    v2 = OPENSSL_sk_new_null(v0);\n    *v1 = v2;\n    result = v1;\n    if ( !v2 )\n    {\n      CRYPTO_free(v1, \"crypto/ct/ct_log.c\", 107);\n      return nullptr;\n    }\n  }\n  else\n  {\n    ERR_put_error(50, 131, 65, \"crypto/ct/ct_log.c\", 97);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; CTLOG_STORE_new from 0xd82c1c to 0xd82ca4 (136 bytes)\n; \n; 2 xrefs:\n; > SSL_CTX_new @ 0xd41520\n; > <???> @ 0x5af48\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xd82c1c\nMOV             X0, #8                                                 ; +0x4, 0xd82c20\nMOV             W2, #0x5E ; '^'                                        ; +0x8, 0xd82c24\nMOV             X29, SP                                                ; +0xc, 0xd82c28\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0xd82c2c\nADRP            X20, #aCryptoCtCtLogC@PAGE; \"crypto/ct/ct_log.c\"       ; +0x14, 0xd82c30\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x18, 0xd82c34\nADD             X20, X20, #aCryptoCtCtLogC@PAGEOFF; \"crypto/ct/ct_log.c\" ; +0x1c, 0xd82c38\nMOV             X1, X20                                                ; +0x20, 0xd82c3c\nBL              CRYPTO_zalloc                                          ; +0x24, 0xd82c40\nMOV             X19, X0                                                ; +0x28, 0xd82c44\nCBZ             X0, loc_D82C70                                         ; +0x2c, 0xd82c48\nBL              OPENSSL_sk_new_null                                    ; +0x30, 0xd82c4c\nMOV             X21, X0                                                ; +0x34, 0xd82c50\nSTR             X0, [X19]                                              ; +0x38, 0xd82c54\nMOV             X0, X19                                                ; +0x3c, 0xd82c58\nCBZ             X21, loc_D82C90                                        ; +0x40, 0xd82c5c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x44, 0xd82c60\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x48, 0xd82c64\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x4c, 0xd82c68\nRET                                                                    ; +0x50, 0xd82c6c\nMOV             W0, #0x32 ; '2'                                        ; +0x54, 0xd82c70\nMOV             W1, #0x83                                              ; +0x58, 0xd82c74\nMOV             W2, #0x41 ; 'A'                                        ; +0x5c, 0xd82c78\nMOV             X3, X20                                                ; +0x60, 0xd82c7c\nMOV             W4, #0x61 ; 'a'                                        ; +0x64, 0xd82c80\nBL              ERR_put_error                                          ; +0x68, 0xd82c84\nMOV             X0, X19                                                ; +0x6c, 0xd82c88\nB               loc_D82C60                                             ; +0x70, 0xd82c8c\nMOV             X1, X20                                                ; +0x74, 0xd82c90\nMOV             W2, #0x6B ; 'k'                                        ; +0x78, 0xd82c94\nBL              CRYPTO_free                                            ; +0x7c, 0xd82c98\nMOV             X0, X21                                                ; +0x80, 0xd82c9c\nB               loc_D82C60                                             ; +0x84, 0xd82ca0", "xrefs": ["SSL_CTX_new @ 0xd41520", "<???> @ 0x5af48"], "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"}