[Nokia Lumia 520 ROMs, Kernels, Recoveries, & Other] x2wolf:
Tried it also.

Flash error. Error:0x0004 :(

below are details when I try to flash using thor2.

C:\Program Files (x86)\Microsoft Care Suite\Windows Device Recovery Tool>thor2 -mode uefiflash -ffufile C:\Lumia\ffu.ffu
THOR2 1.8.2.18
Built for Windows @ 13:36:46 Jun 16 2015
Thor2 is running on Windows of version 6.2
thor2 -mode uefiflash -ffufile C:\Lumia\ffu.ffu
Process started Sun Jan 22 10:53:53 2017
Logging to file C:\Users\Saif\AppData\Local\Temp\thor2_win_20170122105353_ThreadId-6800.log
Debugging enabled for uefiflash

Initiating FFU flash operation
WinUSB in use.
isDeviceInNcsdMode
isDeviceInNcsdMode is false
Device mode 6 Uefi mode
[THOR2_flash_state] Pre-programming operations
Disable timeouts
Get flashing parameters
Lumia Flash detected
Protocol version 1.15 Implementation version 1.28
Size of one transfer is 2363392
Size of buffer is 2359296
Number of eMMC sectors: 15269888
Platform ID of device: Nokia.MSM8227.P6036.1.2
Async protocol version: 01
Security info:
Platform secure boot enabled
Secure FFU enabled
JTAG eFuse blown
RDC not found
Authentication not done
UEFI secure boot enabled
SHK enabled
Device supports FFU protocols: 0019
[THOR2_flash_state] Device programming started
Using secure flash method
CoreProgrammer version 2015.06.10.001.
Start programming signed ffu file C:\Lumia\ffu.ffu
FfuReader version is 2015061501
Send FlashApp write parameter: 0x4d544f00
Perform handshake with UEFI...
Flash app: Protocol Version 1.15 Implementation Version 1.28
DevicePlatformInfo: Nokia.MSM8227.P6036.1.2
Unknown sub block detected. Skip...
Unknown sub block detected. Skip...
Supported protocol versions bitmap is 19
Secure FFU sync version 1 supported.
Secure FFU async version 1 supported.
Secure FFU async version 3 supported.
Get CID of the device...
Get EMMC size of the device...
Emmc size in sectors: 15269888
CID: Samsung, Size 7456 MB
Start charging...
Requested write param 0x43485247 is not supported by this flash app version.
Start charging... DONE. Status = 0
Unable to send ECHO REQ or ECHO REQ not supported
Get security Status...
Security Status:
Platform secure boot is enabled.
Secure eFUSE is enabled.
JTAG is disabled.
RDC is missing from the device.
Authentication is not done.
UEFI secure boot is enabled.
Secondary HW key exists.
Get RKH of the device...
RKH of the device is F771E62AF89994064F77CD3BC16829503BDF9A3D506D3FACECAEF3F808C868FD
Get ISSW Version...
Get ISSW Version, SKIPPED!
Get system memory size...
Size of system mem: 524288 KB
Read antitheft status...
Requested read param 0x41545250 is not supported by this flash app version.
Send backup to RAM req...
Clearing the backup GPT...SKIPPED!
Successfully parsed FFU file. Header size: 0x000e0000, Payload size: 0x0000000060020000, Chunk size: 0x00020000, Header offset: 0x00000000, Payload offset: 0x00000000000e0000
RKH match between device and FFU file!
Option: Skip CRC32 check in use
Start sending header data...
Start sending payload data...
Percents: 0
FlashApp returned reported error in SecureFlashResp! Status: 0x0004, Specifier: 0x80000008
lastDescriptorIndex: -1 lastLocationIndex: -1
Retrying from index 0
FlashApp returned reported error in SecureFlashResp! Status: 0x0004, Specifier: 0x80000008
lastDescriptorIndex: -1 lastLocationIndex: -1
Retrying from index 0
No more retries. Exit flashing!
UEFI returned error: 0xfa000004
Exception during programming: 393220
Safe write descriptor index reached: false
Payload data transfer speed (33.33 MB/s) Elapsed time 0.27 sec
Payload data size 9.000108 MB
[IN] programSecureFfuFile. Closing C:\Lumia\ffu.ffu
programming operation failed!
Operation took about 1.00 second. Average transfer speed was 2.36 MB/s.

THOR2_ERROR_FA_ERR_WRITE_FAIL

THOR2 1.8.2.18 exited with error code 393220 (0x60004)