{"type": "func", "start": 8227488, "end": 8227612, "name": "BN_mul_word", "pseudocode": "// \n// BN_mul_word from 0x7d8aa0 to 0x7d8b1c (124 bytes)\n// \n// 9 xrefs:\n// > a2d_ASN1_OBJECT @ 0x7bd444\n// > BN_dec2bn @ 0x7d7a4c\n// > ec_GFp_simple_group_check_discriminant @ 0x7f3378\n// > BN_mod_exp_mont_word @ 0x86dfec\n// > BN_mod_exp_mont_word @ 0x86e144\n// > BN_mod_exp_mont_word @ 0x86e218\n// > int_bn_mod_inverse @ 0x86f7b4\n// > bn_probable_prime_dh_coprime @ 0x8caedc\n// > <???> @ 0x5e19c\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\nint __fastcall BN_mul_word(int **a1, int a2)\n{\n  int *v2; // r2\n  int v4; // r5\n  int result; // r0\n  int *v6; // r2\n  int *v7; // r3\n\n  v2 = a1[1];\n  if ( !v2 )\n    return 1;\n  if ( a2 )\n  {\n    v4 = bn_mul_words(*a1, *a1, v2, a2);\n    if ( v4 )\n    {\n      result = bn_wexpand((int)a1, (int)a1[1] + 1);\n      if ( result )\n      {\n        v6 = *a1;\n        v7 = a1[1];\n        a1[1] = (int *)((char *)v7 + 1);\n        v6[(_DWORD)v7] = v4;\n        return 1;\n      }\n    }\n    else\n    {\n      return 1;\n    }\n  }\n  else\n  {\n    BN_set_word(a1, 0);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; BN_mul_word from 0x7d8aa0 to 0x7d8b1c (124 bytes)\n; \n; 9 xrefs:\n; > a2d_ASN1_OBJECT @ 0x7bd444\n; > BN_dec2bn @ 0x7d7a4c\n; > ec_GFp_simple_group_check_discriminant @ 0x7f3378\n; > BN_mod_exp_mont_word @ 0x86dfec\n; > BN_mod_exp_mont_word @ 0x86e144\n; > BN_mod_exp_mont_word @ 0x86e218\n; > int_bn_mod_inverse @ 0x86f7b4\n; > bn_probable_prime_dh_coprime @ 0x8caedc\n; > <???> @ 0x5e19c\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\nLDR             R2, [R0,#4]                                            ; +0x0, 0x7d8aa0\nCMP             R2, #0                                                 ; +0x4, 0x7d8aa4\nBEQ             loc_7D8AE8                                             ; +0x8, 0x7d8aa8\nCMP             R1, #0                                                 ; +0xc, 0x7d8aac\nPUSH            {R3-R5,LR}                                             ; +0x10, 0x7d8ab0\nMOV             R3, R1                                                 ; +0x14, 0x7d8ab4\nMOV             R4, R0                                                 ; +0x18, 0x7d8ab8\nBEQ             loc_7D8ADC                                             ; +0x1c, 0x7d8abc\nLDR             R0, [R0]                                               ; +0x20, 0x7d8ac0\nMOV             R1, R0                                                 ; +0x24, 0x7d8ac4\nBL              bn_mul_words                                           ; +0x28, 0x7d8ac8\nSUBS            R5, R0, #0                                             ; +0x2c, 0x7d8acc\nBNE             loc_7D8AF0                                             ; +0x30, 0x7d8ad0\nMOV             R0, #1                                                 ; +0x34, 0x7d8ad4\nPOP             {R3-R5,PC}                                             ; +0x38, 0x7d8ad8\nBL              BN_set_word                                            ; +0x3c, 0x7d8adc\nMOV             R0, #1                                                 ; +0x40, 0x7d8ae0\nPOP             {R3-R5,PC}                                             ; +0x44, 0x7d8ae4\nMOV             R0, #1                                                 ; +0x48, 0x7d8ae8\nBX              LR                                                     ; +0x4c, 0x7d8aec\nLDR             R1, [R4,#4]                                            ; +0x50, 0x7d8af0\nMOV             R0, R4                                                 ; +0x54, 0x7d8af4\nADD             R1, R1, #1                                             ; +0x58, 0x7d8af8\nBL              bn_wexpand                                             ; +0x5c, 0x7d8afc\nCMP             R0, #0                                                 ; +0x60, 0x7d8b00\nLDMNE           R4, {R2,R3}                                            ; +0x64, 0x7d8b04\nMOVNE           R0, #1                                                 ; +0x68, 0x7d8b08\nADDNE           R1, R3, #1                                             ; +0x6c, 0x7d8b0c\nSTRNE           R1, [R4,#4]                                            ; +0x70, 0x7d8b10\nSTRNE           R5, [R2,R3,LSL#2]                                      ; +0x74, 0x7d8b14\nPOP             {R3-R5,PC}                                             ; +0x78, 0x7d8b18", "xrefs": ["a2d_ASN1_OBJECT @ 0x7bd444", "BN_dec2bn @ 0x7d7a4c", "ec_GFp_simple_group_check_discriminant @ 0x7f3378", "BN_mod_exp_mont_word @ 0x86dfec", "BN_mod_exp_mont_word @ 0x86e144", "BN_mod_exp_mont_word @ 0x86e218", "int_bn_mod_inverse @ 0x86f7b4", "bn_probable_prime_dh_coprime @ 0x8caedc", "<???> @ 0x5e19c"], "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"}