{"type": "func", "start": 8137592, "end": 8137692, "name": "ASN1_STRING_copy", "pseudocode": "// \n// ASN1_STRING_copy from 0x7c2b78 to 0x7c2bdc (100 bytes)\n// \n// 8 xrefs:\n// > ASN1_TIME_set_string @ 0x7c1264\n// > ASN1_STRING_dup @ 0x7c2d28\n// > OCSP_cert_id_new @ 0x81e9a8\n// > X509_set_serialNumber @ 0x840998\n// > X509_REVOKED_set_serialNumber @ 0x84761c\n// > sub_849870 @ 0x849958\n// > cms_set1_ias @ 0x875e10\n// > <???> @ 0x5e4cc\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_copy(signed int *a1, int a2)\n{\n  int v5; // r3\n\n  if ( !a2 )\n    return 0;\n  a1[1] = *(_DWORD *)(a2 + 4);\n  if ( !ASN1_STRING_set(a1, *(const char **)(a2 + 8), *(_DWORD *)a2) )\n    return 0;\n  v5 = a1[3] & 0x80;\n  a1[3] = v5;\n  a1[3] = *(_DWORD *)(a2 + 12) & 0xFFFFFF7F | v5;\n  return 1;\n}", "assembly": "; \n; ASN1_STRING_copy from 0x7c2b78 to 0x7c2bdc (100 bytes)\n; \n; 8 xrefs:\n; > ASN1_TIME_set_string @ 0x7c1264\n; > ASN1_STRING_dup @ 0x7c2d28\n; > OCSP_cert_id_new @ 0x81e9a8\n; > X509_set_serialNumber @ 0x840998\n; > X509_REVOKED_set_serialNumber @ 0x84761c\n; > sub_849870 @ 0x849958\n; > cms_set1_ias @ 0x875e10\n; > <???> @ 0x5e4cc\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             R1, #0                                                 ; +0x0, 0x7c2b78\nBEQ             loc_7C2BD4                                             ; +0x4, 0x7c2b7c\nPUSH            {R3-R5,LR}                                             ; +0x8, 0x7c2b80\nLDR             R3, [R1,#4]                                            ; +0xc, 0x7c2b84\nMOV             R4, R1                                                 ; +0x10, 0x7c2b88\nSTR             R3, [R0,#4]                                            ; +0x14, 0x7c2b8c\nLDR             R1, [R1,#8]; void *                                    ; +0x18, 0x7c2b90\nLDR             R2, [R4]                                               ; +0x1c, 0x7c2b94\nMOV             R5, R0                                                 ; +0x20, 0x7c2b98\nBL              ASN1_STRING_set                                        ; +0x24, 0x7c2b9c\nCMP             R0, #0                                                 ; +0x28, 0x7c2ba0\nBEQ             loc_7C2BCC                                             ; +0x2c, 0x7c2ba4\nLDR             R3, [R5,#0xC]                                          ; +0x30, 0x7c2ba8\nMOV             R0, #1                                                 ; +0x34, 0x7c2bac\nAND             R3, R3, #0x80                                          ; +0x38, 0x7c2bb0\nSTR             R3, [R5,#0xC]                                          ; +0x3c, 0x7c2bb4\nLDR             R2, [R4,#0xC]                                          ; +0x40, 0x7c2bb8\nBIC             R2, R2, #0x80                                          ; +0x44, 0x7c2bbc\nORR             R3, R2, R3                                             ; +0x48, 0x7c2bc0\nSTR             R3, [R5,#0xC]                                          ; +0x4c, 0x7c2bc4\nPOP             {R3-R5,PC}                                             ; +0x50, 0x7c2bc8\nMOV             R0, #0                                                 ; +0x54, 0x7c2bcc\nPOP             {R3-R5,PC}                                             ; +0x58, 0x7c2bd0\nMOV             R0, #0                                                 ; +0x5c, 0x7c2bd4\nBX              LR                                                     ; +0x60, 0x7c2bd8", "xrefs": ["ASN1_TIME_set_string @ 0x7c1264", "ASN1_STRING_dup @ 0x7c2d28", "OCSP_cert_id_new @ 0x81e9a8", "X509_set_serialNumber @ 0x840998", "X509_REVOKED_set_serialNumber @ 0x84761c", "sub_849870 @ 0x849958", "cms_set1_ias @ 0x875e10", "<???> @ 0x5e4cc"], "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"}