{"type": "func", "start": 10396216, "end": 10396320, "name": "BN_from_montgomery", "pseudocode": "// \n// BN_from_montgomery from 0x9ea238 to 0x9ea2a0 (104 bytes)\n// \n// 6 xrefs:\n// > ec_GFp_mont_field_decode @ 0xa04a64\n// > BN_mod_exp_mont_consttime @ 0xa8235c\n// > BN_mod_exp_mont @ 0xa828f8\n// > BN_mod_exp_mont_word @ 0xa82d18\n// > BN_mod_exp2_mont @ 0xa83b00\n// > <???> @ 0x797ec\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:26 +0000\n// \n\nint __fastcall BN_from_montgomery(int *a1, int a2, _DWORD *a3, int a4)\n{\n  int v8; // r0\n  _DWORD *v9; // r7\n  int v10; // r5\n\n  BN_CTX_start(a4);\n  v8 = BN_CTX_get(a4);\n  v9 = (_DWORD *)v8;\n  if ( v8 && BN_copy(v8, a2) )\n    v10 = sub_9E9EC4(a1, v9, a3);\n  else\n    v10 = 0;\n  BN_CTX_end(a4);\n  return v10;\n}", "assembly": "; \n; BN_from_montgomery from 0x9ea238 to 0x9ea2a0 (104 bytes)\n; \n; 6 xrefs:\n; > ec_GFp_mont_field_decode @ 0xa04a64\n; > BN_mod_exp_mont_consttime @ 0xa8235c\n; > BN_mod_exp_mont @ 0xa828f8\n; > BN_mod_exp_mont_word @ 0xa82d18\n; > BN_mod_exp2_mont @ 0xa83b00\n; > <???> @ 0x797ec\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:26 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0x9ea238\nMOV             R4, R3                                                 ; +0x4, 0x9ea23c\nMOV             R8, R0                                                 ; +0x8, 0x9ea240\nMOV             R0, R3                                                 ; +0xc, 0x9ea244\nMOV             R5, R1                                                 ; +0x10, 0x9ea248\nMOV             R6, R2                                                 ; +0x14, 0x9ea24c\nBL              BN_CTX_start                                           ; +0x18, 0x9ea250\nMOV             R0, R4                                                 ; +0x1c, 0x9ea254\nBL              BN_CTX_get                                             ; +0x20, 0x9ea258\nSUBS            R7, R0, #0                                             ; +0x24, 0x9ea25c\nBEQ             loc_9EA298                                             ; +0x28, 0x9ea260\nMOV             R1, R5                                                 ; +0x2c, 0x9ea264\nBL              BN_copy                                                ; +0x30, 0x9ea268\nCMP             R0, #0                                                 ; +0x34, 0x9ea26c\nBEQ             loc_9EA298                                             ; +0x38, 0x9ea270\nMOV             R0, R8                                                 ; +0x3c, 0x9ea274\nMOV             R1, R7                                                 ; +0x40, 0x9ea278\nMOV             R2, R6                                                 ; +0x44, 0x9ea27c\nBL              sub_9E9EC4                                             ; +0x48, 0x9ea280\nMOV             R5, R0                                                 ; +0x4c, 0x9ea284\nMOV             R0, R4                                                 ; +0x50, 0x9ea288\nBL              BN_CTX_end                                             ; +0x54, 0x9ea28c\nMOV             R0, R5                                                 ; +0x58, 0x9ea290\nPOP             {R4-R8,PC}                                             ; +0x5c, 0x9ea294\nMOV             R5, #0                                                 ; +0x60, 0x9ea298\nB               loc_9EA288                                             ; +0x64, 0x9ea29c", "xrefs": ["ec_GFp_mont_field_decode @ 0xa04a64", "BN_mod_exp_mont_consttime @ 0xa8235c", "BN_mod_exp_mont @ 0xa828f8", "BN_mod_exp_mont_word @ 0xa82d18", "BN_mod_exp2_mont @ 0xa83b00", "<???> @ 0x797ec"], "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"}