{"type": "func", "start": 8303516, "end": 8303660, "name": "EC_POINT_cmp", "pseudocode": "// \n// EC_POINT_cmp from 0x7eb39c to 0x7eb42c (144 bytes)\n// \n// 6 xrefs:\n// > sub_7E4958 @ 0x7e49b0\n// > ec_key_simple_check_key @ 0x7e92ac\n// > EC_GROUP_cmp @ 0x7eb604\n// > ec_wNAF_mul @ 0x7ec0ec\n// > sub_7F0594 @ 0x7f07a4\n// > <???> @ 0x611ac\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_cmp(int *a1, _DWORD *a2, _DWORD *a3)\n{\n  int v3; // r12\n\n  v3 = *a1;\n  if ( *(_DWORD *)(*a1 + 112) )\n  {\n    if ( v3 == *a2 && v3 == *a3 )\n      return (*(int (__fastcall **)(int *))(*a1 + 112))(a1);\n    ERR_put_error(16, 113, 101, \"crypto/ec/ec_lib.c\", 861);\n  }\n  else\n  {\n    ERR_put_error(16, 113, 66, \"crypto/ec/ec_lib.c\", 857);\n  }\n  return -1;\n}", "assembly": "; \n; EC_POINT_cmp from 0x7eb39c to 0x7eb42c (144 bytes)\n; \n; 6 xrefs:\n; > sub_7E4958 @ 0x7e49b0\n; > ec_key_simple_check_key @ 0x7e92ac\n; > EC_GROUP_cmp @ 0x7eb604\n; > ec_wNAF_mul @ 0x7ec0ec\n; > sub_7F0594 @ 0x7f07a4\n; > <???> @ 0x611ac\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             R12, [R0]                                              ; +0x0, 0x7eb39c\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7eb3a0\nLDR             LR, [R12,#0x70]                                        ; +0x8, 0x7eb3a4\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eb3a8\nCMP             LR, #0                                                 ; +0x10, 0x7eb3ac\nBEQ             loc_7EB408                                             ; +0x14, 0x7eb3b0\nLDR             R4, [R1]                                               ; +0x18, 0x7eb3b4\nCMP             R12, R4                                                ; +0x1c, 0x7eb3b8\nBNE             loc_7EB3DC                                             ; +0x20, 0x7eb3bc\nLDR             R4, [R2]                                               ; +0x24, 0x7eb3c0\nCMP             R12, R4                                                ; +0x28, 0x7eb3c4\nBNE             loc_7EB3DC                                             ; +0x2c, 0x7eb3c8\nMOV             R12, LR                                                ; +0x30, 0x7eb3cc\nADD             SP, SP, #0xC                                           ; +0x34, 0x7eb3d0\nPOP             {R4,R5,LR}                                             ; +0x38, 0x7eb3d4\nBX              R12                                                    ; +0x3c, 0x7eb3d8\nLDR             R3, =0x35D                                             ; +0x40, 0x7eb3dc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x44, 0x7eb3e0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB3FC); \"crypto/ec/ec_lib.c\" ; +0x48, 0x7eb3e4\nMOV             R0, #0x10                                              ; +0x4c, 0x7eb3e8\nMOV             R1, #0x71 ; 'q'                                        ; +0x50, 0x7eb3ec\nMOV             R2, #0x65 ; 'e'                                        ; +0x54, 0x7eb3f0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x58, 0x7eb3f4\nBL              ERR_put_error                                          ; +0x5c, 0x7eb3f8\nMOV             R0, #0xFFFFFFFF                                        ; +0x60, 0x7eb3fc\nADD             SP, SP, #0xC                                           ; +0x64, 0x7eb400\nPOP             {R4,R5,PC}                                             ; +0x68, 0x7eb404\nLDR             R3, =0x359                                             ; +0x6c, 0x7eb408\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x70, 0x7eb40c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB428); \"crypto/ec/ec_lib.c\" ; +0x74, 0x7eb410\nMOV             R0, #0x10                                              ; +0x78, 0x7eb414\nMOV             R1, #0x71 ; 'q'                                        ; +0x7c, 0x7eb418\nMOV             R2, #0x42 ; 'B'                                        ; +0x80, 0x7eb41c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x84, 0x7eb420\nBL              ERR_put_error                                          ; +0x88, 0x7eb424\nB               loc_7EB3FC                                             ; +0x8c, 0x7eb428", "xrefs": ["sub_7E4958 @ 0x7e49b0", "ec_key_simple_check_key @ 0x7e92ac", "EC_GROUP_cmp @ 0x7eb604", "ec_wNAF_mul @ 0x7ec0ec", "sub_7F0594 @ 0x7f07a4", "<???> @ 0x611ac"], "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"}