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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
mov eax, dword [0x42c6dc]
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.0040ef00
add esp, 0xc
lea eax, [ebp - 0x31f]
push 0x103
push 0
push eax
mov byte [ebp - 0x320], 0
call fcn.0040ef00
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0x103
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.0040ef00
add esp, 0xc
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.0040ef00
add esp, 0xc
lea eax, [ebp - 0x52f]
push 0x103
push 0
push eax
mov byte [ebp - 0x530], 0
call fcn.0040ef00
add esp, 0xc
lea eax, [ebp - 0x320]
push str.X:.Trash_100
push 0x104
push eax
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x4289cc
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea eax, [ebp - 0x320]
push str.ActivateDesktop.exe
push 0x104
push eax
call fcn.0040b941
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 0x406b81
test dl, dl
je 0x406b7d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406b81
add eax, 2
add ecx, 2
test dl, dl
jne 0x406b61
xor eax, eax
jmp 0x406b86
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406bf5
lea edx, [ebp - 0x320]
lea ecx, [ebp - 0x428]
call fcn.00408960
push 0x40
lea eax, [ebp - 0x574]
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.0040ef00
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 0x406e47
push str.X:.Trash_100
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x110]
push str._registry_tool.exe
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea edx, [ebp - 0x530]
push 0x104
mov ecx, str.last_regwrite_link
call fcn.00404da0
add esp, 4
lea edx, [ebp - 0x218]
push 0x104
mov ecx, str.backup_url
call fcn.00404da0
add esp, 4
test al, al
jne 0x406c74
push 0x42f020
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040b669
add esp, 0xc
push str.tools_RegWriter.exe.raum_encrypted
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x530]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406cc0
test dl, dl
je 0x406cbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406cc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ca0
xor eax, eax
jmp 0x406cc5
sbb eax, eax
or eax, 1
test eax, eax
je 0x406de0
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x218]
call fcn.004081c0
test al, al
je 0x406d1d
lea ecx, [ebp - 0x110]
call fcn.00405080
test al, al
je 0x406d1d
lea edx, [ebp - 0x218]
lea edi, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x406d00
sub edx, edi
push edx
lea edx, [ebp - 0x218]
mov ecx, str.last_regwrite_link
call fcn.00404c00
add esp, 4
push str.__autorun
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea eax, [ebp - 0x574]
push 0x40
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.0040ef00
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 0x406dce
lea eax, [ebp - 0x110]
push str.__autorun
push eax
call fcn.0040bb30
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.0040a3bf
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [ebp - 0x574]
push 0
push eax
mov dword [ebp - 0x578], 0x44
call fcn.0040ef00
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.0040a3bf
mov esp, ebp
pop ebp
ret
call fcn.00406380
int3