{"type": "func", "start": 10485040, "end": 10485168, "name": "EC_POINT_is_on_curve", "pseudocode": "// \n// EC_POINT_is_on_curve from 0x9ffd30 to 0x9ffdb0 (128 bytes)\n// \n// 4 xrefs:\n// > ec_key_simple_check_key @ 0x9fdce0\n// > EC_POINT_set_affine_coordinates_GFp @ 0x9ffe38\n// > EC_POINT_set_affine_coordinates_GF2m @ 0x9fff28\n// > <???> @ 0x7b1bc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:37 +0000\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 0x9ffd30 to 0x9ffdb0 (128 bytes)\n; \n; 4 xrefs:\n; > ec_key_simple_check_key @ 0x9fdce0\n; > EC_POINT_set_affine_coordinates_GFp @ 0x9ffe38\n; > EC_POINT_set_affine_coordinates_GF2m @ 0x9fff28\n; > <???> @ 0x7b1bc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:37 +0000\n; \nLDR             R3, [R0]                                               ; +0x0, 0x9ffd30\nPUSH            {LR}                                                   ; +0x4, 0x9ffd34\nLDR             R12, [R3,#0x6C]                                        ; +0x8, 0x9ffd38\nSUB             SP, SP, #0xC                                           ; +0xc, 0x9ffd3c\nCMP             R12, #0                                                ; +0x10, 0x9ffd40\nBEQ             loc_9FFD8C                                             ; +0x14, 0x9ffd44\nLDR             LR, [R1]                                               ; +0x18, 0x9ffd48\nCMP             R3, LR                                                 ; +0x1c, 0x9ffd4c\nBEQ             loc_9FFD80                                             ; +0x20, 0x9ffd50\nLDR             R3, =0x34F                                             ; +0x24, 0x9ffd54\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x9ffd58\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFD74); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x9ffd5c\nMOV             R0, #0x10                                              ; +0x30, 0x9ffd60\nMOV             R1, #0x77 ; 'w'                                        ; +0x34, 0x9ffd64\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x9ffd68\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x9ffd6c\nBL              ERR_put_error                                          ; +0x40, 0x9ffd70\nMOV             R0, #0                                                 ; +0x44, 0x9ffd74\nADD             SP, SP, #0xC                                           ; +0x48, 0x9ffd78\nPOP             {PC}                                                   ; +0x4c, 0x9ffd7c\nADD             SP, SP, #0xC                                           ; +0x50, 0x9ffd80\nPOP             {LR}                                                   ; +0x54, 0x9ffd84\nBX              R12                                                    ; +0x58, 0x9ffd88\nLDR             R3, =0x34B                                             ; +0x5c, 0x9ffd8c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x9ffd90\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFDAC); \"crypto/ec/ec_lib.c\" ; +0x64, 0x9ffd94\nMOV             R0, #0x10                                              ; +0x68, 0x9ffd98\nMOV             R1, #0x77 ; 'w'                                        ; +0x6c, 0x9ffd9c\nMOV             R2, #0x42 ; 'B'                                        ; +0x70, 0x9ffda0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x74, 0x9ffda4\nBL              ERR_put_error                                          ; +0x78, 0x9ffda8\nB               loc_9FFD74                                             ; +0x7c, 0x9ffdac", "xrefs": ["ec_key_simple_check_key @ 0x9fdce0", "EC_POINT_set_affine_coordinates_GFp @ 0x9ffe38", "EC_POINT_set_affine_coordinates_GF2m @ 0x9fff28", "<???> @ 0x7b1bc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}