{"type": "func", "start": 8210496, "end": 8210532, "name": "BN_is_one", "pseudocode": "// \n// BN_is_one from 0x7d4840 to 0x7d4864 (36 bytes)\n// \n// 30 xrefs:\n// > sub_7E01E0 @ 0x7e02ec\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f34e4\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f3618\n// > sub_82FF1C @ 0x8300a4\n// > BN_mod_exp_recp @ 0x86ce60\n// > BN_mod_exp_mont_consttime @ 0x86d344\n// > BN_mod_exp_mont @ 0x86d9a4\n// > BN_mod_exp_mont_word @ 0x86e190\n// > BN_mod_exp_simple @ 0x86e3fc\n// > int_bn_mod_inverse @ 0x86f2ec\n// > int_bn_mod_inverse @ 0x86f538\n// > int_bn_mod_inverse @ 0x86f96c\n// > BN_kronecker @ 0x8701c0\n// > BN_mod_sqrt @ 0x8716f8\n// > BN_mod_sqrt @ 0x871740\n// > BN_mod_sqrt @ 0x871770\n// > BN_mod_sqrt @ 0x871b18\n// > BN_mod_sqrt @ 0x871cc0\n// > BN_mod_sqrt @ 0x871cf0\n// > DH_check @ 0x87f5e8\n// > DH_check @ 0x87f6f0\n// > DH_check_pub_key @ 0x87f868\n// > dsa_builtin_paramgen @ 0x880a3c\n// > dsa_builtin_paramgen2 @ 0x881000\n// > sub_88AA9C @ 0x88ab50\n// > RSA_generate_key_ex @ 0x8bfa80\n// > RSA_generate_key_ex @ 0x8bfbfc\n// > BN_is_prime_fasttest_ex @ 0x8cac9c\n// > BN_is_prime_fasttest_ex @ 0x8cacd8\n// > <???> @ 0x5fb7c\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\nbool __fastcall BN_is_one(int a1)\n{\n  _BOOL4 result; // r0\n\n  result = BN_abs_is_word(a1, 1);\n  if ( result )\n    return *(_DWORD *)(a1 + 12) == 0;\n  return result;\n}", "assembly": "; \n; BN_is_one from 0x7d4840 to 0x7d4864 (36 bytes)\n; \n; 30 xrefs:\n; > sub_7E01E0 @ 0x7e02ec\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f34e4\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x7f3618\n; > sub_82FF1C @ 0x8300a4\n; > BN_mod_exp_recp @ 0x86ce60\n; > BN_mod_exp_mont_consttime @ 0x86d344\n; > BN_mod_exp_mont @ 0x86d9a4\n; > BN_mod_exp_mont_word @ 0x86e190\n; > BN_mod_exp_simple @ 0x86e3fc\n; > int_bn_mod_inverse @ 0x86f2ec\n; > int_bn_mod_inverse @ 0x86f538\n; > int_bn_mod_inverse @ 0x86f96c\n; > BN_kronecker @ 0x8701c0\n; > BN_mod_sqrt @ 0x8716f8\n; > BN_mod_sqrt @ 0x871740\n; > BN_mod_sqrt @ 0x871770\n; > BN_mod_sqrt @ 0x871b18\n; > BN_mod_sqrt @ 0x871cc0\n; > BN_mod_sqrt @ 0x871cf0\n; > DH_check @ 0x87f5e8\n; > DH_check @ 0x87f6f0\n; > DH_check_pub_key @ 0x87f868\n; > dsa_builtin_paramgen @ 0x880a3c\n; > dsa_builtin_paramgen2 @ 0x881000\n; > sub_88AA9C @ 0x88ab50\n; > RSA_generate_key_ex @ 0x8bfa80\n; > RSA_generate_key_ex @ 0x8bfbfc\n; > BN_is_prime_fasttest_ex @ 0x8cac9c\n; > BN_is_prime_fasttest_ex @ 0x8cacd8\n; > <???> @ 0x5fb7c\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\nPUSH            {R4,LR}                                                ; +0x0, 0x7d4840\nMOV             R1, #1                                                 ; +0x4, 0x7d4844\nMOV             R4, R0                                                 ; +0x8, 0x7d4848\nBL              BN_abs_is_word                                         ; +0xc, 0x7d484c\nCMP             R0, #0                                                 ; +0x10, 0x7d4850\nLDRNE           R0, [R4,#0xC]                                          ; +0x14, 0x7d4854\nCLZNE           R0, R0                                                 ; +0x18, 0x7d4858\nMOVNE           R0, R0,LSR#5                                           ; +0x1c, 0x7d485c\nPOP             {R4,PC}                                                ; +0x20, 0x7d4860", "xrefs": ["sub_7E01E0 @ 0x7e02ec", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f34e4", "ec_GFp_simple_point_get_affine_coordinates @ 0x7f3618", "sub_82FF1C @ 0x8300a4", "BN_mod_exp_recp @ 0x86ce60", "BN_mod_exp_mont_consttime @ 0x86d344", "BN_mod_exp_mont @ 0x86d9a4", "BN_mod_exp_mont_word @ 0x86e190", "BN_mod_exp_simple @ 0x86e3fc", "int_bn_mod_inverse @ 0x86f2ec", "int_bn_mod_inverse @ 0x86f538", "int_bn_mod_inverse @ 0x86f96c", "BN_kronecker @ 0x8701c0", "BN_mod_sqrt @ 0x8716f8", "BN_mod_sqrt @ 0x871740", "BN_mod_sqrt @ 0x871770", "BN_mod_sqrt @ 0x871b18", "BN_mod_sqrt @ 0x871cc0", "BN_mod_sqrt @ 0x871cf0", "DH_check @ 0x87f5e8", "DH_check @ 0x87f6f0", "DH_check_pub_key @ 0x87f868", "dsa_builtin_paramgen @ 0x880a3c", "dsa_builtin_paramgen2 @ 0x881000", "sub_88AA9C @ 0x88ab50", "RSA_generate_key_ex @ 0x8bfa80", "RSA_generate_key_ex @ 0x8bfbfc", "BN_is_prime_fasttest_ex @ 0x8cac9c", "BN_is_prime_fasttest_ex @ 0x8cacd8", "<???> @ 0x5fb7c"], "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"}