Edit: I was wrong, I found the following: https://en.wikipedia.org/wiki/Computer_Programs_Directive
> (Art. 5). The legal owner of a program is assumed to have a licence to create any copies necessary to use the program and to alter the program within its intended purpose (e.g. for error correction). The legal owner may also make a back-up copy for his or her personal use. The program may also be decompiled if this is necessary to ensure it operates with another program or device (Art. 6), but the results of the decompilation may not be used for any other purpose without infringing the copyright in the program.