forked from crystallite/mangekyou_util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exfp3.cpp
815 lines (708 loc) · 41.2 KB
/
exfp3.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
// exfp3.cpp, v1.46 2012/02/26
// coded by asmodean
// contact:
// web: http://asmodean.reverse.net
// email: asmodean [at] hush.com
// irc: asmodean on efnet (irc.efnet.net)
// This tool extracts/de-obfuscates data from FilePackVer3.0 (*.PACK) archives.
// Use exb to extract data from composite images (*.b).
#include "as-util.h"
#include "mt.h"
// Uniform obfuscation for all archives
//#define FP3_FLAVOR 1
// Per-archive obfuscation with an initial key file
//#define FP3_FLAVOR 2
// Per-archive obfuscation with an initial key file and (unique?) compiled key data
#define FP3_FLAVOR 3
#if FP3_FLAVOR >= 3
struct game_info_t {
string name;
unsigned char key2[256];
};
static const game_info_t GAME_INFO[] = {
{ "JKと淫行教師2~痴漢電車編~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0xAD, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00,
0x00, 0xB3, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00,
0x00, 0xB3, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "Soul Link ULTIMATE",
{ 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0xCE, 0x10, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x68, 0x03, 0x4F, 0x68, 0x68,
0x03, 0xDF, 0x68, 0x68, 0x03, 0x7F, 0x68, 0x68, 0x03, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "JKと淫行教師3~万引き少女編~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x39, 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, 0xBB, 0x00, 0x00, 0x00, 0xBF, 0x00, 0x00,
0x00, 0xAD, 0x00, 0x00, 0x00, 0x7D, 0x00, 0x00, 0x00, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "秋空に舞うコンフェティ",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "JKと淫行教師4~なまいきモデル少女編~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0xBC, 0x00, 0x00,
0x00, 0xBD, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "妻交換~あいつのワイフと俺の嫁~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "JKと淫行教師5~借金姉妹編~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00,
0x00, 0x6A, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0xA5, 0x00, 0x00, 0x00, 0x91, 0x00, 0x00,
0x00, 0x5D, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }
},
{ "JKと淫行教師6~ラブラブカップル寝取り編~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x0E, 0x0E, 0x0E, 0x2F, 0x09, 0x09, 0x09, 0x51, 0x09, 0x09, 0x09, 0x4A, 0x14, 0x14,
0x14, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },
},
{ "JKと淫行教師SP~渡る世間はエロ教師ばかり~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0D, 0x00, 0x00, 0x00, 0x43, 0x00, 0x00, 0x00, 0x5E, 0x00, 0x00, 0x05, 0x66, 0x00, 0x00,
0x00, 0x56, 0x00, 0x00, 0x00, 0x2F, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00,
0x00, 0x29, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x64, 0x00, 0x00,
0x8D, 0xF9, 0x00, 0x00, 0xD7, 0xFF, 0x00, 0x00, 0xF4, 0xFF, 0x00, 0x00, 0xFC, 0xFF, 0x00, 0x00,
0xED, 0xFF, 0x00, 0x00, 0xC1, 0xFF, 0x00, 0x00, 0x76, 0xED, 0x00, 0x00, 0x19, 0x70, 0x00, 0x00, },
},
{ "ラブ☆キス",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00,
0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },
},
{ "JKとエロリーマン~純情姪っ子JKをラブホに連れ込んでヤリたい放題~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x09, 0x09, 0x09, 0xC3, 0x00, 0x00,
0x00, 0x8E, 0x00, 0x00, 0x00, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },
},
{ "JKとエロコンビニ店長~アルバイト娘の弱みを握ってヤリたい放題~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x1D, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00,
0x00, 0x2C, 0x00, 0x00, 0x00, 0x2B, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00,
0x00, 0x0A, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, },
},
{ "ワルキューレロマンツェ",
{ 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x4E, 0x42, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE7, 0xF7,
0xFF, 0xFF, 0xD4, 0xEA, 0xFF, 0xFF, 0x9C, 0xB9, 0xF1, 0xFF, 0x30, 0x21, 0x87, 0xFF, 0x21, 0x0A,
0x7B, 0xFF, 0x24, 0x0F, 0x7E, 0xFF, 0x26, 0x11, 0x82, 0xFF, 0x2C, 0x15, 0x8B, 0xFF, 0x34, 0x1A,
0x99, 0xFF, 0x3C, 0x2C, 0xA9, 0xFF, 0x4A, 0x62, 0x80, 0xFF, 0x4D, 0x46, 0x4F, 0xFF, 0x4E, 0x3D,
0x45, 0xFF, 0x4E, 0x3F, 0x47, 0xFF, 0x4B, 0x3B, 0x43, 0xFF, 0x43, 0x34, 0x3B, 0xFF, 0x31, 0x3F,
0x53, 0xFF, 0x36, 0x2F, 0x3C, 0xFF, 0x44, 0x36, 0x3F, 0xFF, 0x70, 0xAC, 0xBF, 0xFF, 0x3C, 0x60,
0x78, 0xFF, 0x3D, 0x3D, 0x4A, 0xFF, 0x60, 0xA4, 0xBE, 0xFF, 0x34, 0x36, 0x47, 0xFF, 0x50, 0x3D,
0x43, 0xFF, 0x4E, 0x3C, 0x43, 0xFF, 0x4C, 0x39, 0x3F, 0xFF, 0x4E, 0x3A, 0x42, 0xFF, 0x41, 0x34,
0x3A, 0xFF, 0x47, 0x36, 0x3A, 0xFF, 0x47, 0x34, 0x37, 0xFF, 0x25, 0x16, 0x45, 0xFF, 0x84, 0x75,
0x9E, 0xFF, 0xE2, 0xDE, 0xDE, 0xFF, 0xE8, 0xE4, 0xF0, 0xFF, 0x3A, 0x26, 0x77, 0xFF, 0x31, 0x23,
0x5E, 0xFF, 0x2F, 0x1E, 0x6F, 0xFF, 0x20, 0x14, 0x42, 0xFF, 0x28, 0x1B, 0x24, 0xFF, 0x2C, 0x1E,
0x23, 0xFF, 0x25, 0x22, 0x31, 0xFF, 0x1A, 0x35, 0x4E, 0xFF, 0x58, 0x9B, 0xB2, 0xFF, 0x7F, 0xB7, },
},
{ "パパラブ~パパとイチャエロしたい娘達と一つ屋根の下で~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0xF9, 0x4F, 0x33, 0x00, 0xF9, 0xD7, 0x33, 0x00,
0xF9, 0xF1, 0x33, 0x00, 0xF9, 0xAA, 0x33, 0x00, 0xF9, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x33, 0x00, 0xF9, 0x29, 0x33, 0x00, 0xF9, 0xF8, 0x30, 0x0E, 0xF9, 0xFF, 0x2B, 0x26, },
},
{ "七つの不思議の終わるとき",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },
},
{ "美少女万華鏡",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x40, 0x40, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x28, 0x42,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2D, 0x29,
0x26, 0x4F, 0x2C, 0x29, 0x29, 0xF8, 0x24, 0x20, 0x3F, 0xED, 0x31, 0x25, 0x67, 0xED, 0x31, 0x2C,
0x5C, 0xED, 0x22, 0x20, 0x21, 0xED, 0x2B, 0x2B, 0x25, 0xED, 0x31, 0x31, 0x31, 0xED, 0x32, 0x32,
0x32, 0xED, 0x31, 0x31, 0x31, 0xED, 0x2C, 0x2C, 0x2C, 0xED, 0x23, 0x23, 0x23, 0xED, 0x23, 0x23,
0x23, 0xED, 0x23, 0x23, 0x23, 0xED, 0x26, 0x26, 0x27, 0xE9, 0x1A, 0x1A, 0x1A, 0xF4, 0x14, 0x15,
0x13, 0xEE, 0x1D, 0x17, 0x23, 0xED, 0x4D, 0x3F, 0x94, 0xED, 0x56, 0x59, 0x92, 0xED, 0xCD, 0xDC,
0xF8, 0xED, 0xDD, 0xEA, 0xFA, 0xED, 0xE3, 0xE9, 0xF9, 0xED, 0xD6, 0xE6, 0xF7, 0xED, 0xCD, 0xE3,
0xF7, 0xED, 0xCD, 0xE3, 0xF7, 0xED, 0xDA, 0xE9, 0xFA, 0xED, 0xA2, 0xAC, 0xB2, 0xED, 0x3F, 0x39,
0x31, 0xED, 0x6A, 0x6A, 0x81, 0xED, 0xDB, 0xE9, 0xFA, 0xED, 0xD9, 0xE7, 0xF7, 0xED, 0x69, 0x72,
0x86, 0xED, 0x4A, 0x4C, 0x4F, 0xED, 0x5C, 0x67, 0x83, 0xED, 0x3F, 0x3F, 0x4D, 0xED, 0x31, 0x2E,
0x2B, 0xED, 0x4D, 0x4D, 0x59, 0xED, 0x88, 0x94, 0xA3, 0xED, 0xAC, 0xBF, 0xF1, 0xED, 0xBE, 0xC7,
0xDB, 0xED, 0xE7, 0xE5, 0xDB, 0xED, 0xA4, 0xB1, 0xC7, 0xED, 0xBB, 0xCD, 0xEA, 0xED, 0xCE, 0xE8,
0xFA, 0xED, 0xCD, 0xE4, 0xFA, 0xED, 0xCC, 0xDD, 0xFA, 0xED, 0xB1, 0xC9, 0xE5, 0xED, 0x78, 0x86, },
},
{ "JKとエロ議員センセイ~旧家のお嬢様JKを愛人にしてヤリたい放題~",
{ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xA8, 0x10,
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1F, 0x06, 0x06, 0x06, 0xEF, 0x07, 0x07, 0x07, 0xFE, 0x01, 0x01, 0x01, 0xFA, 0x01, 0x01,
0x01, 0xDF, 0x02, 0x02, 0x02, 0xFB, 0x00, 0x00, 0x00, 0xF1, 0x00, 0x00, 0x00, 0xE2, 0x00, 0x00,
0x00, 0xCD, 0x07, 0x07, 0x07, 0xFA, 0x00, 0x00, 0x00, 0xEE, 0x00, 0x00, 0x00, 0x90, 0x12, 0x12,
0x12, 0xF8, 0x00, 0x00, 0x00, 0xFB, 0x00, 0x00, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x6D, 0x00, 0x00,
0x00, 0x15, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0xAD, 0x15, 0x15, 0x15, 0xF5, 0x12, 0x12,
0x12, 0xFF, 0x00, 0x00, 0x00, 0xDA, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x79, 0x59, 0x65, 0x66, 0xFF, 0x6E, 0x8D, 0x90, 0xFF, 0x50, 0x5C, 0x5E, 0xFF, 0x4E, 0x5B,
0x5D, 0xFF, 0x75, 0x95, 0x98, 0xFF, 0x57, 0x66, 0x67, 0xFF, 0x4E, 0x5A, 0x5B, 0xFF, 0x45, 0x4C,
0x4D, 0xFF, 0x72, 0x92, 0x95, 0xFF, 0x42, 0x47, 0x48, 0xFF, 0x26, 0x26, 0x26, 0xFF, 0x63, 0x7E, },
},
};
unsigned long GAME_COUNT = sizeof(GAME_INFO) / sizeof(GAME_INFO[0]);
#endif
struct PACKTRL {
unsigned char signature[16]; // "FilePackVer3.0"
unsigned long entry_count;
unsigned long toc_offset;
unsigned long pad;
};
struct PACKENTRY {
unsigned long offset;
unsigned long unknown1;
unsigned long length;
unsigned long original_length;
unsigned long is_compressed;
unsigned long is_obfuscated;
unsigned long hash;
};
// It seems this data is actually an obfuscated+compressed copy of the TOC.
struct HASHHDR {
unsigned char signature[16]; // "HashVer1.3"
unsigned long unknown1; // 256 hash_length?
unsigned long unknown2;
unsigned long unknown3;
unsigned long length; // data length?
};
// Emulate mmx padw instruction
unsigned __int64 padw(unsigned __int64 a, unsigned __int64 b) {
unsigned short* a_words = (unsigned short*) &a;
unsigned short* b_words = (unsigned short*) &b;
unsigned __int64 ret = 0;
unsigned short* r_words = (unsigned short*) &ret;
r_words[0] = a_words[0] + b_words[0];
r_words[1] = a_words[1] + b_words[1];
r_words[2] = a_words[2] + b_words[2];
r_words[3] = a_words[3] + b_words[3];
return ret;
}
unsigned long crc_or_something(unsigned char* buff, unsigned long len) {
unsigned __int64 key = 0;
unsigned __int64 result = 0;
unsigned __int64* p = (unsigned __int64*) buff;
unsigned __int64* end = p + (len / 8);
while (p < end) {
key = padw(key, 0x0307030703070307);
result = padw(result, *p++ ^ key);
}
result ^= (result >> 32);
return (unsigned long) (result & 0xFFFFFFFF);
}
void unobfuscate_data(unsigned char* buff,
unsigned long len,
unsigned long seed) {
unsigned __int64 key = 0xA73C5F9DA73C5F9D;
unsigned long* key_words = (unsigned long*) &key;
unsigned __int64 mutator = (seed + len) ^ 0xFEC9753E;
mutator = (mutator << 32) | mutator;
unsigned __int64* p = (unsigned __int64*) buff;
unsigned __int64* end = p + (len / 8);
while (p < end) {
// Emulate mmx padd instruction
key_words[0] += 0xCE24F523;
key_words[1] += 0xCE24F523;
key ^= mutator;
mutator = *p++ ^= key;
}
}
void unobfuscate_filename(unsigned char* buff,
unsigned long len,
unsigned long seed)
{
unsigned long mutator = seed ^ 0x3E;
unsigned long key = (mutator + len) & 0xFF;
for (unsigned int i = 1; i <= len; i++) {
buff[i - 1] ^= ((i ^ key) & 0xFF) + i;
}
}
void unobfuscate_flavor2(const string& filename,
unsigned char* buff,
unsigned long len,
unsigned long seed,
unsigned char* key_buff,
unsigned long key_len,
unsigned char* key2_buff,
unsigned long key2_len)
{
unsigned long mt_mutator = 0x85F532;
unsigned long mt_seed = 0x33F641;
for (unsigned long j = 0; j < filename.length(); j++) {
mt_mutator += (unsigned char)j * (unsigned char)filename[j];
mt_seed ^= mt_mutator;
}
mt_seed += seed ^ (7 * (len & 0xFFFFFF) + len + mt_mutator + (mt_mutator ^ len ^ 0x8F32DC));
mt_seed = 9 * (mt_seed & 0xFFFFFF);
#if FP3_FLAVOR >= 3
mt_seed ^= 0x453A;
#endif
init_genrand(mt_seed);
mt_xor_state(key_buff, key_len);
mt_xor_state(key2_buff, key2_len);
struct val_t {
union {
unsigned __int64 as_qword;
unsigned long as_dword[2];
unsigned short as_word[4];
unsigned char as_byte[8];
};
};
static const unsigned long TABLE_SIZE = 21;
val_t table[TABLE_SIZE] = { 0 };
for (unsigned long i = 0; i < TABLE_SIZE - 1; i++) {
table[i].as_dword[0] = genrand_int32();
table[i].as_dword[1] = genrand_int32();
}
table[TABLE_SIZE - 1].as_dword[0] = genrand_int32();
table[TABLE_SIZE - 1].as_dword[1] = 0;
val_t mutator;
mutator.as_dword[0] = genrand_int32();
mutator.as_dword[1] = genrand_int32();
unsigned long table_index = genrand_int32() & 0xF;
val_t* p = (val_t*) buff;
val_t* end = p + (len / 8);
while (p < end) {
mutator.as_qword ^= table[table_index].as_qword;
mutator.as_dword[0] += table[table_index].as_dword[0];
mutator.as_dword[1] += table[table_index].as_dword[1];
p->as_qword ^= mutator.as_qword;
for (unsigned long i = 0; i < 8; i++) mutator.as_byte[i] += p->as_byte[i];
mutator.as_qword ^= p->as_qword;
mutator.as_dword[0] <<= 1;
mutator.as_dword[1] <<= 1;
for (unsigned long i = 0; i < 4; i++) mutator.as_word[i] += p->as_word[i];
table_index++;
table_index &= 0xF;
p++;
}
}
struct bpe_hdr_t {
unsigned char signature[4]; // "1PC\xFF"
unsigned char flags;
unsigned char unknown2[3];
unsigned long original_length;
};
static const unsigned char BPE_FLAG_SHORT_LENGTH = 0x01;
struct bpe_pair_t {
unsigned char left;
unsigned char right;
};
// byte pair encoding algorithm
void unbpe(unsigned char* buff,
unsigned long len,
unsigned char* out_buff,
unsigned long out_len)
{
unsigned char* end = buff + len;
bpe_hdr_t* hdr = (bpe_hdr_t*) buff;
buff += sizeof(*hdr);
bpe_pair_t table[256];
//unsigned char stack[4096];
unsigned char stack[4096];
unsigned long stack_len = 0;
while (buff < end) {
// Read/expand literal table
for (unsigned long i = 0; i < 256;) {
unsigned long c = *buff++;
// Range of literals
if (c > 127) {
for (c -= 127; c > 0; c--, i++) {
table[i].left = (unsigned char) i;
}
}
// Pairs of {left, right} unless left is a literal
for (c++; c > 0 && i < 256; c--, i++) {
table[i].left = *buff++;
if (i != table[i].left) {
table[i].right = *buff++;
}
}
}
unsigned long block_len = 0;
// This optional long length is the only difference from the BPE reference
// implementation...
if (hdr->flags & BPE_FLAG_SHORT_LENGTH) {
block_len = *(unsigned short*) buff;
buff += sizeof(unsigned short);
} else {
block_len = *(unsigned long*) buff;
buff += sizeof(unsigned long);
}
// Decompress block
while (block_len || stack_len) {
unsigned char c = 0;
if (stack_len) {
c = stack[--stack_len];
} else {
c = *buff++;
block_len--;
}
if (c == table[c].left) {
*out_buff++ = c;
} else {
stack[stack_len++] = table[c].right;
stack[stack_len++] = table[c].left;
}
}
}
}
struct DPNGHDR {
unsigned char signature[4]; // "DPNG"
unsigned long unknown1;
unsigned long entry_count;
unsigned long width;
unsigned long height;
};
struct DPNGENTRY {
unsigned long offset_x;
unsigned long offset_y;
unsigned long width;
unsigned long height;
unsigned long length;
unsigned long unknown1;
unsigned long unknown2;
};
bool proc_dpng(const string& filename,
unsigned char* buff,
unsigned long len)
{
if (len < 4 || memcmp(buff, "DPNG", 4)) {
return false;
}
string prefix = as::get_file_prefix(filename);
DPNGHDR* hdr = (DPNGHDR*) buff;
buff += sizeof(*hdr);
for (unsigned long i = 0; i < hdr->entry_count; i++) {
DPNGENTRY* entry = (DPNGENTRY*) buff;
buff += sizeof(*entry);
if (entry->length) {
string out_filename = prefix
+ as::stringf("+DPNG%03d+x%dy%d", i, entry->offset_x, entry->offset_y)
+ as::guess_file_extension(buff, entry->length);
as::write_file(out_filename, buff, entry->length);
}
buff += entry->length;
}
return true;
}
#pragma pack(1)
struct ARGBHDR {
unsigned char signature[4]; // "ARGB"
unsigned char signature2[12]; // "SaveData1"?
unsigned char unknown1; // type?
unsigned long rgb_length;
unsigned long msk_length;
};
#pragma pack()
bool proc_argb(const string& filename,
unsigned char* buff,
unsigned long len)
{
if (len < 4 || memcmp(buff, "ARGB", 4)) {
return false;
}
ARGBHDR* hdr = (ARGBHDR*) buff;
unsigned char* rgb_buff = (unsigned char*) (hdr + 1);
unsigned char* msk_buff = rgb_buff + hdr->rgb_length;
string prefix = as::get_file_prefix(filename);
as::write_file(prefix + "+rgb" + as::guess_file_extension(rgb_buff, hdr->rgb_length), rgb_buff, hdr->rgb_length);
as::write_file(prefix + "+msk" + as::guess_file_extension(msk_buff, hdr->msk_length), msk_buff, hdr->msk_length);
return true;
}
int main(int argc, char** argv) {
unsigned char* key2_buff = NULL;
unsigned long key2_len = 0;
#if FP3_FLAVOR == 1
if (argc != 2) {
fprintf(stderr, "exfp3 v1.46 by asmodean\n\n");
fprintf(stderr, "usage: %s <input.pack>\n", argv[0]);
return -1;
}
#else
#if FP3_FLAVOR == 2
if (argc != 3) {
fprintf(stderr, "exfp3 v1.46 by asmodean\n\n");
fprintf(stderr, "usage: %s <input.pack> <key.fkey>\n", argv[0]);
return -1;
}
#else
if (argc != 4) {
fprintf(stderr, "exfp3 v1.46 by asmodean\n\n");
fprintf(stderr, "usage: %s <input.pack> <key.fkey> <game index>\n\n", argv[0]);
for (unsigned long i = 0; i < GAME_COUNT; i++) {
fprintf(stderr, "\tgame index = %d -> %s\n", i, GAME_INFO[i].name.c_str());
}
return -1;
}
unsigned long game_index = atol(argv[3]);
if (game_index >= GAME_COUNT) {
fprintf(stderr, "Unknown game index: %d\n", game_index);
return -1;
}
game_info_t game_info = GAME_INFO[game_index];
key2_len = sizeof(game_info.key2);
key2_buff = game_info.key2;
#endif
string key_filename(argv[2]);
int key_fd = as::open_or_die(key_filename, O_RDONLY | O_BINARY);
unsigned long key_len = as::get_file_size(key_fd);
unsigned char* key_buff = new unsigned char[key_len];
read(key_fd, key_buff, key_len);
close(key_fd);
#endif
string in_filename(argv[1]);
int fd = as::open_or_die(in_filename, O_RDONLY | O_BINARY);
unsigned long file_len = as::get_file_size(fd);
PACKTRL trl;
_lseeki64(fd, -(int)sizeof(trl), SEEK_END);
read(fd, &trl, sizeof(trl));
unsigned long toc_len = file_len - sizeof(trl) - trl.toc_offset;
unsigned char* toc_buff = new unsigned char[toc_len];
_lseeki64(fd, trl.toc_offset, SEEK_SET);
read(fd, toc_buff, toc_len);
unsigned long i = 0;
unsigned char* p = toc_buff;
// Figure out how much data is TOC entries..
for (i = 0; i < trl.entry_count; i++) {
unsigned short filename_len = *(unsigned short*) p;
p += 2 + filename_len + sizeof(PACKENTRY);
}
// Compute the obfuscation seed from the CRC(?) of some hash data.
HASHHDR* hashhdr = (HASHHDR*) p;
unsigned char* hash_bytes = p + sizeof(*hashhdr) + hashhdr->length + 36;
unsigned long seed = crc_or_something(hash_bytes, 256) & 0x0FFFFFFF;
p = toc_buff;
for (i = 0; i < trl.entry_count; i++) {
unsigned short filename_len = *(unsigned short*) p;
p += 2;
unobfuscate_filename(p, filename_len, seed);
string filename((char*)p, filename_len);
p += filename_len;
PACKENTRY* entry = (PACKENTRY*) p;
p += sizeof(*entry);
unsigned long len = entry->length;
unsigned char* buff = new unsigned char[len];
_lseeki64(fd, entry->offset, SEEK_SET);
read(fd, buff, len);
if (entry->is_obfuscated) {
#if FP3_FLAVOR == 1
unobfuscate_data(buff, len, seed);
#else
unobfuscate_flavor2(filename, buff, len, seed, key_buff, key_len, key2_buff, key2_len);
#endif
}
unsigned long out_len = entry->original_length;
unsigned char* out_buff = new unsigned char[out_len];
if (entry->is_compressed) {
unbpe(buff, len, out_buff, out_len);
} else {
memcpy(out_buff, buff, out_len);
}
#if FP3_FLAVOR != 1
if (filename.find("pack_keyfile") != string::npos) {
delete [] key_buff;
key_len = out_len;
key_buff = new unsigned char[key_len];
memcpy(key_buff, out_buff, key_len);
}
#endif
// Tenshi no Tamago has some pointless ARGB prefixed bitmaps
unsigned char* data_buff = out_buff;
unsigned long data_len = out_len;
as::make_path(filename);
if (!proc_dpng(filename, data_buff, data_len) && !proc_argb(filename, data_buff, data_len)) {
as::write_file(filename, data_buff, data_len);
}
delete [] out_buff;
delete [] buff;
}
delete [] toc_buff;
close(fd);
return 0;
}