{"type": "func", "start": 14731528, "end": 14731640, "name": "ASN1_TYPE_set", "pseudocode": "// \n// ASN1_TYPE_set from 0xe0c908 to 0xe0c978 (112 bytes)\n// \n// 10 xrefs:\n// > sub_D6AECC @ 0xd6b4d8\n// > X509_ALGOR_set0 @ 0xd70838\n// > EVP_CIPHER_param_to_asn1 @ 0xdaa8ac\n// > X509_ATTRIBUTE_set1_data @ 0xde5fc0\n// > X509_ATTRIBUTE_create @ 0xdf06c0\n// > ASN1_TYPE_set1 @ 0xe0c9b8\n// > ASN1_TYPE_set1 @ 0xe0c9e0\n// > ASN1_TYPE_pack_sequence @ 0xe0cab4\n// > ASN1_TYPE_set_octetstring @ 0xe0e9bc\n// > <???> @ 0x3bf10\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\n__int64 __fastcall ASN1_TYPE_set(__int64 a1, int a2, __int64 a3)\n{\n  _DWORD *v3; // x3\n  __int64 result; // x0\n  _DWORD *v7; // [xsp+28h] [xbp+28h] BYREF\n\n  v3 = (_DWORD *)a1;\n  v7 = (_DWORD *)a1;\n  result = *(_QWORD *)(a1 + 8);\n  if ( result )\n  {\n    result = asn1_primitive_free(&v7, 0, 0);\n    v3 = v7;\n  }\n  *v3 = a2;\n  if ( a2 == 1 )\n  {\n    if ( a3 )\n      result = 255;\n    else\n      result = 0;\n    v3[2] = result;\n  }\n  else\n  {\n    *((_QWORD *)v3 + 1) = a3;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_TYPE_set from 0xe0c908 to 0xe0c978 (112 bytes)\n; \n; 10 xrefs:\n; > sub_D6AECC @ 0xd6b4d8\n; > X509_ALGOR_set0 @ 0xd70838\n; > EVP_CIPHER_param_to_asn1 @ 0xdaa8ac\n; > X509_ATTRIBUTE_set1_data @ 0xde5fc0\n; > X509_ATTRIBUTE_create @ 0xdf06c0\n; > ASN1_TYPE_set1 @ 0xe0c9b8\n; > ASN1_TYPE_set1 @ 0xe0c9e0\n; > ASN1_TYPE_pack_sequence @ 0xe0cab4\n; > ASN1_TYPE_set_octetstring @ 0xe0e9bc\n; > <???> @ 0x3bf10\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xe0c908\nMOV             X3, X0                                                 ; +0x4, 0xe0c90c\nMOV             X29, SP                                                ; +0x8, 0xe0c910\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xe0c914\nMOV             W19, W1                                                ; +0x10, 0xe0c918\nMOV             X20, X2                                                ; +0x14, 0xe0c91c\nSTR             X0, [X29,#0x30+var_8]                                  ; +0x18, 0xe0c920\nLDR             X0, [X0,#8]                                            ; +0x1c, 0xe0c924\nCBZ             X0, loc_E0C940                                         ; +0x20, 0xe0c928\nMOV             X1, #0                                                 ; +0x24, 0xe0c92c\nADD             X0, X29, #0x30+var_8                                   ; +0x28, 0xe0c930\nMOV             W2, W1                                                 ; +0x2c, 0xe0c934\nBL              asn1_primitive_free                                    ; +0x30, 0xe0c938\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x34, 0xe0c93c\nSTR             W19, [X3]                                              ; +0x38, 0xe0c940\nCMP             W19, #1                                                ; +0x3c, 0xe0c944\nB.EQ            loc_E0C95C                                             ; +0x40, 0xe0c948\nSTR             X20, [X3,#8]                                           ; +0x44, 0xe0c94c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x48, 0xe0c950\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x4c, 0xe0c954\nRET                                                                    ; +0x50, 0xe0c958\nCMP             X20, XZR                                               ; +0x54, 0xe0c95c\nMOV             W0, #0xFF                                              ; +0x58, 0xe0c960\nCSEL            W0, W0, WZR, NE                                        ; +0x5c, 0xe0c964\nSTR             W0, [X3,#8]                                            ; +0x60, 0xe0c968\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0xe0c96c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0xe0c970\nRET                                                                    ; +0x6c, 0xe0c974", "xrefs": ["sub_D6AECC @ 0xd6b4d8", "X509_ALGOR_set0 @ 0xd70838", "EVP_CIPHER_param_to_asn1 @ 0xdaa8ac", "X509_ATTRIBUTE_set1_data @ 0xde5fc0", "X509_ATTRIBUTE_create @ 0xdf06c0", "ASN1_TYPE_set1 @ 0xe0c9b8", "ASN1_TYPE_set1 @ 0xe0c9e0", "ASN1_TYPE_pack_sequence @ 0xe0cab4", "ASN1_TYPE_set_octetstring @ 0xe0e9bc", "<???> @ 0x3bf10"], "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"}