{"type": "func", "start": 10485424, "end": 10485640, "name": "EC_POINT_set_affine_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_set_affine_coordinates_GF2m from 0x9ffeb0 to 0x9fff88 (216 bytes)\n// \n// 5 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe168\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9db0c\n// > ec_GF2m_simple_oct2point @ 0xa9e2b8\n// > ec_GF2m_simple_add @ 0xa9f210\n// > <???> @ 0x7b20c\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_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 0x9ffeb0 to 0x9fff88 (216 bytes)\n; \n; 5 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x9fe168\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xa9db0c\n; > ec_GF2m_simple_oct2point @ 0xa9e2b8\n; > ec_GF2m_simple_add @ 0xa9f210\n; > <???> @ 0x7b20c\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             R12, [R0]                                              ; +0x0, 0x9ffeb0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x9ffeb4\nLDR             R4, [R12,#0x48]                                        ; +0x8, 0x9ffeb8\nSUB             SP, SP, #8                                             ; +0xc, 0x9ffebc\nCMP             R4, #0                                                 ; +0x10, 0x9ffec0\nMOV             R5, R0                                                 ; +0x14, 0x9ffec4\nBEQ             loc_9FFF60                                             ; +0x18, 0x9ffec8\nLDR             LR, [R1]                                               ; +0x1c, 0x9ffecc\nMOV             R6, R1                                                 ; +0x20, 0x9ffed0\nCMP             R12, LR                                                ; +0x24, 0x9ffed4\nBEQ             loc_9FFF08                                             ; +0x28, 0x9ffed8\nLDR             R3, =0x2D5                                             ; +0x2c, 0x9ffedc\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x9ffee0\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFEFC); \"crypto/ec/ec_lib.c\" ; +0x34, 0x9ffee4\nMOV             R0, #0x10                                              ; +0x38, 0x9ffee8\nMOV             R1, #0xB9                                              ; +0x3c, 0x9ffeec\nMOV             R2, #0x65 ; 'e'                                        ; +0x40, 0x9ffef0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x9ffef4\nBL              ERR_put_error                                          ; +0x48, 0x9ffef8\nMOV             R0, #0                                                 ; +0x4c, 0x9ffefc\nADD             SP, SP, #8                                             ; +0x50, 0x9fff00\nPOP             {R4-R6,PC}                                             ; +0x54, 0x9fff04\nLDR             R12, [SP,#8+arg_0]                                     ; +0x58, 0x9fff08\nSTR             R12, [SP,#8+var_8]                                     ; +0x5c, 0x9fff0c\nBLX             R4                                                     ; +0x60, 0x9fff10\nCMP             R0, #0                                                 ; +0x64, 0x9fff14\nBEQ             loc_9FFF00                                             ; +0x68, 0x9fff18\nMOV             R0, R5                                                 ; +0x6c, 0x9fff1c\nMOV             R1, R6                                                 ; +0x70, 0x9fff20\nLDR             R2, [SP,#8+arg_0]                                      ; +0x74, 0x9fff24\nBL              EC_POINT_is_on_curve                                   ; +0x78, 0x9fff28\nCMP             R0, #0                                                 ; +0x7c, 0x9fff2c\nMOVGT           R0, #1                                                 ; +0x80, 0x9fff30\nBGT             loc_9FFF00                                             ; +0x84, 0x9fff34\nLDR             R3, =0x2DD                                             ; +0x88, 0x9fff38\nSTR             R3, [SP,#8+var_8]                                      ; +0x8c, 0x9fff3c\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFF58); \"crypto/ec/ec_lib.c\" ; +0x90, 0x9fff40\nMOV             R0, #0x10                                              ; +0x94, 0x9fff44\nMOV             R1, #0xB9                                              ; +0x98, 0x9fff48\nMOV             R2, #0x6B ; 'k'                                        ; +0x9c, 0x9fff4c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xa0, 0x9fff50\nBL              ERR_put_error                                          ; +0xa4, 0x9fff54\nMOV             R0, #0                                                 ; +0xa8, 0x9fff58\nB               loc_9FFF00                                             ; +0xac, 0x9fff5c\nMOV             R3, #0x2D0                                             ; +0xb0, 0x9fff60\nSTR             R3, [SP,#8+var_8]                                      ; +0xb4, 0x9fff64\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFF80); \"crypto/ec/ec_lib.c\" ; +0xb8, 0x9fff68\nMOV             R0, #0x10                                              ; +0xbc, 0x9fff6c\nMOV             R1, #0xB9                                              ; +0xc0, 0x9fff70\nMOV             R2, #0x42 ; 'B'                                        ; +0xc4, 0x9fff74\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xc8, 0x9fff78\nBL              ERR_put_error                                          ; +0xcc, 0x9fff7c\nMOV             R0, R4                                                 ; +0xd0, 0x9fff80\nB               loc_9FFF00                                             ; +0xd4, 0x9fff84", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x9fe168", "ec_GF2m_simple_set_compressed_coordinates @ 0xa9db0c", "ec_GF2m_simple_oct2point @ 0xa9e2b8", "ec_GF2m_simple_add @ 0xa9f210", "<???> @ 0x7b20c"], "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"}