{"type": "func", "start": 8409048, "end": 8409160, "name": "EVP_PKEY_cmp", "pseudocode": "// \n// EVP_PKEY_cmp from 0x804fd8 to 0x805048 (112 bytes)\n// \n// 3 xrefs:\n// > X509_check_private_key @ 0x83ebb0\n// > X509_REQ_check_private_key @ 0x8c33d0\n// > <???> @ 0x63acc\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\nint __fastcall EVP_PKEY_cmp(_DWORD *a1, _DWORD *a2)\n{\n  int v2; // r12\n  int (*v3)(void); // r3\n  int result; // r0\n  int (__fastcall *v7)(_DWORD *, _DWORD *); // r3\n\n  if ( *a1 != *a2 )\n    return -1;\n  v2 = a1[3];\n  if ( !v2 )\n    return -2;\n  v3 = *(int (**)(void))(v2 + 76);\n  if ( v3 )\n  {\n    result = v3();\n    if ( result <= 0 )\n      return result;\n    v2 = a1[3];\n  }\n  v7 = *(int (__fastcall **)(_DWORD *, _DWORD *))(v2 + 28);\n  if ( v7 )\n    return v7(a1, a2);\n  else\n    return -2;\n}", "assembly": "; \n; EVP_PKEY_cmp from 0x804fd8 to 0x805048 (112 bytes)\n; \n; 3 xrefs:\n; > X509_check_private_key @ 0x83ebb0\n; > X509_REQ_check_private_key @ 0x8c33d0\n; > <???> @ 0x63acc\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            {R4-R6,LR}                                             ; +0x0, 0x804fd8\nLDR             R12, [R1]                                              ; +0x4, 0x804fdc\nLDR             LR, [R0]                                               ; +0x8, 0x804fe0\nCMP             LR, R12                                                ; +0xc, 0x804fe4\nBNE             loc_805038                                             ; +0x10, 0x804fe8\nLDR             R12, [R0,#0xC]                                         ; +0x14, 0x804fec\nCMP             R12, #0                                                ; +0x18, 0x804ff0\nBEQ             loc_805040                                             ; +0x1c, 0x804ff4\nLDR             R3, [R12,#0x4C]                                        ; +0x20, 0x804ff8\nMOV             R5, R1                                                 ; +0x24, 0x804ffc\nCMP             R3, #0                                                 ; +0x28, 0x805000\nMOV             R4, R0                                                 ; +0x2c, 0x805004\nBEQ             loc_80501C                                             ; +0x30, 0x805008\nBLX             R3                                                     ; +0x34, 0x80500c\nCMP             R0, #0                                                 ; +0x38, 0x805010\nPOPLE           {R4-R6,PC}                                             ; +0x3c, 0x805014\nLDR             R12, [R4,#0xC]                                         ; +0x40, 0x805018\nLDR             R3, [R12,#0x1C]                                        ; +0x44, 0x80501c\nCMP             R3, #0                                                 ; +0x48, 0x805020\nBEQ             loc_805040                                             ; +0x4c, 0x805024\nMOV             R0, R4                                                 ; +0x50, 0x805028\nMOV             R1, R5                                                 ; +0x54, 0x80502c\nPOP             {R4-R6,LR}                                             ; +0x58, 0x805030\nBX              R3                                                     ; +0x5c, 0x805034\nMOV             R0, #0xFFFFFFFF                                        ; +0x60, 0x805038\nPOP             {R4-R6,PC}                                             ; +0x64, 0x80503c\nMOV             R0, #0xFFFFFFFE                                        ; +0x68, 0x805040\nPOP             {R4-R6,PC}                                             ; +0x6c, 0x805044", "xrefs": ["X509_check_private_key @ 0x83ebb0", "X509_REQ_check_private_key @ 0x8c33d0", "<???> @ 0x63acc"], "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"}