{"type": "func", "start": 8303280, "end": 8303496, "name": "EC_POINT_set_affine_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_set_affine_coordinates_GF2m from 0x7eb2b0 to 0x7eb388 (216 bytes)\n// \n// 5 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e9568\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x888f0c\n// > ec_GF2m_simple_oct2point @ 0x8896b8\n// > ec_GF2m_simple_add @ 0x88a610\n// > <???> @ 0x6178c\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_set_affine_coordinates_GF2m(int a1, _DWORD *a2)\n{\n  int (__fastcall *v2)(int); // r4\n  int result; // r0\n\n  v2 = *(int (__fastcall **)(int))(*(_DWORD *)a1 + 72);\n  if ( v2 )\n  {\n    if ( *(_DWORD *)a1 == *a2 )\n    {\n      result = v2(a1);\n      if ( result )\n      {\n        if ( EC_POINT_is_on_curve(a1, a2) <= 0 )\n        {\n          ERR_put_error(16, 185, 107, \"crypto/ec/ec_lib.c\", 733);\n          return 0;\n        }\n        else\n        {\n          return 1;\n        }\n      }\n    }\n    else\n    {\n      ERR_put_error(16, 185, 101, \"crypto/ec/ec_lib.c\", 725);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 185, 66, \"crypto/ec/ec_lib.c\", 720);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EC_POINT_set_affine_coordinates_GF2m from 0x7eb2b0 to 0x7eb388 (216 bytes)\n; \n; 5 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e9568\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x888f0c\n; > ec_GF2m_simple_oct2point @ 0x8896b8\n; > ec_GF2m_simple_add @ 0x88a610\n; > <???> @ 0x6178c\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, 0x7eb2b0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x7eb2b4\nLDR             R4, [R12,#0x48]                                        ; +0x8, 0x7eb2b8\nSUB             SP, SP, #8                                             ; +0xc, 0x7eb2bc\nCMP             R4, #0                                                 ; +0x10, 0x7eb2c0\nMOV             R5, R0                                                 ; +0x14, 0x7eb2c4\nBEQ             loc_7EB360                                             ; +0x18, 0x7eb2c8\nLDR             LR, [R1]                                               ; +0x1c, 0x7eb2cc\nMOV             R6, R1                                                 ; +0x20, 0x7eb2d0\nCMP             R12, LR                                                ; +0x24, 0x7eb2d4\nBEQ             loc_7EB308                                             ; +0x28, 0x7eb2d8\nLDR             R3, =0x2D5                                             ; +0x2c, 0x7eb2dc\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x7eb2e0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB2FC); \"crypto/ec/ec_lib.c\" ; +0x34, 0x7eb2e4\nMOV             R0, #0x10                                              ; +0x38, 0x7eb2e8\nMOV             R1, #0xB9                                              ; +0x3c, 0x7eb2ec\nMOV             R2, #0x65 ; 'e'                                        ; +0x40, 0x7eb2f0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x7eb2f4\nBL              ERR_put_error                                          ; +0x48, 0x7eb2f8\nMOV             R0, #0                                                 ; +0x4c, 0x7eb2fc\nADD             SP, SP, #8                                             ; +0x50, 0x7eb300\nPOP             {R4-R6,PC}                                             ; +0x54, 0x7eb304\nLDR             R12, [SP,#8+arg_0]                                     ; +0x58, 0x7eb308\nSTR             R12, [SP,#8+var_8]                                     ; +0x5c, 0x7eb30c\nBLX             R4                                                     ; +0x60, 0x7eb310\nCMP             R0, #0                                                 ; +0x64, 0x7eb314\nBEQ             loc_7EB300                                             ; +0x68, 0x7eb318\nMOV             R0, R5                                                 ; +0x6c, 0x7eb31c\nMOV             R1, R6                                                 ; +0x70, 0x7eb320\nLDR             R2, [SP,#8+arg_0]                                      ; +0x74, 0x7eb324\nBL              EC_POINT_is_on_curve                                   ; +0x78, 0x7eb328\nCMP             R0, #0                                                 ; +0x7c, 0x7eb32c\nMOVGT           R0, #1                                                 ; +0x80, 0x7eb330\nBGT             loc_7EB300                                             ; +0x84, 0x7eb334\nLDR             R3, =0x2DD                                             ; +0x88, 0x7eb338\nSTR             R3, [SP,#8+var_8]                                      ; +0x8c, 0x7eb33c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB358); \"crypto/ec/ec_lib.c\" ; +0x90, 0x7eb340\nMOV             R0, #0x10                                              ; +0x94, 0x7eb344\nMOV             R1, #0xB9                                              ; +0x98, 0x7eb348\nMOV             R2, #0x6B ; 'k'                                        ; +0x9c, 0x7eb34c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xa0, 0x7eb350\nBL              ERR_put_error                                          ; +0xa4, 0x7eb354\nMOV             R0, #0                                                 ; +0xa8, 0x7eb358\nB               loc_7EB300                                             ; +0xac, 0x7eb35c\nMOV             R3, #0x2D0                                             ; +0xb0, 0x7eb360\nSTR             R3, [SP,#8+var_8]                                      ; +0xb4, 0x7eb364\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB380); \"crypto/ec/ec_lib.c\" ; +0xb8, 0x7eb368\nMOV             R0, #0x10                                              ; +0xbc, 0x7eb36c\nMOV             R1, #0xB9                                              ; +0xc0, 0x7eb370\nMOV             R2, #0x42 ; 'B'                                        ; +0xc4, 0x7eb374\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xc8, 0x7eb378\nBL              ERR_put_error                                          ; +0xcc, 0x7eb37c\nMOV             R0, R4                                                 ; +0xd0, 0x7eb380\nB               loc_7EB300                                             ; +0xd4, 0x7eb384", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x7e9568", "ec_GF2m_simple_set_compressed_coordinates @ 0x888f0c", "ec_GF2m_simple_oct2point @ 0x8896b8", "ec_GF2m_simple_add @ 0x88a610", "<???> @ 0x6178c"], "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"}