{"type": "func", "start": 17353840, "end": 17353992, "name": "ASN1_TYPE_set_octetstring", "pseudocode": "// \n// ASN1_TYPE_set_octetstring from 0x108cc70 to 0x108cd08 (152 bytes)\n// \n// 2 xrefs:\n// > EVP_CIPHER_set_asn1_iv @ 0x1028988\n// > <???> @ 0xa59d0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:16 +0000\n// \n\n__int64 __fastcall ASN1_TYPE_set_octetstring(__int64 a1, char *a2, int a3)\n{\n  __int64 v4; // x0\n  __int64 v5; // x20\n\n  v4 = ASN1_OCTET_STRING_new();\n  v5 = v4;\n  if ( !v4 )\n    return 0;\n  if ( (unsigned int)ASN1_OCTET_STRING_set(v4, a2, a3) )\n  {\n    ASN1_TYPE_set(a1, 4, v5);\n    return 1;\n  }\n  else\n  {\n    ASN1_OCTET_STRING_free(v5);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_TYPE_set_octetstring from 0x108cc70 to 0x108cd08 (152 bytes)\n; \n; 2 xrefs:\n; > EVP_CIPHER_set_asn1_iv @ 0x1028988\n; > <???> @ 0xa59d0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:16 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x108cc70\nMOV             X29, SP                                                ; +0x4, 0x108cc74\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x108cc78\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x108cc7c\nMOV             X21, X0                                                ; +0x10, 0x108cc80\nSTR             X1, [X29,#0x40+var_10]                                 ; +0x14, 0x108cc84\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x18, 0x108cc88\nBL              ASN1_OCTET_STRING_new                                  ; +0x1c, 0x108cc8c\nMOV             X20, X0                                                ; +0x20, 0x108cc90\nCBZ             X0, loc_108CCF0                                        ; +0x24, 0x108cc94\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x28, 0x108cc98\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x108cc9c\nBL              ASN1_OCTET_STRING_set                                  ; +0x30, 0x108cca0\nMOV             W19, W0                                                ; +0x34, 0x108cca4\nCBZ             W0, loc_108CCD4                                        ; +0x38, 0x108cca8\nMOV             X0, X21                                                ; +0x3c, 0x108ccac\nMOV             X2, X20                                                ; +0x40, 0x108ccb0\nMOV             W1, #4                                                 ; +0x44, 0x108ccb4\nMOV             W19, #1                                                ; +0x48, 0x108ccb8\nBL              ASN1_TYPE_set                                          ; +0x4c, 0x108ccbc\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x50, 0x108ccc0\nMOV             W0, W19                                                ; +0x54, 0x108ccc4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x58, 0x108ccc8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x5c, 0x108cccc\nRET                                                                    ; +0x60, 0x108ccd0\nMOV             X0, X20                                                ; +0x64, 0x108ccd4\nBL              ASN1_OCTET_STRING_free                                 ; +0x68, 0x108ccd8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x6c, 0x108ccdc\nMOV             W0, W19                                                ; +0x70, 0x108cce0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x74, 0x108cce4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0x108cce8\nRET                                                                    ; +0x7c, 0x108ccec\nMOV             W19, W0                                                ; +0x80, 0x108ccf0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x84, 0x108ccf4\nMOV             W0, W19                                                ; +0x88, 0x108ccf8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x8c, 0x108ccfc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x90, 0x108cd00\nRET                                                                    ; +0x94, 0x108cd04", "xrefs": ["EVP_CIPHER_set_asn1_iv @ 0x1028988", "<???> @ 0xa59d0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}