{"type": "func", "start": 14816552, "end": 14816628, "name": "CMS_SignerInfo_set1_signer_cert", "pseudocode": "// \n// CMS_SignerInfo_set1_signer_cert from 0xe21528 to 0xe21574 (76 bytes)\n// \n// 3 xrefs:\n// > CMS_set1_signers_certs @ 0xe216c4\n// > CMS_set1_signers_certs @ 0xe216d8\n// > <???> @ 0xbea28\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 CMS_SignerInfo_set1_signer_cert(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  if ( a2 )\n  {\n    X509_up_ref(a2);\n    EVP_PKEY_free(*(_QWORD *)(a1 + 64));\n    *(_QWORD *)(a1 + 64) = X509_get_pubkey(a2);\n  }\n  result = X509_free(*(_QWORD *)(a1 + 56));\n  *(_QWORD *)(a1 + 56) = a2;\n  return result;\n}", "assembly": "; \n; CMS_SignerInfo_set1_signer_cert from 0xe21528 to 0xe21574 (76 bytes)\n; \n; 3 xrefs:\n; > CMS_set1_signers_certs @ 0xe216c4\n; > CMS_set1_signers_certs @ 0xe216d8\n; > <???> @ 0xbea28\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,#-0x20+var_s0]!                          ; +0x0, 0xe21528\nMOV             X29, SP                                                ; +0x4, 0xe2152c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xe21530\nMOV             X20, X1                                                ; +0xc, 0xe21534\nMOV             X19, X0                                                ; +0x10, 0xe21538\nCBZ             X1, loc_E2155C                                         ; +0x14, 0xe2153c\nMOV             X0, X1                                                 ; +0x18, 0xe21540\nBL              X509_up_ref                                            ; +0x1c, 0xe21544\nLDR             X0, [X19,#0x40]                                        ; +0x20, 0xe21548\nBL              EVP_PKEY_free                                          ; +0x24, 0xe2154c\nMOV             X0, X20                                                ; +0x28, 0xe21550\nBL              X509_get_pubkey                                        ; +0x2c, 0xe21554\nSTR             X0, [X19,#0x40]                                        ; +0x30, 0xe21558\nLDR             X0, [X19,#0x38]                                        ; +0x34, 0xe2155c\nBL              X509_free                                              ; +0x38, 0xe21560\nSTR             X20, [X19,#0x38]                                       ; +0x3c, 0xe21564\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0xe21568\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0xe2156c\nRET                                                                    ; +0x48, 0xe21570", "xrefs": ["CMS_set1_signers_certs @ 0xe216c4", "CMS_set1_signers_certs @ 0xe216d8", "<???> @ 0xbea28"], "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"}