{"type": "func", "start": 14228712, "end": 14228844, "name": "EC_POINT_get_affine_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_get_affine_coordinates_GF2m from 0xd91ce8 to 0xd91d6c (132 bytes)\n// \n// 12 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0xd90530\n// > ecdh_simple_compute_key @ 0xd942d8\n// > ossl_ecdsa_sign_setup @ 0xd9486c\n// > ossl_ecdsa_sign_sig @ 0xd94fdc\n// > ossl_ecdsa_verify_sig @ 0xd958a8\n// > ec_GF2m_simple_point2oct @ 0xe32a08\n// > ec_GF2m_simple_cmp @ 0xe338f8\n// > ec_GF2m_simple_cmp @ 0xe339b0\n// > ec_GF2m_simple_make_affine @ 0xe33aa8\n// > ec_GF2m_simple_add @ 0xe33dac\n// > ec_GF2m_simple_add @ 0xe34038\n// > <???> @ 0x5c0e8\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\n__int64 __fastcall EC_POINT_get_affine_coordinates_GF2m(__int64 a1, _QWORD *a2)\n{\n  __int64 (*v2)(void); // x19\n\n  v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 144LL);\n  if ( v2 )\n  {\n    if ( *(_QWORD *)a1 == *a2 )\n    {\n      return v2();\n    }\n    else\n    {\n      ERR_put_error(16, 183, 101, \"crypto/ec/ec_lib.c\", 769);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 183, 66, \"crypto/ec/ec_lib.c\", 764);\n    return 0;\n  }\n}", "assembly": "; \n; EC_POINT_get_affine_coordinates_GF2m from 0xd91ce8 to 0xd91d6c (132 bytes)\n; \n; 12 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0xd90530\n; > ecdh_simple_compute_key @ 0xd942d8\n; > ossl_ecdsa_sign_setup @ 0xd9486c\n; > ossl_ecdsa_sign_sig @ 0xd94fdc\n; > ossl_ecdsa_verify_sig @ 0xd958a8\n; > ec_GF2m_simple_point2oct @ 0xe32a08\n; > ec_GF2m_simple_cmp @ 0xe338f8\n; > ec_GF2m_simple_cmp @ 0xe339b0\n; > ec_GF2m_simple_make_affine @ 0xe33aa8\n; > ec_GF2m_simple_add @ 0xe33dac\n; > ec_GF2m_simple_add @ 0xe34038\n; > <???> @ 0x5c0e8\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd91ce8\nMOV             X29, SP                                                ; +0x4, 0xd91cec\nLDR             X5, [X0]                                               ; +0x8, 0xd91cf0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xd91cf4\nLDR             X19, [X5,#0x90]                                        ; +0x10, 0xd91cf8\nCBZ             X19, loc_D91D48                                        ; +0x14, 0xd91cfc\nLDR             X6, [X1]                                               ; +0x18, 0xd91d00\nCMP             X5, X6                                                 ; +0x1c, 0xd91d04\nB.EQ            loc_D91D38                                             ; +0x20, 0xd91d08\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x24, 0xd91d0c\nMOV             W0, #0x10                                              ; +0x28, 0xd91d10\nMOV             W1, #0xB7                                              ; +0x2c, 0xd91d14\nMOV             W2, #0x65 ; 'e'                                        ; +0x30, 0xd91d18\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x34, 0xd91d1c\nMOV             W4, #0x301                                             ; +0x38, 0xd91d20\nBL              ERR_put_error                                          ; +0x3c, 0xd91d24\nMOV             W0, #0                                                 ; +0x40, 0xd91d28\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x44, 0xd91d2c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x48, 0xd91d30\nRET                                                                    ; +0x4c, 0xd91d34\nBLR             X19                                                    ; +0x50, 0xd91d38\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0xd91d3c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0xd91d40\nRET                                                                    ; +0x5c, 0xd91d44\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x60, 0xd91d48\nMOV             W0, #0x10                                              ; +0x64, 0xd91d4c\nMOV             W1, #0xB7                                              ; +0x68, 0xd91d50\nMOV             W2, #0x42 ; 'B'                                        ; +0x6c, 0xd91d54\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x70, 0xd91d58\nMOV             W4, #0x2FC                                             ; +0x74, 0xd91d5c\nBL              ERR_put_error                                          ; +0x78, 0xd91d60\nMOV             W0, W19                                                ; +0x7c, 0xd91d64\nB               loc_D91D2C                                             ; +0x80, 0xd91d68", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0xd90530", "ecdh_simple_compute_key @ 0xd942d8", "ossl_ecdsa_sign_setup @ 0xd9486c", "ossl_ecdsa_sign_sig @ 0xd94fdc", "ossl_ecdsa_verify_sig @ 0xd958a8", "ec_GF2m_simple_point2oct @ 0xe32a08", "ec_GF2m_simple_cmp @ 0xe338f8", "ec_GF2m_simple_cmp @ 0xe339b0", "ec_GF2m_simple_make_affine @ 0xe33aa8", "ec_GF2m_simple_add @ 0xe33dac", "ec_GF2m_simple_add @ 0xe34038", "<???> @ 0x5c0e8"], "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"}