{"type": "func", "start": 8874916, "end": 8875048, "name": "CMS_get0_signers", "pseudocode": "// \n// CMS_get0_signers from 0x876ba4 to 0x876c28 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6a59c\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\nvoid **__fastcall CMS_get0_signers(int *a1)\n{\n  signed int v1; // r4\n  void **v2; // r7\n  _DWORD *v3; // r6\n  int v4; // r0\n  unsigned int v5; // r1\n  int v7; // r0\n  int v8; // r1\n  int v9; // r5\n\n  v1 = 0;\n  v2 = nullptr;\n  v3 = (_DWORD *)CMS_get0_SignerInfos(a1);\n  while ( 1 )\n  {\n    v4 = OPENSSL_sk_num((int)v3);\n    v5 = v1;\n    if ( v1++ >= v4 )\n      break;\n    v7 = OPENSSL_sk_value(v3, v5);\n    v8 = *(_DWORD *)(v7 + 28);\n    v9 = v7;\n    if ( v8 )\n    {\n      if ( !v2 )\n      {\n        v2 = (void **)OPENSSL_sk_new_null();\n        if ( !v2 )\n          return v2;\n        v8 = *(_DWORD *)(v9 + 28);\n      }\n      if ( !OPENSSL_sk_push((int *)v2, v8) )\n      {\n        OPENSSL_sk_free(v2);\n        return nullptr;\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; CMS_get0_signers from 0x876ba4 to 0x876c28 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6a59c\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-R7,LR}                                             ; +0x0, 0x876ba4\nBL              CMS_get0_SignerInfos                                   ; +0x4, 0x876ba8\nMOV             R4, #0                                                 ; +0x8, 0x876bac\nMOV             R7, R4                                                 ; +0xc, 0x876bb0\nMOV             R6, R0                                                 ; +0x10, 0x876bb4\nMOV             R0, R6                                                 ; +0x14, 0x876bb8\nBL              OPENSSL_sk_num                                         ; +0x18, 0x876bbc\nMOV             R1, R4                                                 ; +0x1c, 0x876bc0\nCMP             R4, R0                                                 ; +0x20, 0x876bc4\nMOV             R0, R6                                                 ; +0x24, 0x876bc8\nADD             R4, R4, #1                                             ; +0x28, 0x876bcc\nBGE             loc_876C20                                             ; +0x2c, 0x876bd0\nBL              OPENSSL_sk_value                                       ; +0x30, 0x876bd4\nLDR             R1, [R0,#0x1C]                                         ; +0x34, 0x876bd8\nMOV             R5, R0                                                 ; +0x38, 0x876bdc\nCMP             R1, #0                                                 ; +0x3c, 0x876be0\nBEQ             loc_876BB8                                             ; +0x40, 0x876be4\nCMP             R7, #0                                                 ; +0x44, 0x876be8\nBEQ             loc_876C10                                             ; +0x48, 0x876bec\nMOV             R0, R7                                                 ; +0x4c, 0x876bf0\nBL              OPENSSL_sk_push                                        ; +0x50, 0x876bf4\nSUBS            R5, R0, #0                                             ; +0x54, 0x876bf8\nBNE             loc_876BB8                                             ; +0x58, 0x876bfc\nMOV             R0, R7                                                 ; +0x5c, 0x876c00\nBL              OPENSSL_sk_free                                        ; +0x60, 0x876c04\nMOV             R0, R5                                                 ; +0x64, 0x876c08\nPOP             {R3-R7,PC}                                             ; +0x68, 0x876c0c\nBL              OPENSSL_sk_new_null                                    ; +0x6c, 0x876c10\nSUBS            R7, R0, #0                                             ; +0x70, 0x876c14\nLDRNE           R1, [R5,#0x1C]                                         ; +0x74, 0x876c18\nBNE             loc_876BF0                                             ; +0x78, 0x876c1c\nMOV             R0, R7                                                 ; +0x7c, 0x876c20\nPOP             {R3-R7,PC}                                             ; +0x80, 0x876c24", "xrefs": ["<???> @ 0x6a59c"], "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"}