{"type": "func", "start": 10320216, "end": 10320288, "name": "ASN1_STRING_clear_free", "pseudocode": "// \n// ASN1_STRING_clear_free from 0x9d7958 to 0x9d79a0 (72 bytes)\n// \n// 8 xrefs:\n// > sub_9F2C54 @ 0x9f2cd4\n// > sub_9F2C54 @ 0x9f2d34\n// > sub_9F2DCC @ 0x9f2e58\n// > sub_9F2DCC @ 0x9f2f08\n// > sub_9F5C2C @ 0x9f5cb0\n// > sub_9F5C2C @ 0x9f5d0c\n// > sub_9F5DC4 @ 0x9f5e84\n// > <???> @ 0x7823c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:15 +0000\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 0x9d7958 to 0x9d79a0 (72 bytes)\n; \n; 8 xrefs:\n; > sub_9F2C54 @ 0x9f2cd4\n; > sub_9F2C54 @ 0x9f2d34\n; > sub_9F2DCC @ 0x9f2e58\n; > sub_9F2DCC @ 0x9f2f08\n; > sub_9F5C2C @ 0x9f5cb0\n; > sub_9F5C2C @ 0x9f5d0c\n; > sub_9F5DC4 @ 0x9f5e84\n; > <???> @ 0x7823c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:15 +0000\n; \nCMP             R0, #0                                                 ; +0x0, 0x9d7958\nBXEQ            LR                                                     ; +0x4, 0x9d795c\nPUSH            {R4,LR}                                                ; +0x8, 0x9d7960\nMOV             R4, R0                                                 ; +0xc, 0x9d7964\nLDR             R0, [R0,#8]                                            ; +0x10, 0x9d7968\nCMP             R0, #0                                                 ; +0x14, 0x9d796c\nBEQ             loc_9D7980                                             ; +0x18, 0x9d7970\nLDR             R3, [R4,#0xC]                                          ; +0x1c, 0x9d7974\nTST             R3, #0x10                                              ; +0x20, 0x9d7978\nBEQ             loc_9D798C                                             ; +0x24, 0x9d797c\nMOV             R0, R4                                                 ; +0x28, 0x9d7980\nPOP             {R4,LR}                                                ; +0x2c, 0x9d7984\nB               ASN1_STRING_free                                       ; +0x30, 0x9d7988\nLDR             R1, [R4]                                               ; +0x34, 0x9d798c\nBL              OPENSSL_cleanse                                        ; +0x38, 0x9d7990\nMOV             R0, R4                                                 ; +0x3c, 0x9d7994\nPOP             {R4,LR}                                                ; +0x40, 0x9d7998\nB               ASN1_STRING_free                                       ; +0x44, 0x9d799c", "xrefs": ["sub_9F2C54 @ 0x9f2cd4", "sub_9F2C54 @ 0x9f2d34", "sub_9F2DCC @ 0x9f2e58", "sub_9F2DCC @ 0x9f2f08", "sub_9F5C2C @ 0x9f5cb0", "sub_9F5C2C @ 0x9f5d0c", "sub_9F5DC4 @ 0x9f5e84", "<???> @ 0x7823c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}