{"type": "func", "start": 16842824, "end": 16842956, "name": "EC_POINT_get_affine_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_get_affine_coordinates_GF2m from 0x1010048 to 0x10100cc (132 bytes)\n// \n// 12 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x100e890\n// > ecdh_simple_compute_key @ 0x1012638\n// > ossl_ecdsa_sign_setup @ 0x1012bcc\n// > ossl_ecdsa_sign_sig @ 0x101333c\n// > ossl_ecdsa_verify_sig @ 0x1013c08\n// > ec_GF2m_simple_point2oct @ 0x10b0d08\n// > ec_GF2m_simple_cmp @ 0x10b1bf8\n// > ec_GF2m_simple_cmp @ 0x10b1cb0\n// > ec_GF2m_simple_make_affine @ 0x10b1da8\n// > ec_GF2m_simple_add @ 0x10b20ac\n// > ec_GF2m_simple_add @ 0x10b2338\n// > <???> @ 0x7e388\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:02 +0000\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 0x1010048 to 0x10100cc (132 bytes)\n; \n; 12 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x100e890\n; > ecdh_simple_compute_key @ 0x1012638\n; > ossl_ecdsa_sign_setup @ 0x1012bcc\n; > ossl_ecdsa_sign_sig @ 0x101333c\n; > ossl_ecdsa_verify_sig @ 0x1013c08\n; > ec_GF2m_simple_point2oct @ 0x10b0d08\n; > ec_GF2m_simple_cmp @ 0x10b1bf8\n; > ec_GF2m_simple_cmp @ 0x10b1cb0\n; > ec_GF2m_simple_make_affine @ 0x10b1da8\n; > ec_GF2m_simple_add @ 0x10b20ac\n; > ec_GF2m_simple_add @ 0x10b2338\n; > <???> @ 0x7e388\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:02 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x1010048\nMOV             X29, SP                                                ; +0x4, 0x101004c\nLDR             X5, [X0]                                               ; +0x8, 0x1010050\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x1010054\nLDR             X19, [X5,#0x90]                                        ; +0x10, 0x1010058\nCBZ             X19, loc_10100A8                                       ; +0x14, 0x101005c\nLDR             X6, [X1]                                               ; +0x18, 0x1010060\nCMP             X5, X6                                                 ; +0x1c, 0x1010064\nB.EQ            loc_1010098                                            ; +0x20, 0x1010068\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x24, 0x101006c\nMOV             W0, #0x10                                              ; +0x28, 0x1010070\nMOV             W1, #0xB7                                              ; +0x2c, 0x1010074\nMOV             W2, #0x65 ; 'e'                                        ; +0x30, 0x1010078\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x34, 0x101007c\nMOV             W4, #0x301                                             ; +0x38, 0x1010080\nBL              ERR_put_error                                          ; +0x3c, 0x1010084\nMOV             W0, #0                                                 ; +0x40, 0x1010088\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x44, 0x101008c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x48, 0x1010090\nRET                                                                    ; +0x4c, 0x1010094\nBLR             X19                                                    ; +0x50, 0x1010098\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0x101009c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x10100a0\nRET                                                                    ; +0x5c, 0x10100a4\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x60, 0x10100a8\nMOV             W0, #0x10                                              ; +0x64, 0x10100ac\nMOV             W1, #0xB7                                              ; +0x68, 0x10100b0\nMOV             W2, #0x42 ; 'B'                                        ; +0x6c, 0x10100b4\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x70, 0x10100b8\nMOV             W4, #0x2FC                                             ; +0x74, 0x10100bc\nBL              ERR_put_error                                          ; +0x78, 0x10100c0\nMOV             W0, W19                                                ; +0x7c, 0x10100c4\nB               loc_101008C                                            ; +0x80, 0x10100c8", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x100e890", "ecdh_simple_compute_key @ 0x1012638", "ossl_ecdsa_sign_setup @ 0x1012bcc", "ossl_ecdsa_sign_sig @ 0x101333c", "ossl_ecdsa_verify_sig @ 0x1013c08", "ec_GF2m_simple_point2oct @ 0x10b0d08", "ec_GF2m_simple_cmp @ 0x10b1bf8", "ec_GF2m_simple_cmp @ 0x10b1cb0", "ec_GF2m_simple_make_affine @ 0x10b1da8", "ec_GF2m_simple_add @ 0x10b20ac", "ec_GF2m_simple_add @ 0x10b2338", "<???> @ 0x7e388"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}