{"type": "func", "start": 8302896, "end": 8303024, "name": "EC_POINT_is_on_curve", "pseudocode": "// \n// EC_POINT_is_on_curve from 0x7eb130 to 0x7eb1b0 (128 bytes)\n// \n// 4 xrefs:\n// > ec_key_simple_check_key @ 0x7e90e0\n// > EC_POINT_set_affine_coordinates_GFp @ 0x7eb238\n// > EC_POINT_set_affine_coordinates_GF2m @ 0x7eb328\n// > <???> @ 0x6173c\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_POINT_is_on_curve(int a1, _DWORD *a2)\n{\n  int (*v2)(void); // r12\n\n  v2 = *(int (**)(void))(*(_DWORD *)a1 + 108);\n  if ( !v2 )\n  {\n    ERR_put_error(16, 119, 66, \"crypto/ec/ec_lib.c\", 843);\n    return 0;\n  }\n  if ( *(_DWORD *)a1 != *a2 )\n  {\n    ERR_put_error(16, 119, 101, \"crypto/ec/ec_lib.c\", 847);\n    return 0;\n  }\n  return v2();\n}", "assembly": "; \n; EC_POINT_is_on_curve from 0x7eb130 to 0x7eb1b0 (128 bytes)\n; \n; 4 xrefs:\n; > ec_key_simple_check_key @ 0x7e90e0\n; > EC_POINT_set_affine_coordinates_GFp @ 0x7eb238\n; > EC_POINT_set_affine_coordinates_GF2m @ 0x7eb328\n; > <???> @ 0x6173c\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\nLDR             R3, [R0]                                               ; +0x0, 0x7eb130\nPUSH            {LR}                                                   ; +0x4, 0x7eb134\nLDR             R12, [R3,#0x6C]                                        ; +0x8, 0x7eb138\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eb13c\nCMP             R12, #0                                                ; +0x10, 0x7eb140\nBEQ             loc_7EB18C                                             ; +0x14, 0x7eb144\nLDR             LR, [R1]                                               ; +0x18, 0x7eb148\nCMP             R3, LR                                                 ; +0x1c, 0x7eb14c\nBEQ             loc_7EB180                                             ; +0x20, 0x7eb150\nLDR             R3, =0x34F                                             ; +0x24, 0x7eb154\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x7eb158\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB174); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x7eb15c\nMOV             R0, #0x10                                              ; +0x30, 0x7eb160\nMOV             R1, #0x77 ; 'w'                                        ; +0x34, 0x7eb164\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x7eb168\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x7eb16c\nBL              ERR_put_error                                          ; +0x40, 0x7eb170\nMOV             R0, #0                                                 ; +0x44, 0x7eb174\nADD             SP, SP, #0xC                                           ; +0x48, 0x7eb178\nPOP             {PC}                                                   ; +0x4c, 0x7eb17c\nADD             SP, SP, #0xC                                           ; +0x50, 0x7eb180\nPOP             {LR}                                                   ; +0x54, 0x7eb184\nBX              R12                                                    ; +0x58, 0x7eb188\nLDR             R3, =0x34B                                             ; +0x5c, 0x7eb18c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x7eb190\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB1AC); \"crypto/ec/ec_lib.c\" ; +0x64, 0x7eb194\nMOV             R0, #0x10                                              ; +0x68, 0x7eb198\nMOV             R1, #0x77 ; 'w'                                        ; +0x6c, 0x7eb19c\nMOV             R2, #0x42 ; 'B'                                        ; +0x70, 0x7eb1a0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x74, 0x7eb1a4\nBL              ERR_put_error                                          ; +0x78, 0x7eb1a8\nB               loc_7EB174                                             ; +0x7c, 0x7eb1ac", "xrefs": ["ec_key_simple_check_key @ 0x7e90e0", "EC_POINT_set_affine_coordinates_GFp @ 0x7eb238", "EC_POINT_set_affine_coordinates_GF2m @ 0x7eb328", "<???> @ 0x6173c"], "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"}