{"type": "func", "start": 8875048, "end": 8875108, "name": "CMS_SignerInfo_set1_signer_cert", "pseudocode": "// \n// CMS_SignerInfo_set1_signer_cert from 0x876c28 to 0x876c64 (60 bytes)\n// \n// 3 xrefs:\n// > CMS_set1_signers_certs @ 0x876d9c\n// > CMS_set1_signers_certs @ 0x876dbc\n// > <???> @ 0x6a5ac\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_DWORD *__fastcall CMS_SignerInfo_set1_signer_cert(int a1, int a2)\n{\n  _DWORD *result; // r0\n\n  if ( a2 )\n  {\n    X509_up_ref(a2);\n    EVP_PKEY_free(*(_DWORD *)(a1 + 32));\n    *(_DWORD *)(a1 + 32) = X509_get_pubkey(a2);\n  }\n  result = X509_free(*(_DWORD **)(a1 + 28));\n  *(_DWORD *)(a1 + 28) = a2;\n  return result;\n}", "assembly": "; \n; CMS_SignerInfo_set1_signer_cert from 0x876c28 to 0x876c64 (60 bytes)\n; \n; 3 xrefs:\n; > CMS_set1_signers_certs @ 0x876d9c\n; > CMS_set1_signers_certs @ 0x876dbc\n; > <???> @ 0x6a5ac\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x876c28\nSUBS            R5, R1, #0                                             ; +0x4, 0x876c2c\nMOV             R4, R0                                                 ; +0x8, 0x876c30\nBEQ             loc_876C54                                             ; +0xc, 0x876c34\nMOV             R0, R5                                                 ; +0x10, 0x876c38\nBL              X509_up_ref                                            ; +0x14, 0x876c3c\nLDR             R0, [R4,#0x20]                                         ; +0x18, 0x876c40\nBL              EVP_PKEY_free                                          ; +0x1c, 0x876c44\nMOV             R0, R5                                                 ; +0x20, 0x876c48\nBL              X509_get_pubkey                                        ; +0x24, 0x876c4c\nSTR             R0, [R4,#0x20]                                         ; +0x28, 0x876c50\nLDR             R0, [R4,#0x1C]                                         ; +0x2c, 0x876c54\nBL              X509_free                                              ; +0x30, 0x876c58\nSTR             R5, [R4,#0x1C]                                         ; +0x34, 0x876c5c\nPOP             {R3-R5,PC}                                             ; +0x38, 0x876c60", "xrefs": ["CMS_set1_signers_certs @ 0x876d9c", "CMS_set1_signers_certs @ 0x876dbc", "<???> @ 0x6a5ac"], "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"}