{"type": "func", "start": 8302616, "end": 8302744, "name": "EC_POINT_invert", "pseudocode": "// \n// EC_POINT_invert from 0x7eb018 to 0x7eb098 (128 bytes)\n// \n// 3 xrefs:\n// > ec_wNAF_mul @ 0x7ec9cc\n// > ec_wNAF_mul @ 0x7eca28\n// > <???> @ 0x61aec\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_invert(int a1, _DWORD *a2)\n{\n  int (*v2)(void); // r12\n\n  v2 = *(int (**)(void))(*(_DWORD *)a1 + 100);\n  if ( !v2 )\n  {\n    ERR_put_error(16, 210, 66, \"crypto/ec/ec_lib.c\", 808);\n    return 0;\n  }\n  if ( *(_DWORD *)a1 != *a2 )\n  {\n    ERR_put_error(16, 210, 101, \"crypto/ec/ec_lib.c\", 812);\n    return 0;\n  }\n  return v2();\n}", "assembly": "; \n; EC_POINT_invert from 0x7eb018 to 0x7eb098 (128 bytes)\n; \n; 3 xrefs:\n; > ec_wNAF_mul @ 0x7ec9cc\n; > ec_wNAF_mul @ 0x7eca28\n; > <???> @ 0x61aec\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, 0x7eb018\nPUSH            {LR}                                                   ; +0x4, 0x7eb01c\nLDR             R12, [R3,#0x64]                                        ; +0x8, 0x7eb020\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eb024\nCMP             R12, #0                                                ; +0x10, 0x7eb028\nBEQ             loc_7EB074                                             ; +0x14, 0x7eb02c\nLDR             LR, [R1]                                               ; +0x18, 0x7eb030\nCMP             R3, LR                                                 ; +0x1c, 0x7eb034\nBEQ             loc_7EB068                                             ; +0x20, 0x7eb038\nMOV             R3, #0x32C                                             ; +0x24, 0x7eb03c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x7eb040\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB05C); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x7eb044\nMOV             R0, #0x10                                              ; +0x30, 0x7eb048\nMOV             R1, #0xD2                                              ; +0x34, 0x7eb04c\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x7eb050\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x7eb054\nBL              ERR_put_error                                          ; +0x40, 0x7eb058\nMOV             R0, #0                                                 ; +0x44, 0x7eb05c\nADD             SP, SP, #0xC                                           ; +0x48, 0x7eb060\nPOP             {PC}                                                   ; +0x4c, 0x7eb064\nADD             SP, SP, #0xC                                           ; +0x50, 0x7eb068\nPOP             {LR}                                                   ; +0x54, 0x7eb06c\nBX              R12                                                    ; +0x58, 0x7eb070\nMOV             R3, #0x328                                             ; +0x5c, 0x7eb074\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x7eb078\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB094); \"crypto/ec/ec_lib.c\" ; +0x64, 0x7eb07c\nMOV             R0, #0x10                                              ; +0x68, 0x7eb080\nMOV             R1, #0xD2                                              ; +0x6c, 0x7eb084\nMOV             R2, #0x42 ; 'B'                                        ; +0x70, 0x7eb088\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x74, 0x7eb08c\nBL              ERR_put_error                                          ; +0x78, 0x7eb090\nB               loc_7EB05C                                             ; +0x7c, 0x7eb094", "xrefs": ["ec_wNAF_mul @ 0x7ec9cc", "ec_wNAF_mul @ 0x7eca28", "<???> @ 0x61aec"], "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"}