Do you know a tool, link or website for working on a specific game files or to help game research? Let's collect them here!
			
		
		
			
				
																			
								Ekey 							 
									
		Posts:  1383Joined:  Sat Aug 09, 2014 2:34 pm 
		
						
					
													
							
						
									
						Post 
					 
								by Ekey  Mon Jul 04, 2016 5:28 pm 
			
			
			
			
			
			Part of code for decrypt RAS archives from game Max Payne 1/2 (Android / PC). Maybe usefull for someone 
Code: Select all 
struct RASHeaderCode: Select all 
void DecryptWithSeed(unsigned char *pBuffer, int dwSize, int dwSeed) 
		 
				
		
		 
	 
				
		
		
			
				
																			
								aluigi 							 
						Site Admin 			
		Posts:  12984Joined:  Wed Jul 30, 2014 9:32 pm 
		
						
					
													
							
						
									
						Post 
					 
								by aluigi  Tue Jul 05, 2016 3:12 pm 
			
			
			
			
			
			Well done:
http://aluigi.org/bms/max_payne_ras.bms The header is visible but now the last step will be to undertand that decrypted data that probably has a second pass of encryption or it's encrypted using a different seed.
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Ekey 							 
									
		Posts:  1383Joined:  Sat Aug 09, 2014 2:34 pm 
		
						
					
													
							
						
									
						Post 
					 
								by Ekey  Tue Jul 05, 2016 6:30 pm 
			
			
			
			
			
			Here my test tool for decrypt header and file table + sample of archive inside. In the fact header must be 0x2C bytes and encrypted only 0x24 bytes from 0x8 position.
Edited: Attached variant 2 
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								aluigi 							 
						Site Admin 			
		Posts:  12984Joined:  Wed Jul 30, 2014 9:32 pm 
		
						
					
													
							
						
									
						Post 
					 
								by aluigi  Tue Jul 05, 2016 10:37 pm 
			
			
			
			
			
			Script 0.2, complete extraction 
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Ekey 							 
									
		Posts:  1383Joined:  Sat Aug 09, 2014 2:34 pm 
		
						
					
													
							
						
									
						Post 
					 
								by Ekey  Tue Jul 05, 2016 11:30 pm 
			
			
			
			
			
			Cool