{"type": "func", "start": 8294296, "end": 8294444, "name": "EC_KEY_check_key", "pseudocode": "// \n// EC_KEY_check_key from 0x7e8f98 to 0x7e902c (148 bytes)\n// \n// 2 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e964c\n// > <???> @ 0x6170c\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 EC_KEY_check_key(int a1)\n{\n  int v1; // r2\n  int (*v2)(void); // r3\n\n  if ( a1 && (v1 = *(_DWORD *)(a1 + 12)) != 0 && *(_DWORD *)(a1 + 16) )\n  {\n    v2 = *(int (**)(void))(*(_DWORD *)v1 + 176);\n    if ( v2 )\n      return v2();\n    ERR_put_error(16, 177, 66, \"crypto/ec/ec_key.c\", 263);\n  }\n  else\n  {\n    ERR_put_error(16, 177, 67, \"crypto/ec/ec_key.c\", 258);\n  }\n  return 0;\n}", "assembly": "; \n; EC_KEY_check_key from 0x7e8f98 to 0x7e902c (148 bytes)\n; \n; 2 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e964c\n; > <???> @ 0x6170c\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\nSUBS            R3, R0, #0                                             ; +0x0, 0x7e8f98\nPUSH            {LR}                                                   ; +0x4, 0x7e8f9c\nSUB             SP, SP, #0xC                                           ; +0x8, 0x7e8fa0\nBEQ             loc_7E8FDC                                             ; +0xc, 0x7e8fa4\nLDR             R2, [R3,#0xC]                                          ; +0x10, 0x7e8fa8\nCMP             R2, #0                                                 ; +0x14, 0x7e8fac\nBEQ             loc_7E8FDC                                             ; +0x18, 0x7e8fb0\nLDR             R3, [R3,#0x10]                                         ; +0x1c, 0x7e8fb4\nCMP             R3, #0                                                 ; +0x20, 0x7e8fb8\nBEQ             loc_7E8FDC                                             ; +0x24, 0x7e8fbc\nLDR             R3, [R2]                                               ; +0x28, 0x7e8fc0\nLDR             R3, [R3,#0xB0]                                         ; +0x2c, 0x7e8fc4\nCMP             R3, #0                                                 ; +0x30, 0x7e8fc8\nBEQ             loc_7E9008                                             ; +0x34, 0x7e8fcc\nADD             SP, SP, #0xC                                           ; +0x38, 0x7e8fd0\nPOP             {LR}                                                   ; +0x3c, 0x7e8fd4\nBX              R3                                                     ; +0x40, 0x7e8fd8\nLDR             R3, =0x102                                             ; +0x44, 0x7e8fdc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x48, 0x7e8fe0\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E8FFC); \"crypto/ec/ec_key.c\" ; +0x4c, 0x7e8fe4\nMOV             R0, #0x10                                              ; +0x50, 0x7e8fe8\nMOV             R1, #0xB1                                              ; +0x54, 0x7e8fec\nMOV             R2, #0x43 ; 'C'                                        ; +0x58, 0x7e8ff0\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x5c, 0x7e8ff4\nBL              ERR_put_error                                          ; +0x60, 0x7e8ff8\nMOV             R0, #0                                                 ; +0x64, 0x7e8ffc\nADD             SP, SP, #0xC                                           ; +0x68, 0x7e9000\nPOP             {PC}                                                   ; +0x6c, 0x7e9004\nLDR             R3, =0x107                                             ; +0x70, 0x7e9008\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x74, 0x7e900c\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E9028); \"crypto/ec/ec_key.c\" ; +0x78, 0x7e9010\nMOV             R0, #0x10                                              ; +0x7c, 0x7e9014\nMOV             R1, #0xB1                                              ; +0x80, 0x7e9018\nMOV             R2, #0x42 ; 'B'                                        ; +0x84, 0x7e901c\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x88, 0x7e9020\nBL              ERR_put_error                                          ; +0x8c, 0x7e9024\nB               loc_7E8FFC                                             ; +0x90, 0x7e9028", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x7e964c", "<???> @ 0x6170c"], "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"}