{"type": "func", "start": 8447768, "end": 8447916, "name": "CRYPTO_clear_realloc", "pseudocode": "// \n// CRYPTO_clear_realloc from 0x80e718 to 0x80e7ac (148 bytes)\n// \n// 4 xrefs:\n// > BUF_MEM_grow_clean @ 0x7d8e64\n// > ASN1_BIT_STRING_set_bit @ 0x85fedc\n// > a2i_ASN1_INTEGER @ 0x866f4c\n// > <???> @ 0x5fffc\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\nvoid *__fastcall CRYPTO_clear_realloc(_BYTE *a1, unsigned int a2, void *a3, int a4, int a5)\n{\n  const void *v5; // r6\n  void *v7; // r4\n  size_t v8; // r5\n  void *v9; // r0\n\n  v5 = a1;\n  if ( !a1 )\n    return CRYPTO_malloc(a3, a4, a5);\n  v7 = a3;\n  if ( !a3 )\n    goto LABEL_6;\n  v8 = a2;\n  if ( (unsigned int)a3 >= a2 )\n  {\n    v9 = CRYPTO_malloc(a3, a4, a5);\n    v7 = v9;\n    if ( !v9 )\n      return v7;\n    memcpy(v9, v5, v8);\n    a1 = v5;\n    a2 = v8;\nLABEL_6:\n    CRYPTO_clear_free(a1, a2, a4, a5);\n    return v7;\n  }\n  OPENSSL_cleanse((_BYTE *)a3 + (_DWORD)a1, a2 - (_DWORD)a3);\n  return (void *)v5;\n}", "assembly": "; \n; CRYPTO_clear_realloc from 0x80e718 to 0x80e7ac (148 bytes)\n; \n; 4 xrefs:\n; > BUF_MEM_grow_clean @ 0x7d8e64\n; > ASN1_BIT_STRING_set_bit @ 0x85fedc\n; > a2i_ASN1_INTEGER @ 0x866f4c\n; > <???> @ 0x5fffc\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-R8,LR}                                             ; +0x0, 0x80e718\nSUBS            R6, R0, #0                                             ; +0x4, 0x80e71c\nLDR             R8, [SP,#arg_0]                                        ; +0x8, 0x80e720\nBEQ             loc_80E798                                             ; +0xc, 0x80e724\nCMP             R2, #0                                                 ; +0x10, 0x80e728\nMOV             R7, R3                                                 ; +0x14, 0x80e72c\nMOV             R4, R2                                                 ; +0x18, 0x80e730\nBEQ             loc_80E770                                             ; +0x1c, 0x80e734\nCMP             R2, R1                                                 ; +0x20, 0x80e738\nMOV             R5, R1                                                 ; +0x24, 0x80e73c\nBCC             loc_80E784                                             ; +0x28, 0x80e740\nMOV             R0, R2                                                 ; +0x2c, 0x80e744\nMOV             R1, R3                                                 ; +0x30, 0x80e748\nMOV             R2, R8                                                 ; +0x34, 0x80e74c\nBL              CRYPTO_malloc                                          ; +0x38, 0x80e750\nSUBS            R4, R0, #0                                             ; +0x3c, 0x80e754\nBEQ             loc_80E77C                                             ; +0x40, 0x80e758\nMOV             R1, R6; void *                                         ; +0x44, 0x80e75c\nMOV             R2, R5; size_t                                         ; +0x48, 0x80e760\nBL              memcpy                                                 ; +0x4c, 0x80e764\nMOV             R0, R6                                                 ; +0x50, 0x80e768\nMOV             R1, R5                                                 ; +0x54, 0x80e76c\nMOV             R2, R7                                                 ; +0x58, 0x80e770\nMOV             R3, R8                                                 ; +0x5c, 0x80e774\nBL              CRYPTO_clear_free                                      ; +0x60, 0x80e778\nMOV             R0, R4                                                 ; +0x64, 0x80e77c\nPOP             {R4-R8,PC}                                             ; +0x68, 0x80e780\nADD             R0, R6, R2                                             ; +0x6c, 0x80e784\nRSB             R1, R2, R1                                             ; +0x70, 0x80e788\nBL              OPENSSL_cleanse                                        ; +0x74, 0x80e78c\nMOV             R0, R6                                                 ; +0x78, 0x80e790\nPOP             {R4-R8,PC}                                             ; +0x7c, 0x80e794\nMOV             R0, R2                                                 ; +0x80, 0x80e798\nMOV             R1, R3                                                 ; +0x84, 0x80e79c\nMOV             R2, R8                                                 ; +0x88, 0x80e7a0\nPOP             {R4-R8,LR}                                             ; +0x8c, 0x80e7a4\nB               CRYPTO_malloc                                          ; +0x90, 0x80e7a8", "xrefs": ["BUF_MEM_grow_clean @ 0x7d8e64", "ASN1_BIT_STRING_set_bit @ 0x85fedc", "a2i_ASN1_INTEGER @ 0x866f4c", "<???> @ 0x5fffc"], "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"}