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

Disassembly:
mov eax, 0x40d1ad
call fcn.00407bd0
sub esp, 0x5a0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x14], esi
call fcn.00408d5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00408d5c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00408d5c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00408d5c
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00408d5c
mov ebx, 0x100
lea ecx, [ebp - 0x84]
push ebx
mov byte [ebp - 4], 4
call fcn.004094e0
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.004094e0
push eax
push ebx
lea ecx, [ebp - 0x64]
call fcn.004094e0
push eax
push ebx
lea ecx, [ebp - 0x74]
call fcn.004094e0
push eax
push ebx
lea ecx, [ebp - 0x94]
call fcn.004094e0
push eax
mov ecx, esi
call fcn.004070c3
lea ecx, [ebp - 0x2c]
call fcn.00408d5c
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00408ef0
push eax
push 0x9b
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x44]
call fcn.00408d5c
lea edi, [esi + 0x2c]
mov byte [ebp - 4], 6
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408ee3
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.004094e0
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov ecx, edi
push 0x24
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x44]
call fcn.00408ee3
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x406341
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408ef0
push eax
push 0x9d
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [ebp - 0x18]
push 0
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x2c]
jmp 0x4063bc
push 0
lea ecx, [esi + 0x3c]
call fcn.00408ef0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40636b
mov ecx, dword [ebp - 0x18]
call fcn.00408ee3
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4063ca
push eax
call fcn.00408508
test eax, eax
pop ecx
jne 0x4063ca
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408ef0
push eax
push 0x9f
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [ebp - 0x18]
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408ee3
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.004094e0
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x44]
push 0
push 0x411608
call fcn.00408ee3
push eax
call edi
push eax
jmp 0x406869
and byte [ebp - 0x4a8], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x4a7]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4a8]
push eax
push 0x91
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.0040bbc8
mov edi, dword [esi + 0x474]
add esp, 0x10
lea ecx, [esi + 0x7c]
push 1
push 0x2001f
call fcn.00408ef0
push eax
mov eax, edi
lea edi, [esi + 0x474]
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call dword [eax + 8]
cmp eax, 2
je 0x40644b
mov eax, dword [edi]
push str.MIMETYPE_DESCRIPTION
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
lea ecx, [ebp - 0x94]
call fcn.00408ee3
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push eax
call edi
lea ecx, [ebp - 0x74]
call fcn.00408ee3
push eax
call edi
lea ecx, [ebp - 0x64]
call fcn.00408ee3
push eax
call edi
lea ecx, [ebp - 0x54]
call fcn.00408ee3
push eax
call edi
lea ecx, [ebp - 0x84]
call fcn.00408ee3
push eax
call edi
lea ecx, [esi + 0x10c]
call fcn.00408ee3
push eax
call edi
push 0x104
lea eax, [ebp - 0x5ac]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [esi + 0x2c]
lea edi, [esi + 0x5c]
call fcn.00408ee3
push eax
mov ecx, edi
call fcn.00408ee3
push eax
lea eax, [ebp - 0x5ac]
push str._s_s
push eax
call sub.MSVCRT.dll_sprintf
mov edi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
add esp, 0x10
lea eax, [ebp - 0x5ac]
push eax
call edi
lea ecx, [esi + 0x5c]
call fcn.00408ee3
push eax
call edi
lea ecx, [esi + 0xfc]
call fcn.00408ef0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esi + 0x6c]
call fcn.00408ee3
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [0x414794]
push 0x40
mov word [ebp - 0x2a8], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x14]
lea edi, [eax + 0x474]
push 1
push 0x20019
push str.softwaremicrosoftwindowscurrentversionexplorer_shell_folders
mov eax, dword [edi]
push SysReAllocString
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
push 1
lea ecx, [ebp - 0x2a8]
push 0x104
push ecx
push str.Programs
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
lea eax, [ebp - 0x2a8]
push 0x41138c
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
lea ecx, [eax + 0x2c]
mov dword [ebp - 0x18], ecx
call fcn.00408ee3
push eax
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x2a8]
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x406617
lea ecx, [ebp - 0xa4]
call fcn.00408d5c
mov eax, 0x200
lea ecx, [ebp - 0xa4]
push eax
push eax
mov byte [ebp - 4], 7
call fcn.004094e0
push eax
call fcn.0040c281
pop ecx
mov byte [ebp - 4], 6
pop ecx
lea ecx, [ebp - 0xa4]
call fcn.00408e57
mov edi, dword [ebp - 0x14]
lea ecx, [edi + 0x36c]
call fcn.0040a3f5
mov ecx, dword [ebp - 0x18]
call fcn.00408ee3
push eax
push 0
push 1
lea ecx, [edi + 0x36c]
call fcn.0040a189
mov ecx, dword [ebp - 0x18]
call fcn.00408ee3
push eax
push 0
call dword [edi + 0x3a0]
push ebx
lea eax, [ebp - 0x3a8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [edi + 0x7c]
push 4
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
call fcn.00408ef0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x34]
and dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.AltNumCount
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
pop eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
jl 0x4067a6
push ebx
lea eax, [ebp - 0x1a4]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x14]
push str.AltWebURL__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp - 0x1a4]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x14]
push str.TermsAndConditionsID__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp - 0x1a4]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x14]
push str.TermsAndConditionsURL__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp - 0x3a8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push dword [ebp - 0x14]
call fcn.00408ee3
push eax
lea eax, [ebp - 0x3a8]
push str._s__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x3a8]
push eax
push 0
call dword [edi + 0x3a0]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jle 0x4066b7
push str.AltWebURL
push dword [ebp - 0x10]
call esi
push str.TermsAndConditionsID
push dword [ebp - 0x10]
call esi
push str.TermsAndConditionsURL
push dword [ebp - 0x10]
call esi
push str.TermsAndConditions_READ
push dword [ebp - 0x10]
call esi
push str.AltNumCount
push dword [ebp - 0x10]
call esi
push str.FetchAltNum
push dword [ebp - 0x10]
call esi
push str.DocID
push dword [ebp - 0x10]
call esi
push str.DocTime
push dword [ebp - 0x10]
call esi
push str.DisableCallWaiting
push dword [ebp - 0x10]
call esi
push str.DialingPrefix
push dword [ebp - 0x10]
call esi
push str.CallWaitingPrefix
push dword [ebp - 0x10]
call esi
push str.PopupTerms
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi + 0x7c]
call fcn.00408ee3
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408ef0
push eax
push 0x9e
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [ebp - 0x18]
push 0x40
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408ee3
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00408e57
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00408e57
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00408e57
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00408e57
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00408e57
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00408e57
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret