Good afternoon, everybody. Hello from Russia. Well, my name is Vitaly Kamlyuk, and I'm a senior virus analyst. I work at Kaspersky Lab. Well, what I do is deal with viruses and hacker attacks. So, my presentation is going to be kind of entertaining. I hope so. And I'm going to show you some quite advanced techniques of working in Windows system that can help you to fight malware on your own. So, let's begin. Well, these are five reasons of why you need to know how to fight malware on your own. That might be reasons for users. Like, you know, users can touch 100... 100 of percent of protection themselves if they use antivirus solutions. And it protects them for 99 percent. And 1 percent they can add themselves by using their own knowledge. And they can be prepared for attacks. Well, they don't need to maybe download the freshest software because they are prepared for attacks. And they can, well, fight with the attacks. And with viruses on their own. Also, they maintain confidentiality. So, they do not need to send their very important files which can contain some personal information to any, well, virus labs for analysis. And the very important thing is the ability to restore your system here and now. When you don't have any other third-party tools, you can restore your system using just only Windows. Windows Tools. And that's what I'm going to talk about. How to restore your system. How to fight malware using only Windows. No third-party tools. And imagine that you don't have any internet connection, so you cannot download anything. All you have is your, you know, pure Windows system and nothing else. Well, and sometimes time really matters. And if you do not react immediately. . .. system, lose your data. And time is very, very important. So, I don't want to, well, say a lot, well, to tell a lot of abstract things. I want to show you several examples. Well, let's see what's available on Windows XP. Well, it's system tools like Explorer that you all know, Task Manager, Registry Editor, and Signature Verifier. Well, we have also some console utils like NetStat, Task List, Reg, Util, and Expand. We have interpreters like Batch Interpreter or JavaScript with Visual Basic script. Well, there are some text editors like Notepad, WordPad, Edit, and AdLin that came from DOS times. Well, the only binary editor... Editing tool available on Windows currently is DebugExec tool. That is not the specialized tool for editing binary files, but that's the only way how you can create, how you can view and create binary files. Well, that's kind of dirty hack on Windows, but still this tool works and it is part of Windows. Well, I'll talk about it a little bit later because Microsoft decided to remove this tool from Windows. Well, also you have Symbolic Debugger. NT Symbolic Debugger, it is a part of operating system starting from the NT for the flow. And you have all the repositories that you can use. Let's go further. Let's see an example. Well, the example is email worm Win32 Veresov. This is an email worm that was detected last year. And, it is quite... I'll try to go through it. you know kind of very fast mutating worm that produced more than 400 of modifications which is more than 25,000 of files so for one year we have received these number of files well we suspect that it mutates on the server side so there is no mechanism in the worm that that allows the worm to mutate in itself and it downloads additional models from the internet and hides itself from task manager let's see how the usual user can infect his system well he just need to open a file that looks like a text message well by clicking it of course it is application we just don't see the extension and usual user doesn't also well what he sees in the open file is kind of trash that makes no sense but if you will be attentive you will look at the title of this window it is 2tmp and we opened slightly different file and this file 2tmp is created in the same directory it's kind of a a I know anomalous activity so the attentive user will try to to maybe download some antivirus solution for example here it is KAV which is Kaspersky antivirus well if you even try to do that he will see the following picture he clicks on the application shortcut but nothing happens well the user might think that there may be a error or mistake some some kind of bug in the installation package or maybe his system doesn't satisfy the system requirements but let's see if the other side of windows by the way is there is there any microsoft employees in this room please raise your hands come on no microsoft employees good because I'm going to show you the back stage of windows again let's do that what happens when user clicks the shortcut well all the messages everything is processed by explorer except process and it constantly execute some code handling a input messages coming from mouse and keyboard well what explorers it does a is preparing a new application for launching it prepares the environment says they all the necessary settings and then launches the calls they shall execute X function to create a new instance of process so here it goes this is the installation and a process the first thing seen the system does a is loading a necessary libraries into the address space of the process and among those libraries is there is a malicious one that first decrypts strings in it and here we go here we got string kav which corresponds to Kaspersky anti-virus and if it checks that it has been in the address space of kav process it just calls exit process function to terminate the application so this was the process and now we are going to do the next step and we will see you in the next What is happening on the user system? What can we do with it? How to help user to install the antivirus? We have to inspect what happened. The first thing we should do is carefully check the access date and time of the malicious file. We will need this information a little bit later. After that, we have to find all the files that were created or accessed today. So we check that. We select searching for all files by date, specify the access date, set it for today, and check the option. To search hidden files and folders. It is necessary. I think you understand why. So when we get the list, it's kind of a very, very long list. And the first thing we should do is to sort it by creation date. And after this, we can see the list of files created after opening the malicious application. And here are the files. You can see this original message file. And some more files like which copied itself to C Windows folder. And it is also an application. And it has the same size as the source one. And it is placed in system folder. So it can show us that we launched the Trojan application or malicious one. The first thing we can try to do is to delete this application from Windows. So from Windows folder. But we got access denied message. So this file is locked by some other application or maybe it is just running on our system. If you check the list of processes in Windows task manager, we cannot find this process. What does it mean? That may be the reason, that may be caused by active rootkit present on our system or just by locking by another process. So if we get the alternative list of the processes, we can see that is running. But we couldn't find it in task manager. So it got to be a rootkit working on our system. Well, to terminate the process, we can use the task queue command, which is also a part of Windows XP system. Not many people knows about it. I don't know why. Well we terminate the process. And after that we can try to delete, we can try deleting additional files coming with this Trojan. E1 DLL. We try to delete it and get the same message, access denied. So the DLL is locked by some other process or it can be loaded into the other space of the process. Let's try to check it. We use the same command task list. Specify the particular options for getting the list of the processes, which loaded E1 DLL. And here is the list. You can see here. Among the other DLLs, E1 DLL. It is already loaded in our task list that we use for getting this information. So it must be loaded into every processes that is starting in our system. So it must be loaded into every processes that is starting in our system. So to find out how this malicious file does this, of course we should check the registry. We open the registry editor and try to find this E1 DLL string. And here it goes. The key is hq-vacuum-machine-software-microsoft-windows-inti-current-version-windows-app-init-dll. This key is used by operating system when a new instance of the process is created. Well. The system loads all the DLLs listed in this parameter into other space of the process being created. Okay. I guess all of you must know how to fight this malicious application right now. Well, please, raise your hands who knows what to do in order to remove this application, in order to remove this application. You can see the library and executable. Please, raise your hands. Okay, very, very few. I showed everything for these. Okay, let's see. Well, it's very easy, really. Well, all we have to do is just to prevent this E1 DLL from being loaded into every process. So to do that, we just need to open registry editor again. Okay. and modify registry settings. Nothing more. So, we just open this key and remove the value. We also need to check where the self-exert, well, where it changed the registry values in order to start after system reboot. So, we have to search the registry for this self-exert value and to remove it as well. After that, we can easily reboot our system and check if the malicious application is still present. It's that easy. I guess everybody, everyone is present here will find it... will find it... will find this way himself when he met this malicious application on his system. Well, when we reboot the system, to check if everything is okay, we can just run... try to run the antivirus installation again. And here it goes. Everything seems to be okay. So, after that we can automate removal of malicious files using antivirus or just delete the files ourselves. Well, we have published this information on our site, which is www.viruslist.com. And these instructions were published for users who cannot install the antivirus solution. So, the malware creator read this message as well and he saw that it is too easy for user to prevent, to stop his malware on his system. So, he tried to create a kind of resistance to manual removal. Let's see how it works. So, when the user deletes the value from the registry and reboots his system, he's trying to run the antivirus solution. And he gets nothing. Seems like the malicious application continues to work. On his system. Well, let's check first the list of the processes. With the task list command we can do that easily. And we did... We do not find the surface of the process. But E1DLL might be still working in the address space of each process started in the system. Let's check the registry. Yeah, we got it. Up in E1DLL's value contains E1DLL. We try to delete it and check it again. Open the registry editor. And what we see? The value is returned. So, what... Let's try to analyze what happened. And what can we do? The first thing we notice is that malware restores the registry values when the application terminates. When the E1DLL is maybe unloaded from the edit process. And there are set of the processes running and closing from time to time on our system. But the routine that restores the value is called several times. But the value is restored only once if it is not present in that key. So, it looks like the malware uses one of the following functions that are used for searching substring in the specified string. So, what can we do with this information? We can hack the malware removal resistance mechanism. Please, those of you who know how to hack it based on this information, please, raise your hands. Okay, not very, very many. And let's see how to do that. It is very easy. It is based on the... Well, the way malware checks for... the value. It checks for presence of substring in this text. And what we have to do is to add some... some trash to this string. Well, when the malware calls this function of searching for substring, the function returns true. Yes, this E1DLL is really present in this value. But when the system is trying to load this module, it couldn't find this module. It can't find this module and nothing is loaded. So, we can easily... After that, reboot our system and, well, delete the malicious files. Okay, let's talk about the other example, which is TrojanWin32AgentACH, which was made in Japan. And it is detected... It was detected on December of 2006. Well, after running, it silently removes itself. And it suspends... It's destructive functionality till the next Friday. After that, it disables pressing Ctrl-Alt-Delete, disables running an executable file from shell, disables system shutdown and reboot functions. And if you try to hard reboot, it disables loading your system in any available mode. So, let's see how it works. Well, the infecting of the system. It's quite obvious. As usual, you receive the file in the mail attachment or just find it in the network. You launch the application, it disappears. Of course, it looks like a Trojan activity, so you might be... You have to be very attentive. And when you see such kind of things, please check everything. Well, how infection symptoms look like? Well, we had tried to launch our favorite applications, maybe. Outlook Express doesn't run. Windows... Windows Media Player doesn't run. Remote Assistant doesn't run. When we tried to launch Notepad using Start Run menu, nothing happens. The same with Registry Editor. Well, this is the case when time really matters. Because if you try to postpone the curing routines, curing procedures, you will lose your system. So, you have to do something immediately. If you reboot your system, you will lose it. That is the result of hard reset. You will get this picture on your screen, and nothing will boot. No save mode, no any other way. So, all you can do is just using some, you know, maybe live CDs if you got one. But if you have only Windows system and nothing else, you can't do anything. So, you have to do the curing... to apply curing procedures immediately. Let's see what we can do. Let's inspect our system. Well, Task Manager is still available, despite of the other applications cannot be run. We can see the alien processes in the process list. Well, My Computer Explorer is still available, and we can run Internet Explorer. Well, but... One more thing. Find Files is working. So, the first thing we must do is just to find the alien files on our system. And here they are, in Windows system 32 folder, as usual for Trojans and malicious applications. So, we have found both files, but we must access the registry editor to find what has happened. It disallows us running registry editor in usual way, so we will use a kind of unusual one. We will use Internet Explorer for launching a new process. Here is a little simple script written in JavaScript for launching a new process from the address bar of Internet Explorer. It is very easy. It creates ActiveX object of wscript.shell and calls one of its functions, which is exec function. Here we go. We launch the registry editor. Now we must search for the files, the name of the files that we have found. And here they are. The path is hkey classes root.exe file shell open command. If we open the neighboring value, which is runs command, we see that it is not modified. So, it tells us that we still can launch any process on our system, but in an alternative way, not using open, but using runs, specifying the current user and the application we launch. Then we must find the second file executable. And we find it in the hkey-local-machine software Microsoft Windows NT current version WinLogon UI host value, which is used by operating system when you boot your system. So, this malware modified this value. And when you reboot the system, system uses this value to launch this process. And if the process belongs to a system one, it will continue booting your system. But in this case, it will... the booting of system will be stopped, will be prevented. So, that's the way how this trojan works. Well, how to remove it? It's very easy, I guess, when you got all this information, when you did the inspecting. Okay, we just need to run the registry editor using this way that I showed before. We run it, and we must just restore all the values that were modified, that we have found. Well, I think that we will not pay so much attention to it, because it's quite obvious. We just need to restore the original values, which are not that complicated, and you might know all of them. So, let's go further. Control check is already... It's obvious, well, it really works. We will skip it, because of lack of time. Well, virus win32-suburbs-a. This is the place in my presentation where I must wear this cap. Crazy. It is written here. So, here is the most interesting part of my presentation. Here it starts. Well, it is an executable virus, suburbs. It was detected last year, and the virus infects executable files located on hard disk partition, which is selected at random. So, it infects random files. It injects onto every process that has visible window. It makes screenshots of running of opened windows, and it sends them to the Internet. So, this is all about this virus. Let's see what we can do in order to cure the executable virus on our own, from scratch. The first thing we must do is to get the code of the virus. To do that, we must use ntsdo2. Let us assume that we have this infected application. It is Kodak Image Xe, which is part of Windows. Well, it is infected. We know that. Let us get the code of the virus from this application. We use ntsd2, which is part of Windows, to get the assembly code of the application. The first thing we must do is to view the IP header. We must specify the base address of the application. Check the address of the entry point. And after that, unassemble a piece of code starting from the entry point. Usually, viruses put their code right there. The same is with Ceburex virus. Here is the assembly listing. But we have this. Instead of names of API functions, we get only the offsets of addresses of these functions. In order to get more or less readable code, we must patch it and put the names of the API functions. I will show you how to do that. We use the address which is used for call operation. We can check what is placed at that address. And this is getModuleFileNameA API function. After that, we apply a small patch to the place where this function is called. And that's all. Print the unassembled listing. And we can see here that we have now this getModuleFileNameA name. It's quite readable. The same can be done with other calls. But after all, we get the code listing. It's not that large, as you see it. Only maybe five screens. Right? And this is all the code that you need for analysis. After analyzing the code, you can understand, you can see the clear picture of what this virus does. Sorry for my English. Well, by analyzing the source code, we can reveal the following picture. Well, the virus uses the source file. It cuts the header of source file, compresses it, and stores at the end of the file. It replaces the header of source file with its own header and with its own virus section, which contains executable code. Also, it attaches compressed virus module in the end of the file. So, in order to cure the infected file, we have to remove all these pieces of code and pieces of data which were added by the virus. But after that, is the most difficult thing. We have to decompress the chunk of source file and put it in the beginning. Well, in the case of SubUrqs, we are quite lucky because it uses the algorithm of packing CAP files. And Microsoft operating system includes the tool for decompressing these CAP files that we will use. But to create the solution, our own small, tiny antivirus for curing these files, we have to build our own PE application, PE file. Well, it will be quite obvious. It will contain only PE header and one section. Well, in the section, there should be placed import directory table, import lookup table, and import address table. This is obligatory. Well, also there must be import names, which are the names of API functions that we will use. There will be some piece of user data and user code, which we will create right now. Okay. Let's see how it looks like programming the pure machine code in Notepad. First we have to do is to plan our actions. Here is the short plan. Zero field work area, create import list, create import tables, prepare space for our variables, create user code, relocate user code, create PE header, and write to file. That's all. That's easy, right? Well, the second thing we must just put as notes in Notepad is the map of the memory that we use for our solution. In order not to get, you know, messed in all of these memory addresses, we have to mark every space that we use. Something is for PE header, some for work area, the space for import headers, tables, and so on. Some space for user variables, and, of course, for the code. Well, let's start. Let the show begin. This is a scenario, actually, for DebugExe2, which is part of Windows system, I repeat. So this is the coding in Hex. We just build the import tables. We set our variables, the initial values, and here go the user code. This is machine code in Hex. Well, it's not that difficult, really, and I coded it myself in Notepad, and all you have to remember is maybe a dozen of opcodes. Like conditional jumps, the calls of the functions, and pushing parameters and popping them from the stack. And if you even forgot the opcode, you can always use this in-TSD tool to assemble or disassemble the code. So you can get the opcodes just remembering how they sound in assembler. I used not more than ten different opcodes here in this code. So what we do is open the file, cut and remove the infected parts, and extract those parts, that part that was compressed by the virus. Okay, let's save now this file. But before we have to remove our comments. They were just useful for creation of this file. We save it as a text file, and after that the magic's in converting the text file to executable. We just call debug, redirecting the input from this text file. And that's all. We got some errors here because of our comments, but it doesn't matter because the file is created. It is actually a .bin file. You see cure.bin here. Three kilobytes size. This is the smallest antivirus solution I've ever seen. After that we rename this .bin file to exec and execute it. Oh, not really execute it because it doesn't contain the decompressing routine. So we now have to build another file for calling this decompression routine. Well, we have to build one more file, which is batch file. What we do here is copy our source file that was infected to file.in. Call our current solution to remove the infected parts of the file and to extract compressed one. If we extract compressed one, there will be a file tmp.part1.cap. If it is not found in this directory, that means that file, the original file, was not infected. So we have a check here in order not to cure not infected file. So if the file is extracted, we just call the expand.util that extracts this cap file into our temporary file. This is our temporary bin file, which will be used further. After that, we glue two parts of the file and get the clean executable. Okay, let's save it and run. Here we go. Here are our files. We just run the batch file and execute and stop. Here it is. We get codecimage.exe.clean which differs from the original infected files by 30 kilobytes. So the infected part took 30 kilobytes. And this application, this new file, is clean and ready to run. Let's check it. Well, it runs okay, but, oh, oh, oh, sorry. It runs okay. It just requires some additional DLLs while running, while being run. So it just output this message box. Well, let's see a system evolution of Microsoft operating systems. Well, as for Microsoft systems, well, Microsoft included more and more utilities in their newer operating systems, maybe for compatibility issues. But as for Vista, here we got different picture because several very useful utils for such kind of hacks, maybe, were removed. Such utils as NTSD and DebugExcel were removed from Windows Vista. And, you know, the number of useful utilities in Windows Vista is lower than in Windows XP. And as for Unix, it was always based on tools. And there is a great number of tools that can be used for creating your custom solution. So as for Vista, we had a set picture here. But what can be done on Vista? Vista includes Microsoft.NET as a part of operating system. And this technology can be used for our needs. Well, the problem with Microsoft.NET is documentation. It is not included into operating system as an opposite to, you know, main pages in Unix. So we have to do something. And what we can do is use this .NET reflection mechanism. It allows us to browse the classes, to browse the libraries, and to see the members of the classes. And it is everything that we need. For example, I need for creating any application on .NET. So, we build this .txt file, and we call compiler of C Sharp, which is part of Windows Vista. And after that, we call our application, specifying the necessary class that we are interested in. So, we can browse the framework. Here it is, system.io.file. Here are the file functions. The members of class that is devoted to working with files. And we can see not only the names of the methods, but the parameters and the types and the return types of functions. And this is enough for creating any custom application without documentation. Well, let me show you examples of using this .NET for creating some custom solutions from scratch. Well, it is very interesting to sniff mobile communication. Well, the other thing we can do is to analyze what Windows Network Monitor says. It is a part of Task Manager. And it is not enough. We sometimes need to cache DNS requests, cache HTTP requests, and even implement our own IP packet filter because it is not included in Windows. It is very useful to track, to trace downloaders or vectors that are used for building, for creating zombie networks. Well, let's see what we can find looking at the Trojan Downloader. Let us assume that this we have a Trojan Downloader application running, which is called malware.exe. We know that it tries to download something, but we do not know what exactly and what server it uses. Let us assume that we have located the file. And now let's try to see what can we do with network communication. Well, I used Microsoft Toolback Adapter here. If the network is unavailable, you can use this adapter for your network experiments. So, what we do is set DNS server IP address to our local host IP address. After that, we have to build a kind of listener on our local system, which will listen for any connections to the port 53, which is DNS service port. And we will output all the data coming to this port. Here is it. One screen lens. Listen to new packets in the loop and output every incoming data. That's it. Easy, right? You can do that, right? Well, let's compile our source. To do that, we must specify in path environment variable the correct path to the framework binaries. So we do that with set command. After that, we run the compiler. Got needs for any incoming DNS requests and prints to the console. Here we go. Malware tries to send DNS requests. It tries to find vpad host, which is used for web proxy autodetection. After that, it tries to connect to the target server, which is www.wood-co.com. Here is it. We got the address of the server, which the malware is trying to connect we must fool malware again. We open the hosts file and add a new string there. We specify our local IP address and this name of the host. DNS request will be not used because we have a record in our hosts file. The malware will try to connect to this web server. Now we have to build this web sniffing solution that will open on our local host the port of AT and we will print all the requests. We do the same, just compile this application and run it. By the way, before running we must terminate the downloader if it has any delays in it. So we must rerun it. We start our web sniffer, run the server. Here is the request. Get LDR, index PHP, blah, blah, blah. And one more useful thing, it uses Microsoft bits service. It is a part of operating system and it uses DNS. But it is not enough because just imagine if the malware doesn't use DNS at all. It has, for example, hard coded IP addresses in the source. And it doesn't try to search for any names. So we must use, in this case, total IP packet filtering. Well, we will fly for a while. This is how operation system can be imagined. The columns are the processes. Here are the familiar names. SVC hosts, services and any other. And we get malware running in our system. Well, every process consists of modules and they can use any communication interfaces in are marked DLLs which are used by the process. This is how operating system can look from inside. Well, every process is based on system libraries which are kernel32dll. It can be user32dll and adwp32dll which are parts of operating system. And kernel32, you know, it's kernel module. It's a kernel of operation system. Well, when the malware is trying to connect somewhere, it generates IP packet which will be sent to the network. So, the usual way it generates packet and sends to the LAN trying to get the content, we must filter all packets that are going out from our system. And we must implement, we must build our own process that will help with it. I called it APXA. It is a small application, very, very simple. This process will help us to do that. It will happen like this. When the malware generates new IP packet and sends it to the network, our application will build a packet filter and redirect the IP packet. This IP packet will come to our application and it will absorb it like bloop and analyze it. Let's see how it looks in our usual way in the operating system. Let's check this example. Backdoor is used to connect to and we create this source code for our application . We also created a web txt file. It is the same web sniffer. We will use it. We check the network activity. It is 0 level. After running malware.exe, it is above 0. Something is happening on the network. To trace it, we must compile our application, build and compile. It is 9 kilobytes size, as you see. Not that big, but not that small. Let's compile. We compile the source code. Some error. We have to specify unsafe code. that, we run our application and wait for packets. Here is 0. But in order to fool the malware, we must specify the gateway because the packets are sent to the gateway. The packets are for any host that is out of our LAN. We specify the IP address of the gateway, the same as our local IP. Here we get a packet of your market right now. That is for a host that is out of our LAN. And the port is AT, which is web server. So after that, we can use the web server emulation and to listen to incoming packets. Specify the IP address to the one that is needed for malware and sniff for requests. I will skip it because we have a lot of time. There are more interesting things. Some advanced techniques. How to view P header, ways of terminating alternative terminating process and so on. To view a P header, you need to use NTSD tool. Specify the path to the target file, locate image base after running this tool, and use DH command to print the header. Here is how it looks like. We can use task manager, task list, application, which is part of operating system, which helps to communicate with WMI interface directly. We can use NTSD to attach the debugger to running process and to invoke kill function to terminate the list like utility, but we can use existing solutions like queue process, MSN432, and performance monitor. I will show you the most interesting ones. Task list plus task queue is obvious. WMI plus WSH. This is actually JavaScript small sources that can be used. We create an application in JavaScript that contain only two lines, and it is enough for getting the list of the processes and to kill the specified process. I hope. There in the folder is my presentation, so you can check everything on your systems. Okay, I will skip it because we don't have much time. Here is one more interesting way, using WBEM test to kill. We just use start, run, WBEM, test. Here we go. This is application which is a part of Windows XP and Windows, yes, only Windows XP. It's not a part of Windows 2000. We connect to repository and specify SQL-like request to find the necessary process. It is select all from Win32 processes, process where, name, like. We want to terminate notepad application. Here we go. We get the list with only one item. Then we must copy the path of the object in the repository and we will use it later. Copy. Let's execute method of this object. We click the button execute method. Specify the object. Just paste what we copied. Here we go. Here is the object and we call the method. Terminate. Execute the method and notepad disappears. This is it. Let's see what we TSD, I will skip it because it's quite obvious. We just need to attach to the running process and queue it. I want to machine code. We can implement it and here is the source code. It's very, very small for queueing the process by its speed. But to get the speed, we must use some external other tools which are actually parts of operating system. There is a tool queue process which outpads the list of the processes with speeds. The second way is to use MS info 32, the tool which can tell us a lot about our operating system. We can find the list of the running processes in running tasks section. You can find our process . Here is the PID 2008. And the most interesting and tricky method is to use performance counter to get the PID. Well, it's very unusual, even for me. That's why I call it crazy sometimes. Well, we run the performance monitor, remove any existing counters. Come on, get us OPC, sorry. We remove the counters and add a new one. Well, I don't know why, but Microsoft included a lot of different counters and different objects into performance monitor. They're, you know, sometimes they're quite silly like this one, the process with performance counter for process ID. Well, the process ID never changes during the running one application. We can dump any process on Windows system. To do that, we must use familiar tool in TSD. Well, I guess I don't have enough time to show all this. I have to all the data that is present now in the process memory. But unfortunately, in TSD application included in Windows XP is quite old, and it doesn't allow us to dump it directly. So, we have to use the log feature of in TSD. We have to log all the output of in TSD and save it to a text file. And after that, transform our text file into a binary using the debug and debug tool. That's scenario. Here's one demonstration of compressing, of packing the notepad with UPX and dumping it after that. Well, it works. If you want to use what we need to do is just grab all sequences of bytes from a given file that form a string consisting of three or more ASCII functions. which makes very significant changes to system registry and system policies. We don't have, for example, file menu in this Internet Explorer window. Here is our start menu. We cannot run command prompt. It is disabled by our administrator. We cannot run, of course, registry editor. But what we can run is notepad. This is enough. We are kind of notepad hackers, right? Well, we open notepad and run But to enable it, we can use reg.exe tool. To do that, we must specify some parameters. And to be able to do that, we have to create a shortcut to reg.exe and specify these parameters. These parameters tell the system, tell the reg.exe file application to remove disable registry tools value from the registry. Well, we just run this shortcut and this value is removed. After that, we can run the editor. So, after that, it is easy. You can delete the values from the registry that you already know, that you are familiar to, some system policies. But if you do that, have to use this jscript file that I showed you before. So, here is a demonstration of it that you can watch on your own on the CD. And you are ready actually to be in attack. You can preserve your confidentiality and you can restore your system here and now. You know why time matters, because you can lose your data if you postpone the procedures. Well, the questions can be asked in room 109 after my presentation. So, may the frost be with you. Thank you very much.