{"type": "func", "start": 8248204, "end": 8248280, "name": "DES_set_key_checked", "pseudocode": "// \n// DES_set_key_checked from 0x7ddb8c to 0x7ddbd8 (76 bytes)\n// \n// 2 xrefs:\n// > DES_set_key @ 0x7ddc00\n// > <???> @ 0x6085c\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 DES_set_key_checked(unsigned __int8 *a1, int a2)\n{\n  _BOOL4 is_weak_key; // r5\n\n  if ( !DES_check_key_parity(a1) )\n    return -1;\n  is_weak_key = DES_is_weak_key(a1);\n  if ( is_weak_key )\n    return -2;\n  DES_set_key_unchecked(a1, a2);\n  return is_weak_key;\n}", "assembly": "; \n; DES_set_key_checked from 0x7ddb8c to 0x7ddbd8 (76 bytes)\n; \n; 2 xrefs:\n; > DES_set_key @ 0x7ddc00\n; > <???> @ 0x6085c\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-R6,LR}                                             ; +0x0, 0x7ddb8c\nMOV             R6, R1                                                 ; +0x4, 0x7ddb90\nMOV             R4, R0                                                 ; +0x8, 0x7ddb94\nBL              DES_check_key_parity                                   ; +0xc, 0x7ddb98\nCMP             R0, #0                                                 ; +0x10, 0x7ddb9c\nBEQ             loc_7DDBC8                                             ; +0x14, 0x7ddba0\nMOV             R0, R4; void *                                         ; +0x18, 0x7ddba4\nBL              DES_is_weak_key                                        ; +0x1c, 0x7ddba8\nSUBS            R5, R0, #0                                             ; +0x20, 0x7ddbac\nBNE             loc_7DDBD0                                             ; +0x24, 0x7ddbb0\nMOV             R0, R4                                                 ; +0x28, 0x7ddbb4\nMOV             R1, R6                                                 ; +0x2c, 0x7ddbb8\nBL              DES_set_key_unchecked                                  ; +0x30, 0x7ddbbc\nMOV             R0, R5                                                 ; +0x34, 0x7ddbc0\nPOP             {R4-R6,PC}                                             ; +0x38, 0x7ddbc4\nMOV             R5, #0xFFFFFFFF                                        ; +0x3c, 0x7ddbc8\nB               loc_7DDBC0                                             ; +0x40, 0x7ddbcc\nMOV             R5, #0xFFFFFFFE                                        ; +0x44, 0x7ddbd0\nB               loc_7DDBC0                                             ; +0x48, 0x7ddbd4", "xrefs": ["DES_set_key @ 0x7ddc00", "<???> @ 0x6085c"], "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"}