From 4d166f4f1f43da1d1adcefd29b8a5a08966a9daf Mon Sep 17 00:00:00 2001 From: HappyASR Date: Wed, 27 Mar 2024 16:42:34 +0800 Subject: [PATCH] igs/igs036crypt.cpp: added preliminary decryption for bubucar [XingXing] (#12187) --- src/mame/igs/igs036crypt.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/mame/igs/igs036crypt.cpp b/src/mame/igs/igs036crypt.cpp index 4ca83b8f5c39b..1843448e9640a 100644 --- a/src/mame/igs/igs036crypt.cpp +++ b/src/mame/igs/igs036crypt.cpp @@ -288,3 +288,22 @@ const uint8_t cjdh2_key[0x100] = { 0x70, 0xc3, 0x02, 0xd2, 0xe1, 0x42, 0x42, 0x47, 0xe3, 0x20, 0x9a, 0xea, 0xe6, 0x02, 0x2a, 0x8f, 0xf3, 0x3a, 0x22, 0x7a, 0xf1, 0x58, 0x97, 0xeb, 0x41, 0x59, 0xe2, 0x73, 0xdd, 0xa7, 0x7e, 0x1f, }; + +const uint8_t bubucar_key[0x100] = { + 0x01, 0x91, 0x31, 0x00, 0x83, 0x2e, 0x05, 0x0d, 0x02, 0x31, 0x91, 0x18, 0x21, 0x2e, 0xac, 0xad, + 0x93, 0x8b, 0x91, 0x11, 0x07, 0x99, 0x84, 0x0c, 0x8b, 0x03, 0x91, 0x01, 0x84, 0x94, 0x88, 0x95, + 0x10, 0x9b, 0x91, 0xb0, 0x87, 0x80, 0x04, 0x8d, 0x82, 0xb0, 0xb0, 0x30, 0x87, 0x25, 0x80, 0x29, + 0x91, 0x10, 0x01, 0x89, 0x27, 0x8a, 0x14, 0x31, 0xba, 0xba, 0x20, 0x91, 0xbc, 0x3b, 0x3c, 0xa1, + 0x72, 0x38, 0x10, 0xe1, 0xe2, 0x88, 0xa0, 0xed, 0xb9, 0xe8, 0xf0, 0x51, 0xa6, 0x6e, 0x40, 0x65, + 0x50, 0xc8, 0x80, 0x00, 0x41, 0xc7, 0x44, 0x9d, 0x80, 0x9b, 0x00, 0x99, 0x8c, 0x81, 0x10, 0x08, + 0x61, 0x61, 0x00, 0x39, 0xa6, 0xc7, 0x85, 0x25, 0x80, 0xb2, 0xb9, 0x10, 0xa2, 0x6a, 0xc1, 0x49, + 0xd1, 0xf0, 0xe0, 0xc9, 0x82, 0x87, 0xc4, 0xec, 0xf2, 0x90, 0x29, 0xe1, 0x5d, 0x6c, 0x41, 0x80, + 0x32, 0xaa, 0x80, 0x00, 0xa6, 0x26, 0x00, 0xa9, 0x82, 0x92, 0x30, 0xb1, 0x02, 0xa0, 0x84, 0xa5, + 0x80, 0x93, 0x90, 0x08, 0x06, 0x03, 0x15, 0x94, 0x0b, 0x83, 0x91, 0x10, 0x97, 0x17, 0x81, 0x81, + 0xa0, 0xa9, 0x10, 0xa8, 0xa7, 0x2d, 0x81, 0x05, 0x98, 0x9a, 0x88, 0x80, 0xaf, 0x81, 0x29, 0xad, + 0x20, 0xb9, 0xb0, 0xa9, 0xa4, 0x33, 0x31, 0x90, 0x90, 0x18, 0x88, 0x90, 0x21, 0xaf, 0x2c, 0x80, + 0x50, 0x58, 0x80, 0xb1, 0x20, 0x64, 0xe0, 0x2c, 0xc2, 0x48, 0xe1, 0x40, 0x60, 0x23, 0xc4, 0xe8, + 0x42, 0x8b, 0x50, 0x48, 0xd4, 0x0f, 0x00, 0xd0, 0x98, 0x41, 0xc0, 0x89, 0xc3, 0x0e, 0x9c, 0x1d, + 0xe1, 0xb2, 0xc0, 0x80, 0x43, 0x42, 0x41, 0xa8, 0x5b, 0xa3, 0x68, 0x40, 0xae, 0x60, 0x01, 0x24, + 0x31, 0xb3, 0xf0, 0xf8, 0x34, 0x8e, 0xc0, 0x94, 0xa8, 0xd8, 0x10, 0xa0, 0x46, 0x33, 0xe9, 0x38, +};