{"type": "func", "start": 8413476, "end": 8413764, "name": "EVP_PKEY_verify_recover", "pseudocode": "// \n// EVP_PKEY_verify_recover from 0x806124 to 0x806244 (288 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x63bcc\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_verify_recover(int *a1, int a2, unsigned int *a3, int a4, int a5)\n{\n  int v6; // r12\n  unsigned int v10; // r0\n  int (__fastcall *v12)(int *, int, unsigned int *, int, int); // r12\n\n  if ( a1 && (v6 = *a1) != 0 && *(_DWORD *)(v6 + 56) )\n  {\n    if ( a1[4] == 32 )\n    {\n      if ( (*(_DWORD *)(v6 + 4) & 2) == 0 )\n      {\n        v12 = *(int (__fastcall **)(int *, int, unsigned int *, int, int))(v6 + 56);\n        return v12(a1, a2, a3, a4, a5);\n      }\n      v10 = EVP_PKEY_size(a1[2]);\n      if ( !a2 )\n      {\n        *a3 = v10;\n        return 1;\n      }\n      if ( v10 <= *a3 )\n      {\n        v12 = *(int (__fastcall **)(int *, int, unsigned int *, int, int))(*a1 + 56);\n        return v12(a1, a2, a3, a4, a5);\n      }\n      ERR_put_error(6, 144, 155, (int)\"crypto/evp/pmeth_fn.c\", 130);\n      return 0;\n    }\n    else\n    {\n      ERR_put_error(6, 144, 151, (int)\"crypto/evp/pmeth_fn.c\", 127);\n      return -1;\n    }\n  }\n  else\n  {\n    ERR_put_error(6, 144, 150, (int)\"crypto/evp/pmeth_fn.c\", 123);\n    return -2;\n  }\n}", "assembly": "; \n; EVP_PKEY_verify_recover from 0x806124 to 0x806244 (288 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x63bcc\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-R8,LR}                                             ; +0x0, 0x806124\nSUBS            R4, R0, #0                                             ; +0x4, 0x806128\nSUB             SP, SP, #8                                             ; +0x8, 0x80612c\nLDR             R8, [SP,#8+arg_0]                                      ; +0xc, 0x806130\nBEQ             loc_80621C                                             ; +0x10, 0x806134\nLDR             R12, [R4]                                              ; +0x14, 0x806138\nCMP             R12, #0                                                ; +0x18, 0x80613c\nBEQ             loc_80621C                                             ; +0x1c, 0x806140\nLDR             R0, [R12,#0x38]                                        ; +0x20, 0x806144\nCMP             R0, #0                                                 ; +0x24, 0x806148\nBEQ             loc_80621C                                             ; +0x28, 0x80614c\nMOV             R6, R2                                                 ; +0x2c, 0x806150\nLDR             R2, [R4,#0x10]                                         ; +0x30, 0x806154\nCMP             R2, #0x20 ; ' '                                        ; +0x34, 0x806158\nBNE             loc_8061C8                                             ; +0x38, 0x80615c\nLDR             R2, [R12,#4]                                           ; +0x3c, 0x806160\nMOV             R5, R1                                                 ; +0x40, 0x806164\nTST             R2, #2                                                 ; +0x44, 0x806168\nMOV             R7, R3                                                 ; +0x48, 0x80616c\nBEQ             loc_8061A4                                             ; +0x4c, 0x806170\nLDR             R0, [R4,#8]                                            ; +0x50, 0x806174\nBL              EVP_PKEY_size                                          ; +0x54, 0x806178\nCMP             R5, #0                                                 ; +0x58, 0x80617c\nSTREQ           R0, [R6]                                               ; +0x5c, 0x806180\nMOVEQ           R0, #1                                                 ; +0x60, 0x806184\nBEQ             loc_8061EC                                             ; +0x64, 0x806188\nLDR             R3, [R6]                                               ; +0x68, 0x80618c\nCMP             R0, R3                                                 ; +0x6c, 0x806190\nBHI             loc_8061F4                                             ; +0x70, 0x806194\nLDR             R3, [R4]                                               ; +0x74, 0x806198\nLDR             R12, [R3,#0x38]                                        ; +0x78, 0x80619c\nB               loc_8061A8                                             ; +0x7c, 0x8061a0\nMOV             R12, R0                                                ; +0x80, 0x8061a4\nMOV             R0, R4                                                 ; +0x84, 0x8061a8\nMOV             R1, R5                                                 ; +0x88, 0x8061ac\nMOV             R2, R6                                                 ; +0x8c, 0x8061b0\nMOV             R3, R7                                                 ; +0x90, 0x8061b4\nSTR             R8, [SP,#8+arg_0]                                      ; +0x94, 0x8061b8\nADD             SP, SP, #8                                             ; +0x98, 0x8061bc\nPOP             {R4-R8,LR}                                             ; +0x9c, 0x8061c0\nBX              R12                                                    ; +0xa0, 0x8061c4\nMOV             R3, #0x7F                                              ; +0xa4, 0x8061c8\nSTR             R3, [SP,#8+var_8]                                      ; +0xa8, 0x8061cc\nLDR             R3, =(aCryptoEvpPmeth - 0x8061E8); \"crypto/evp/pmeth_fn.c\" ; +0xac, 0x8061d0\nMOV             R0, #6                                                 ; +0xb0, 0x8061d4\nMOV             R1, #0x90                                              ; +0xb4, 0x8061d8\nMOV             R2, #0x97                                              ; +0xb8, 0x8061dc\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0xbc, 0x8061e0\nBL              ERR_put_error                                          ; +0xc0, 0x8061e4\nMOV             R0, #0xFFFFFFFF                                        ; +0xc4, 0x8061e8\nADD             SP, SP, #8                                             ; +0xc8, 0x8061ec\nPOP             {R4-R8,PC}                                             ; +0xcc, 0x8061f0\nMOV             R3, #0x82                                              ; +0xd0, 0x8061f4\nSTR             R3, [SP,#8+var_8]                                      ; +0xd4, 0x8061f8\nLDR             R3, =(aCryptoEvpPmeth - 0x806214); \"crypto/evp/pmeth_fn.c\" ; +0xd8, 0x8061fc\nMOV             R0, #6                                                 ; +0xdc, 0x806200\nMOV             R1, #0x90                                              ; +0xe0, 0x806204\nMOV             R2, #0x9B                                              ; +0xe4, 0x806208\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0xe8, 0x80620c\nBL              ERR_put_error                                          ; +0xec, 0x806210\nMOV             R0, #0                                                 ; +0xf0, 0x806214\nB               loc_8061EC                                             ; +0xf4, 0x806218\nMOV             R3, #0x7B ; '{'                                        ; +0xf8, 0x80621c\nSTR             R3, [SP,#8+var_8]                                      ; +0xfc, 0x806220\nLDR             R3, =(aCryptoEvpPmeth - 0x80623C); \"crypto/evp/pmeth_fn.c\" ; +0x100, 0x806224\nMOV             R0, #6                                                 ; +0x104, 0x806228\nMOV             R1, #0x90                                              ; +0x108, 0x80622c\nMOV             R2, #0x96                                              ; +0x10c, 0x806230\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0x110, 0x806234\nBL              ERR_put_error                                          ; +0x114, 0x806238\nMOV             R0, #0xFFFFFFFE                                        ; +0x118, 0x80623c\nB               loc_8061EC                                             ; +0x11c, 0x806240", "xrefs": ["<???> @ 0x63bcc"], "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"}