Function at 0x404fe0
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x405bb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
xor ebp, ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
mov dword [esp + 0x250], ebx
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x40503b
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
push ebx
push str.Common_Programs
push ebp
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4050d3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call esi
cmp eax, ebx
jne 0x4050a6
cmp ebp, ebx
je 0x40509e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push str.Programs
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00405478
push str.91
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.00405484
lea eax, [esp + 0x14]
push 0x408428
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x23c], 2
push eax
call fcn.00404cf0
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 1
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x405140
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4051f3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x130]
mov dword [esp + 0x28], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x130]
push eax
lea eax, [esp + 0x28]
push ecx
push eax
push ebx
push str.Desktop
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x130]
push ecx
call fcn.00404e30
mov edi, 0x4083c8
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x130]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x40520e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret