{"type": "func", "start": 10409632, "end": 10409756, "name": "BN_mul_word", "pseudocode": "// \n// BN_mul_word from 0x9ed6a0 to 0x9ed71c (124 bytes)\n// \n// 9 xrefs:\n// > a2d_ASN1_OBJECT @ 0x9d2044\n// > BN_dec2bn @ 0x9ec64c\n// > ec_GFp_simple_group_check_discriminant @ 0xa07f78\n// > BN_mod_exp_mont_word @ 0xa82bec\n// > BN_mod_exp_mont_word @ 0xa82d44\n// > BN_mod_exp_mont_word @ 0xa82e18\n// > int_bn_mod_inverse @ 0xa843b4\n// > bn_probable_prime_dh_coprime @ 0xadfedc\n// > <???> @ 0x77c1c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:27 +0000\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 0x9ed6a0 to 0x9ed71c (124 bytes)\n; \n; 9 xrefs:\n; > a2d_ASN1_OBJECT @ 0x9d2044\n; > BN_dec2bn @ 0x9ec64c\n; > ec_GFp_simple_group_check_discriminant @ 0xa07f78\n; > BN_mod_exp_mont_word @ 0xa82bec\n; > BN_mod_exp_mont_word @ 0xa82d44\n; > BN_mod_exp_mont_word @ 0xa82e18\n; > int_bn_mod_inverse @ 0xa843b4\n; > bn_probable_prime_dh_coprime @ 0xadfedc\n; > <???> @ 0x77c1c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:27 +0000\n; \nLDR             R2, [R0,#4]                                            ; +0x0, 0x9ed6a0\nCMP             R2, #0                                                 ; +0x4, 0x9ed6a4\nBEQ             loc_9ED6E8                                             ; +0x8, 0x9ed6a8\nCMP             R1, #0                                                 ; +0xc, 0x9ed6ac\nPUSH            {R3-R5,LR}                                             ; +0x10, 0x9ed6b0\nMOV             R3, R1                                                 ; +0x14, 0x9ed6b4\nMOV             R4, R0                                                 ; +0x18, 0x9ed6b8\nBEQ             loc_9ED6DC                                             ; +0x1c, 0x9ed6bc\nLDR             R0, [R0]                                               ; +0x20, 0x9ed6c0\nMOV             R1, R0                                                 ; +0x24, 0x9ed6c4\nBL              bn_mul_words                                           ; +0x28, 0x9ed6c8\nSUBS            R5, R0, #0                                             ; +0x2c, 0x9ed6cc\nBNE             loc_9ED6F0                                             ; +0x30, 0x9ed6d0\nMOV             R0, #1                                                 ; +0x34, 0x9ed6d4\nPOP             {R3-R5,PC}                                             ; +0x38, 0x9ed6d8\nBL              BN_set_word                                            ; +0x3c, 0x9ed6dc\nMOV             R0, #1                                                 ; +0x40, 0x9ed6e0\nPOP             {R3-R5,PC}                                             ; +0x44, 0x9ed6e4\nMOV             R0, #1                                                 ; +0x48, 0x9ed6e8\nBX              LR                                                     ; +0x4c, 0x9ed6ec\nLDR             R1, [R4,#4]                                            ; +0x50, 0x9ed6f0\nMOV             R0, R4                                                 ; +0x54, 0x9ed6f4\nADD             R1, R1, #1                                             ; +0x58, 0x9ed6f8\nBL              bn_wexpand                                             ; +0x5c, 0x9ed6fc\nCMP             R0, #0                                                 ; +0x60, 0x9ed700\nLDMNE           R4, {R2,R3}                                            ; +0x64, 0x9ed704\nMOVNE           R0, #1                                                 ; +0x68, 0x9ed708\nADDNE           R1, R3, #1                                             ; +0x6c, 0x9ed70c\nSTRNE           R1, [R4,#4]                                            ; +0x70, 0x9ed710\nSTRNE           R5, [R2,R3,LSL#2]                                      ; +0x74, 0x9ed714\nPOP             {R3-R5,PC}                                             ; +0x78, 0x9ed718", "xrefs": ["a2d_ASN1_OBJECT @ 0x9d2044", "BN_dec2bn @ 0x9ec64c", "ec_GFp_simple_group_check_discriminant @ 0xa07f78", "BN_mod_exp_mont_word @ 0xa82bec", "BN_mod_exp_mont_word @ 0xa82d44", "BN_mod_exp_mont_word @ 0xa82e18", "int_bn_mod_inverse @ 0xa843b4", "bn_probable_prime_dh_coprime @ 0xadfedc", "<???> @ 0x77c1c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}