{"type": "func", "start": 8138072, "end": 8138144, "name": "ASN1_STRING_clear_free", "pseudocode": "// \n// ASN1_STRING_clear_free from 0x7c2d58 to 0x7c2da0 (72 bytes)\n// \n// 8 xrefs:\n// > sub_7DE054 @ 0x7de0d4\n// > sub_7DE054 @ 0x7de134\n// > sub_7DE1CC @ 0x7de258\n// > sub_7DE1CC @ 0x7de308\n// > sub_7E102C @ 0x7e10b0\n// > sub_7E102C @ 0x7e110c\n// > sub_7E11C4 @ 0x7e1284\n// > <???> @ 0x5e7bc\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 ASN1_STRING_clear_free(int result)\n{\n  unsigned int *v1; // r4\n  _BYTE *v2; // r0\n\n  if ( result )\n  {\n    v1 = (unsigned int *)result;\n    v2 = *(_BYTE **)(result + 8);\n    if ( v2 && (v1[3] & 0x10) == 0 )\n    {\n      OPENSSL_cleanse(v2, *v1);\n      return ASN1_STRING_free((int)v1);\n    }\n    else\n    {\n      return ASN1_STRING_free((int)v1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; ASN1_STRING_clear_free from 0x7c2d58 to 0x7c2da0 (72 bytes)\n; \n; 8 xrefs:\n; > sub_7DE054 @ 0x7de0d4\n; > sub_7DE054 @ 0x7de134\n; > sub_7DE1CC @ 0x7de258\n; > sub_7DE1CC @ 0x7de308\n; > sub_7E102C @ 0x7e10b0\n; > sub_7E102C @ 0x7e110c\n; > sub_7E11C4 @ 0x7e1284\n; > <???> @ 0x5e7bc\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\nCMP             R0, #0                                                 ; +0x0, 0x7c2d58\nBXEQ            LR                                                     ; +0x4, 0x7c2d5c\nPUSH            {R4,LR}                                                ; +0x8, 0x7c2d60\nMOV             R4, R0                                                 ; +0xc, 0x7c2d64\nLDR             R0, [R0,#8]                                            ; +0x10, 0x7c2d68\nCMP             R0, #0                                                 ; +0x14, 0x7c2d6c\nBEQ             loc_7C2D80                                             ; +0x18, 0x7c2d70\nLDR             R3, [R4,#0xC]                                          ; +0x1c, 0x7c2d74\nTST             R3, #0x10                                              ; +0x20, 0x7c2d78\nBEQ             loc_7C2D8C                                             ; +0x24, 0x7c2d7c\nMOV             R0, R4                                                 ; +0x28, 0x7c2d80\nPOP             {R4,LR}                                                ; +0x2c, 0x7c2d84\nB               ASN1_STRING_free                                       ; +0x30, 0x7c2d88\nLDR             R1, [R4]                                               ; +0x34, 0x7c2d8c\nBL              OPENSSL_cleanse                                        ; +0x38, 0x7c2d90\nMOV             R0, R4                                                 ; +0x3c, 0x7c2d94\nPOP             {R4,LR}                                                ; +0x40, 0x7c2d98\nB               ASN1_STRING_free                                       ; +0x44, 0x7c2d9c", "xrefs": ["sub_7DE054 @ 0x7de0d4", "sub_7DE054 @ 0x7de134", "sub_7DE1CC @ 0x7de258", "sub_7DE1CC @ 0x7de308", "sub_7E102C @ 0x7e10b0", "sub_7E102C @ 0x7e110c", "sub_7E11C4 @ 0x7e1284", "<???> @ 0x5e7bc"], "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"}