{"type": "func", "start": 9216612, "end": 9216824, "name": "BN_GF2m_mod_mul", "pseudocode": "// \n// BN_GF2m_mod_mul from 0x8ca264 to 0x8ca338 (212 bytes)\n// \n// 2 xrefs:\n// > BN_GF2m_mod_div @ 0x8ca3c0\n// > <???> @ 0x6ba1c\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_GF2m_mod_mul(int **a1, _DWORD *a2, _DWORD *a3, int **a4, int ***a5)\n{\n  int v9; // r5\n  int *v10; // r10\n  _BOOL4 v11; // r4\n  int v12; // r0\n  _BOOL4 v13; // r12\n\n  v9 = BN_num_bits(a4) + 1;\n  v10 = (int *)CRYPTO_malloc((void *)(4 * v9), (int)\"crypto/bn/bn_gf2m.c\", 482);\n  if ( v10 )\n  {\n    v12 = BN_GF2m_poly2arr(a4, (int)v10, v9);\n    v13 = v12 == 0;\n    if ( v12 > v9 )\n      v13 = 1;\n    v11 = v12;\n    if ( v13 )\n      ERR_put_error(3, 133, 106, (int)\"crypto/bn/bn_gf2m.c\", 486);\n    else\n      v11 = BN_GF2m_mod_mul_arr(a1, a2, a3, v10, a5);\n  }\n  else\n  {\n    v11 = 0;\n  }\n  CRYPTO_free(v10, (int)\"crypto/bn/bn_gf2m.c\", 492);\n  return v11;\n}", "assembly": "; \n; BN_GF2m_mod_mul from 0x8ca264 to 0x8ca338 (212 bytes)\n; \n; 2 xrefs:\n; > BN_GF2m_mod_div @ 0x8ca3c0\n; > <???> @ 0x6ba1c\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-R10,LR}                                            ; +0x0, 0x8ca264\nMOV             R9, R0                                                 ; +0x4, 0x8ca268\nSUB             SP, SP, #8                                             ; +0x8, 0x8ca26c\nMOV             R0, R3                                                 ; +0xc, 0x8ca270\nMOV             R4, R3                                                 ; +0x10, 0x8ca274\nMOV             R8, R1                                                 ; +0x14, 0x8ca278\nMOV             R7, R2                                                 ; +0x18, 0x8ca27c\nBL              BN_num_bits                                            ; +0x1c, 0x8ca280\nLDR             R6, =(aCryptoBnBnGf2m - 0x8CA294); \"crypto/bn/bn_gf2m.c\" ; +0x20, 0x8ca284\nLDR             R2, =0x1E2                                             ; +0x24, 0x8ca288\nADD             R6, PC, R6; \"crypto/bn/bn_gf2m.c\"                      ; +0x28, 0x8ca28c\nMOV             R1, R6                                                 ; +0x2c, 0x8ca290\nADD             R5, R0, #1                                             ; +0x30, 0x8ca294\nMOV             R0, R5,LSL#2                                           ; +0x34, 0x8ca298\nBL              CRYPTO_malloc                                          ; +0x38, 0x8ca29c\nSUBS            R10, R0, #0                                            ; +0x3c, 0x8ca2a0\nMOVEQ           R4, R10                                                ; +0x40, 0x8ca2a4\nBEQ             loc_8CA2F8                                             ; +0x44, 0x8ca2a8\nMOV             R0, R4                                                 ; +0x48, 0x8ca2ac\nMOV             R1, R10                                                ; +0x4c, 0x8ca2b0\nMOV             R2, R5                                                 ; +0x50, 0x8ca2b4\nBL              BN_GF2m_poly2arr                                       ; +0x54, 0x8ca2b8\nCLZ             R12, R0                                                ; +0x58, 0x8ca2bc\nMOV             R12, R12,LSR#5                                         ; +0x5c, 0x8ca2c0\nCMP             R0, R5                                                 ; +0x60, 0x8ca2c4\nORRGT           R12, R12, #1                                           ; +0x64, 0x8ca2c8\nCMP             R12, #0                                                ; +0x68, 0x8ca2cc\nMOV             R4, R0                                                 ; +0x6c, 0x8ca2d0\nBNE             loc_8CA318                                             ; +0x70, 0x8ca2d4\nLDR             R3, [SP,#8+arg_0]                                      ; +0x74, 0x8ca2d8\nSTR             R3, [SP,#8+var_8]                                      ; +0x78, 0x8ca2dc\nMOV             R0, R9                                                 ; +0x7c, 0x8ca2e0\nMOV             R1, R8                                                 ; +0x80, 0x8ca2e4\nMOV             R2, R7                                                 ; +0x84, 0x8ca2e8\nMOV             R3, R10                                                ; +0x88, 0x8ca2ec\nBL              BN_GF2m_mod_mul_arr                                    ; +0x8c, 0x8ca2f0\nMOV             R4, R0                                                 ; +0x90, 0x8ca2f4\nLDR             R1, =(aCryptoBnBnGf2m - 0x8CA308); \"crypto/bn/bn_gf2m.c\" ; +0x94, 0x8ca2f8\nMOV             R0, R10                                                ; +0x98, 0x8ca2fc\nADD             R1, PC, R1; \"crypto/bn/bn_gf2m.c\"                      ; +0x9c, 0x8ca300\nMOV             R2, #0x1EC                                             ; +0xa0, 0x8ca304\nBL              CRYPTO_free                                            ; +0xa4, 0x8ca308\nMOV             R0, R4                                                 ; +0xa8, 0x8ca30c\nADD             SP, SP, #8                                             ; +0xac, 0x8ca310\nPOP             {R4-R10,PC}                                            ; +0xb0, 0x8ca314\nLDR             R2, =0x1E6                                             ; +0xb4, 0x8ca318\nSTR             R2, [SP,#8+var_8]                                      ; +0xb8, 0x8ca31c\nMOV             R3, R6                                                 ; +0xbc, 0x8ca320\nMOV             R0, #3                                                 ; +0xc0, 0x8ca324\nMOV             R1, #0x85                                              ; +0xc4, 0x8ca328\nMOV             R2, #0x6A ; 'j'                                        ; +0xc8, 0x8ca32c\nBL              ERR_put_error                                          ; +0xcc, 0x8ca330\nB               loc_8CA2F8                                             ; +0xd0, 0x8ca334", "xrefs": ["BN_GF2m_mod_div @ 0x8ca3c0", "<???> @ 0x6ba1c"], "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"}