Blowfish

Doubts, help and support about QuickBMS and other game research tools
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Blowfish

Post by chrrox »

How would i use blowfish in quickbms if I have

Code: Select all

P  - FA 1A D2 70 B2 3B A6 40 E8 8E E7 F5 1C C9 C0 C1 A6 C6 BB 1F 2B 90 25 68 2A 7D 30 FB 3B DA 64 F0
S0 - C4 A6 80 2D 24 BD 0B 49 79 A4 86 C4 62 DA 98 9C D5 4F 88 16 36 5B C0 63 5A 8A 49 9F F4 21 20 1C
S1 - 5D 2B CB 56 85 02 00 B2 ED EC D2 80 A8 3B 6F 48 9E 2D E5 77 1E 60 9F AB A8 A5 C4 81 62 06 CB 7A
S2 - 8B 3E 4A D9 8E 68 D0 77 C6 A5 80 E0 CE 5B 8B EA 47 66 68 CC 23 03 A9 84 5D 8E C3 47 A4 03 5F B8
S3 - 23 DB 15 B6 CA C9 F0 BF 91 02 DA D4 E3 56 9A 32 08 84 1F 38 E8 0B B3 7F 8A 0D 9D 70 B7 77 79 F6


described here
https://en.wikipedia.org/wiki/Blowfish_(cipher)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Blowfish

Post by aluigi »

In short I guess you mean that you don't have the key but just the content of the blowfish context after the key has been set.

In that case you may just copy&paste the whole blowfish source code in C as part of the tcc, something like:

Code: Select all

set MEMORY_FILE10 string "
copy&paste
"
calldll MEMORY_FILE10 "Blowfish_Decrypt" "tcc" RET MEMORY_FILE SIZE

Obviously it takes some time, better if you get the original key.