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

Disassembly:
push 0xffffffffffffffff
push 0x402711
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 0x401edb
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 0x401f73
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 0x401f46
cmp ebp, ebx
je 0x401f3e
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 sub.MFC42.DLL_CString::CString_2
push str.91
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x14]
push 0x40429c
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.00401b90
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 1
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x401fe0
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 0x402093
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.00401cd0
mov edi, 0x404234
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 0x4020ae
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