{"type": "func", "start": 14133656, "end": 14133708, "name": "BN_is_one", "pseudocode": "// \n// BN_is_one from 0xd7a998 to 0xd7a9cc (52 bytes)\n// \n// 31 xrefs:\n// > sub_D87990 @ 0xd87a74\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99820\n// > ec_GFp_simple_point_get_affine_coordinates @ 0xd99944\n// > ec_GFp_simple_point_get_affine_coordinates @ 0xd999b0\n// > sub_DD6258 @ 0xdd63e0\n// > sub_E162E0 @ 0xe16328\n// > BN_mod_exp_mont_consttime @ 0xe16a7c\n// > BN_mod_exp_mont @ 0xe17144\n// > BN_mod_exp_mont_word @ 0xe178a4\n// > BN_mod_exp_simple @ 0xe17b04\n// > int_bn_mod_inverse @ 0xe18908\n// > int_bn_mod_inverse @ 0xe18b1c\n// > int_bn_mod_inverse @ 0xe18ebc\n// > BN_kronecker @ 0xe196d8\n// > BN_mod_sqrt @ 0xe1adc4\n// > BN_mod_sqrt @ 0xe1ae1c\n// > BN_mod_sqrt @ 0xe1ae5c\n// > BN_mod_sqrt @ 0xe1b190\n// > BN_mod_sqrt @ 0xe1b304\n// > BN_mod_sqrt @ 0xe1b32c\n// > DH_check @ 0xe2987c\n// > DH_check @ 0xe29970\n// > DH_check_pub_key @ 0xe29af0\n// > dsa_builtin_paramgen @ 0xe2ab84\n// > dsa_builtin_paramgen2 @ 0xe2b25c\n// > sub_E34354 @ 0xe34408\n// > RSA_generate_key_ex @ 0xe6aab8\n// > RSA_generate_key_ex @ 0xe6ac24\n// > BN_is_prime_fasttest_ex @ 0xe771a4\n// > BN_is_prime_fasttest_ex @ 0xe771d0\n// > <???> @ 0x603f0\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 BN_is_one(__int64 a1)\n{\n  __int64 result; // x0\n\n  result = BN_abs_is_word(a1, 1);\n  if ( (_DWORD)result )\n    return *(_DWORD *)(a1 + 16) == 0;\n  return result;\n}", "assembly": "; \n; BN_is_one from 0xd7a998 to 0xd7a9cc (52 bytes)\n; \n; 31 xrefs:\n; > sub_D87990 @ 0xd87a74\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99820\n; > ec_GFp_simple_point_get_affine_coordinates @ 0xd99944\n; > ec_GFp_simple_point_get_affine_coordinates @ 0xd999b0\n; > sub_DD6258 @ 0xdd63e0\n; > sub_E162E0 @ 0xe16328\n; > BN_mod_exp_mont_consttime @ 0xe16a7c\n; > BN_mod_exp_mont @ 0xe17144\n; > BN_mod_exp_mont_word @ 0xe178a4\n; > BN_mod_exp_simple @ 0xe17b04\n; > int_bn_mod_inverse @ 0xe18908\n; > int_bn_mod_inverse @ 0xe18b1c\n; > int_bn_mod_inverse @ 0xe18ebc\n; > BN_kronecker @ 0xe196d8\n; > BN_mod_sqrt @ 0xe1adc4\n; > BN_mod_sqrt @ 0xe1ae1c\n; > BN_mod_sqrt @ 0xe1ae5c\n; > BN_mod_sqrt @ 0xe1b190\n; > BN_mod_sqrt @ 0xe1b304\n; > BN_mod_sqrt @ 0xe1b32c\n; > DH_check @ 0xe2987c\n; > DH_check @ 0xe29970\n; > DH_check_pub_key @ 0xe29af0\n; > dsa_builtin_paramgen @ 0xe2ab84\n; > dsa_builtin_paramgen2 @ 0xe2b25c\n; > sub_E34354 @ 0xe34408\n; > RSA_generate_key_ex @ 0xe6aab8\n; > RSA_generate_key_ex @ 0xe6ac24\n; > BN_is_prime_fasttest_ex @ 0xe771a4\n; > BN_is_prime_fasttest_ex @ 0xe771d0\n; > <???> @ 0x603f0\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, 0xd7a998\nMOV             X1, #1                                                 ; +0x4, 0xd7a99c\nMOV             X29, SP                                                ; +0x8, 0xd7a9a0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xd7a9a4\nMOV             X19, X0                                                ; +0x10, 0xd7a9a8\nBL              BN_abs_is_word                                         ; +0x14, 0xd7a9ac\nCBZ             W0, loc_D7A9C0                                         ; +0x18, 0xd7a9b0\nLDR             W0, [X19,#0x10]                                        ; +0x1c, 0xd7a9b4\nCMP             W0, WZR                                                ; +0x20, 0xd7a9b8\nCSET            W0, EQ                                                 ; +0x24, 0xd7a9bc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xd7a9c0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xd7a9c4\nRET                                                                    ; +0x30, 0xd7a9c8", "xrefs": ["sub_D87990 @ 0xd87a74", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99820", "ec_GFp_simple_point_get_affine_coordinates @ 0xd99944", "ec_GFp_simple_point_get_affine_coordinates @ 0xd999b0", "sub_DD6258 @ 0xdd63e0", "sub_E162E0 @ 0xe16328", "BN_mod_exp_mont_consttime @ 0xe16a7c", "BN_mod_exp_mont @ 0xe17144", "BN_mod_exp_mont_word @ 0xe178a4", "BN_mod_exp_simple @ 0xe17b04", "int_bn_mod_inverse @ 0xe18908", "int_bn_mod_inverse @ 0xe18b1c", "int_bn_mod_inverse @ 0xe18ebc", "BN_kronecker @ 0xe196d8", "BN_mod_sqrt @ 0xe1adc4", "BN_mod_sqrt @ 0xe1ae1c", "BN_mod_sqrt @ 0xe1ae5c", "BN_mod_sqrt @ 0xe1b190", "BN_mod_sqrt @ 0xe1b304", "BN_mod_sqrt @ 0xe1b32c", "DH_check @ 0xe2987c", "DH_check @ 0xe29970", "DH_check_pub_key @ 0xe29af0", "dsa_builtin_paramgen @ 0xe2ab84", "dsa_builtin_paramgen2 @ 0xe2b25c", "sub_E34354 @ 0xe34408", "RSA_generate_key_ex @ 0xe6aab8", "RSA_generate_key_ex @ 0xe6ac24", "BN_is_prime_fasttest_ex @ 0xe771a4", "BN_is_prime_fasttest_ex @ 0xe771d0", "<???> @ 0x603f0"], "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"}