{"type": "func", "start": 11401344, "end": 11401460, "name": "BN_GENCB_call", "pseudocode": "// \n// BN_GENCB_call from 0xadf880 to 0xadf8f4 (116 bytes)\n// \n// 22 xrefs:\n// > dsa_builtin_paramgen @ 0xa95040\n// > dsa_builtin_paramgen @ 0xa952e8\n// > dsa_builtin_paramgen @ 0xa95300\n// > dsa_builtin_paramgen @ 0xa95514\n// > dsa_builtin_paramgen @ 0xa95590\n// > dsa_builtin_paramgen @ 0xa95678\n// > dsa_builtin_paramgen2 @ 0xa95d28\n// > dsa_builtin_paramgen2 @ 0xa95e0c\n// > dsa_builtin_paramgen2 @ 0xa95e24\n// > dsa_builtin_paramgen2 @ 0xa96060\n// > dsa_builtin_paramgen2 @ 0xa96134\n// > dsa_builtin_paramgen2 @ 0xa96298\n// > RSA_generate_key_ex @ 0xad4a98\n// > RSA_generate_key_ex @ 0xad4b40\n// > RSA_generate_key_ex @ 0xad4c14\n// > RSA_generate_key_ex @ 0xad4cd0\n// > BN_is_prime_fasttest_ex @ 0xadf998\n// > BN_is_prime_fasttest_ex @ 0xadfc30\n// > BN_generate_prime_ex @ 0xae0374\n// > BN_generate_prime_ex @ 0xae0438\n// > DH_generate_parameters_ex @ 0xae5990\n// > <???> @ 0x8426c\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:09:33 +0000\n// \n\nint __fastcall BN_GENCB_call(_DWORD *a1, int a2, int a3)\n{\n  void (__fastcall *v4)(int, int, _DWORD); // r12\n\n  if ( !a1 )\n    return 1;\n  if ( *a1 == 1 )\n  {\n    v4 = (void (__fastcall *)(int, int, _DWORD))a1[2];\n    if ( v4 )\n    {\n      v4(a2, a3, a1[1]);\n      return 1;\n    }\n    else\n    {\n      return *a1;\n    }\n  }\n  else if ( *a1 == 2 )\n  {\n    return ((int (__fastcall *)(int, int, _DWORD *))a1[2])(a2, a3, a1);\n  }\n  else\n  {\n    return 0;\n  }\n}", "assembly": "; \n; BN_GENCB_call from 0xadf880 to 0xadf8f4 (116 bytes)\n; \n; 22 xrefs:\n; > dsa_builtin_paramgen @ 0xa95040\n; > dsa_builtin_paramgen @ 0xa952e8\n; > dsa_builtin_paramgen @ 0xa95300\n; > dsa_builtin_paramgen @ 0xa95514\n; > dsa_builtin_paramgen @ 0xa95590\n; > dsa_builtin_paramgen @ 0xa95678\n; > dsa_builtin_paramgen2 @ 0xa95d28\n; > dsa_builtin_paramgen2 @ 0xa95e0c\n; > dsa_builtin_paramgen2 @ 0xa95e24\n; > dsa_builtin_paramgen2 @ 0xa96060\n; > dsa_builtin_paramgen2 @ 0xa96134\n; > dsa_builtin_paramgen2 @ 0xa96298\n; > RSA_generate_key_ex @ 0xad4a98\n; > RSA_generate_key_ex @ 0xad4b40\n; > RSA_generate_key_ex @ 0xad4c14\n; > RSA_generate_key_ex @ 0xad4cd0\n; > BN_is_prime_fasttest_ex @ 0xadf998\n; > BN_is_prime_fasttest_ex @ 0xadfc30\n; > BN_generate_prime_ex @ 0xae0374\n; > BN_generate_prime_ex @ 0xae0438\n; > DH_generate_parameters_ex @ 0xae5990\n; > <???> @ 0x8426c\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:09:33 +0000\n; \nSUBS            R3, R0, #0                                             ; +0x0, 0xadf880\nBEQ             loc_ADF8E4                                             ; +0x4, 0xadf884\nPUSH            {R4,LR}                                                ; +0x8, 0xadf888\nLDR             R4, [R3]                                               ; +0xc, 0xadf88c\nCMP             R4, #1                                                 ; +0x10, 0xadf890\nBEQ             loc_ADF8C0                                             ; +0x14, 0xadf894\nCMP             R4, #2                                                 ; +0x18, 0xadf898\nBNE             loc_ADF8B8                                             ; +0x1c, 0xadf89c\nMOV             R0, R1                                                 ; +0x20, 0xadf8a0\nLDR             R12, [R3,#8]                                           ; +0x24, 0xadf8a4\nMOV             R1, R2                                                 ; +0x28, 0xadf8a8\nPOP             {R4,LR}                                                ; +0x2c, 0xadf8ac\nMOV             R2, R3                                                 ; +0x30, 0xadf8b0\nBX              R12                                                    ; +0x34, 0xadf8b4\nMOV             R0, #0                                                 ; +0x38, 0xadf8b8\nPOP             {R4,PC}                                                ; +0x3c, 0xadf8bc\nLDR             R12, [R3,#8]                                           ; +0x40, 0xadf8c0\nCMP             R12, #0                                                ; +0x44, 0xadf8c4\nBEQ             loc_ADF8EC                                             ; +0x48, 0xadf8c8\nMOV             R0, R1                                                 ; +0x4c, 0xadf8cc\nMOV             R1, R2                                                 ; +0x50, 0xadf8d0\nLDR             R2, [R3,#4]                                            ; +0x54, 0xadf8d4\nBLX             R12                                                    ; +0x58, 0xadf8d8\nMOV             R0, R4                                                 ; +0x5c, 0xadf8dc\nPOP             {R4,PC}                                                ; +0x60, 0xadf8e0\nMOV             R0, #1                                                 ; +0x64, 0xadf8e4\nBX              LR                                                     ; +0x68, 0xadf8e8\nMOV             R0, R4                                                 ; +0x6c, 0xadf8ec\nPOP             {R4,PC}                                                ; +0x70, 0xadf8f0", "xrefs": ["dsa_builtin_paramgen @ 0xa95040", "dsa_builtin_paramgen @ 0xa952e8", "dsa_builtin_paramgen @ 0xa95300", "dsa_builtin_paramgen @ 0xa95514", "dsa_builtin_paramgen @ 0xa95590", "dsa_builtin_paramgen @ 0xa95678", "dsa_builtin_paramgen2 @ 0xa95d28", "dsa_builtin_paramgen2 @ 0xa95e0c", "dsa_builtin_paramgen2 @ 0xa95e24", "dsa_builtin_paramgen2 @ 0xa96060", "dsa_builtin_paramgen2 @ 0xa96134", "dsa_builtin_paramgen2 @ 0xa96298", "RSA_generate_key_ex @ 0xad4a98", "RSA_generate_key_ex @ 0xad4b40", "RSA_generate_key_ex @ 0xad4c14", "RSA_generate_key_ex @ 0xad4cd0", "BN_is_prime_fasttest_ex @ 0xadf998", "BN_is_prime_fasttest_ex @ 0xadfc30", "BN_generate_prime_ex @ 0xae0374", "BN_generate_prime_ex @ 0xae0438", "DH_generate_parameters_ex @ 0xae5990", "<???> @ 0x8426c"], "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"}