{"type": "func", "start": 14739708, "end": 14739824, "name": "ASN1_item_unpack", "pseudocode": "// \n// ASN1_item_unpack from 0xe0e8fc to 0xe0e970 (116 bytes)\n// \n// 7 xrefs:\n// > OCSP_response_get1_basic @ 0xdc3834\n// > PKCS12_SAFEBAG_get1_cert @ 0xdcb5ec\n// > PKCS12_SAFEBAG_get1_crl @ 0xdcb648\n// > ASN1_TYPE_unpack_sequence @ 0xe0cb28\n// > PKCS12_unpack_p7data @ 0xe657ac\n// > PKCS12_unpack_authsafes @ 0xe65a64\n// > <???> @ 0x7c368\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_item_unpack(int *a1, __int64 a2)\n{\n  __int64 v2; // x2\n  __int64 result; // x0\n  char *v4; // [xsp+28h] [xbp+28h] BYREF\n\n  v2 = *a1;\n  v4 = *((char **)a1 + 1);\n  result = ASN1_item_d2i(nullptr, &v4, v2, a2);\n  if ( !result )\n  {\n    ERR_put_error(13, 199, 110, (__int64)\"crypto/asn1/asn_pack.c\", 60);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_item_unpack from 0xe0e8fc to 0xe0e970 (116 bytes)\n; \n; 7 xrefs:\n; > OCSP_response_get1_basic @ 0xdc3834\n; > PKCS12_SAFEBAG_get1_cert @ 0xdcb5ec\n; > PKCS12_SAFEBAG_get1_crl @ 0xdcb648\n; > ASN1_TYPE_unpack_sequence @ 0xe0cb28\n; > PKCS12_unpack_p7data @ 0xe657ac\n; > PKCS12_unpack_authsafes @ 0xe65a64\n; > <???> @ 0x7c368\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, 0xe0e8fc\nMOV             X2, X0                                                 ; +0x4, 0xe0e900\nMOV             X3, X1                                                 ; +0x8, 0xe0e904\nMOV             X29, SP                                                ; +0xc, 0xe0e908\nADD             X4, X29, #0x30+arg_0                                   ; +0x10, 0xe0e90c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x14, 0xe0e910\nLDR             X1, [X2,#8]                                            ; +0x18, 0xe0e914\nMOV             X0, #0                                                 ; +0x1c, 0xe0e918\nLDRSW           X2, [X2]                                               ; +0x20, 0xe0e91c\nSTR             X1, [X4,#-8]!                                          ; +0x24, 0xe0e920\nMOV             X1, X4                                                 ; +0x28, 0xe0e924\nBL              ASN1_item_d2i                                          ; +0x2c, 0xe0e928\nMOV             X19, X0                                                ; +0x30, 0xe0e92c\nCBZ             X0, loc_E0E944                                         ; +0x34, 0xe0e930\nMOV             X0, X19                                                ; +0x38, 0xe0e934\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x3c, 0xe0e938\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0xe0e93c\nRET                                                                    ; +0x44, 0xe0e940\nADRP            X3, #aCryptoAsn1AsnP@PAGE; \"crypto/asn1/asn_pack.c\"    ; +0x48, 0xe0e944\nMOV             W0, #0xD                                               ; +0x4c, 0xe0e948\nMOV             W1, #0xC7                                              ; +0x50, 0xe0e94c\nMOV             W2, #0x6E ; 'n'                                        ; +0x54, 0xe0e950\nADD             X3, X3, #aCryptoAsn1AsnP@PAGEOFF; \"crypto/asn1/asn_pack.c\" ; +0x58, 0xe0e954\nMOV             W4, #0x3C ; '<'                                        ; +0x5c, 0xe0e958\nBL              ERR_put_error                                          ; +0x60, 0xe0e95c\nMOV             X0, X19                                                ; +0x64, 0xe0e960\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x68, 0xe0e964\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x6c, 0xe0e968\nRET                                                                    ; +0x70, 0xe0e96c", "xrefs": ["OCSP_response_get1_basic @ 0xdc3834", "PKCS12_SAFEBAG_get1_cert @ 0xdcb5ec", "PKCS12_SAFEBAG_get1_crl @ 0xdcb648", "ASN1_TYPE_unpack_sequence @ 0xe0cb28", "PKCS12_unpack_p7data @ 0xe657ac", "PKCS12_unpack_authsafes @ 0xe65a64", "<???> @ 0x7c368"], "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"}