{"type": "func", "start": 8237400, "end": 8237528, "name": "CTLOG_STORE_new", "pseudocode": "// \n// CTLOG_STORE_new from 0x7db158 to 0x7db1d8 (128 bytes)\n// \n// 2 xrefs:\n// > SSL_CTX_new @ 0x798994\n// > <???> @ 0x5bf2c\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 *CTLOG_STORE_new()\n{\n  int v0; // r0\n  int *v1; // r4\n  int v2; // r5\n  int *result; // r0\n\n  v0 = CRYPTO_zalloc(4, \"crypto/ct/ct_log.c\", 94);\n  v1 = (int *)v0;\n  if ( v0 )\n  {\n    v2 = OPENSSL_sk_new_null(v0);\n    result = v1;\n    *v1 = v2;\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 0x7db158 to 0x7db1d8 (128 bytes)\n; \n; 2 xrefs:\n; > SSL_CTX_new @ 0x798994\n; > <???> @ 0x5bf2c\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-R6,LR}                                             ; +0x0, 0x7db158\nLDR             R6, =(aCryptoCtCtLogC - 0x7DB16C); \"crypto/ct/ct_log.c\" ; +0x4, 0x7db15c\nSUB             SP, SP, #8                                             ; +0x8, 0x7db160\nADD             R6, PC, R6; \"crypto/ct/ct_log.c\"                       ; +0xc, 0x7db164\nMOV             R0, #4                                                 ; +0x10, 0x7db168\nMOV             R1, R6                                                 ; +0x14, 0x7db16c\nMOV             R2, #0x5E ; '^'                                        ; +0x18, 0x7db170\nBL              CRYPTO_zalloc                                          ; +0x1c, 0x7db174\nSUBS            R4, R0, #0                                             ; +0x20, 0x7db178\nBEQ             loc_7DB1A0                                             ; +0x24, 0x7db17c\nBL              OPENSSL_sk_new_null                                    ; +0x28, 0x7db180\nMOV             R5, R0                                                 ; +0x2c, 0x7db184\nCMP             R5, #0                                                 ; +0x30, 0x7db188\nMOV             R0, R4                                                 ; +0x34, 0x7db18c\nSTR             R5, [R4]                                               ; +0x38, 0x7db190\nBEQ             loc_7DB1C4                                             ; +0x3c, 0x7db194\nADD             SP, SP, #8                                             ; +0x40, 0x7db198\nPOP             {R4-R6,PC}                                             ; +0x44, 0x7db19c\nMOV             R2, #0x61 ; 'a'                                        ; +0x48, 0x7db1a0\nSTR             R2, [SP,#8+var_8]                                      ; +0x4c, 0x7db1a4\nMOV             R0, #0x32 ; '2'                                        ; +0x50, 0x7db1a8\nMOV             R3, R6                                                 ; +0x54, 0x7db1ac\nMOV             R1, #0x83                                              ; +0x58, 0x7db1b0\nMOV             R2, #0x41 ; 'A'                                        ; +0x5c, 0x7db1b4\nBL              ERR_put_error                                          ; +0x60, 0x7db1b8\nMOV             R0, R4                                                 ; +0x64, 0x7db1bc\nB               loc_7DB198                                             ; +0x68, 0x7db1c0\nMOV             R1, R6                                                 ; +0x6c, 0x7db1c4\nMOV             R2, #0x6B ; 'k'                                        ; +0x70, 0x7db1c8\nBL              CRYPTO_free                                            ; +0x74, 0x7db1cc\nMOV             R0, R5                                                 ; +0x78, 0x7db1d0\nB               loc_7DB198                                             ; +0x7c, 0x7db1d4", "xrefs": ["SSL_CTX_new @ 0x798994", "<???> @ 0x5bf2c"], "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"}