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

Disassembly:
mov eax, 0x41dd98
call fcn.0040699c
sub esp, 0x2c
push ebx
push esi
push edi
push str.HprSnap5.exe
push str.HyperSnap_DX_5
xor ebx, ebx
push str.HyperSnap_DX_v.5
push str.Hyperionics
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], 1
call fcn.00401b8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea eax, [ebp - 0x1c]
mov edi, 0xf003f
push eax
push edi
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts
push 0x80000001
call esi
cmp eax, ebx
je 0x4020ee
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
push eax
push edi
push ebx
push ebx
push 0x80000000
call esi
cmp eax, ebx
je 0x4020ee
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], ebx
mov esi, 0x42a038
je 0x4021c4
mov dword [ebp - 0x20], 0x42a238
mov edi, 0x42618c
mov eax, dword [ebp - 0x20]
mov dword [edi], ebx
mov byte [eax], bl
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push dword [edi - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4021ae
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x200
push eax
mov eax, dword [ebp - 0x2c]
neg eax
sbb eax, eax
push esi
push ebx
and eax, str.Application
push ebx
push eax
push dword [ebp - 0x14]
mov byte [0x42a038], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4021a5
cmp byte [0x42a038], bl
je 0x4021a5
push str.HprSnap5.exe
push esi
call fcn.00407190
pop ecx
test eax, eax
pop ecx
je 0x40219a
lea eax, [ebp - 0x28]
mov dword [edi], 1
push eax
push esi
push ebx
push ebx
push str.HprSnapOld
mov dword [ebp - 0x28], 0x200
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4021a5
push esi
push dword [ebp - 0x20]
call fcn.00406fd0
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x20], 0x200
add edi, 8
cmp edi, 0x4261e4
jl 0x402108
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], 0x42a238
mov dword [ebp - 0x28], 0x426188
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push 0xf003f
push ebx
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402287
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
neg edi
sbb edi, edi
push eax
push esi
and edi, str.Application
push ebx
push ebx
push edi
mov dword [ebp - 0x38], 0x200
push dword [ebp - 0x14]
mov byte [0x42a038], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40227e
push str.HprSnap5.exe
push esi
call fcn.00407190
pop ecx
test eax, eax
pop ecx
je 0x40227e
push dword [ebp - 0x20]
mov dword [ebp - 0x30], 1
call fcn.004070c0
test eax, eax
pop ecx
je 0x402266
push dword [ebp - 0x20]
call fcn.004070c0
pop ecx
inc eax
push eax
push dword [ebp - 0x20]
push 1
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x402270
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.HprSnapOld
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x28], 8
add dword [ebp - 0x20], 0x200
cmp dword [ebp - 0x28], 0x4261e0
jl 0x4021d5
cmp dword [ebp - 0x30], ebx
je 0x4022b2
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0041948a
push 0x4263c4
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], ebx
push eax
call fcn.00419624
push dword [eax]
mov byte [ebp - 4], 1
call fcn.00401d21
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0041941c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041941c
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0041948a
mov edi, 0x4263b4
mov dword [ebp - 4], 2
push edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00419624
push dword [eax]
mov byte [ebp - 4], 3
call fcn.00401d21
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041941c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041941c
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0041948a
push 0x4263c4
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 4
push eax
call fcn.00419624
mov eax, dword [eax]
push ebx
push dword [ebp + 8]
mov byte [ebp - 4], 5
push eax
call fcn.00401ee0
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0041941c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041941c
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0041948a
push edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
call fcn.00419624
mov eax, dword [eax]
mov byte [ebp - 4], 7
push ebx
push dword [ebp + 8]
push eax
call fcn.00401ee0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0041941c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041941c
push edi
push dword [ebp + 8]
call fcn.00401955
pop ecx
pop ecx
push 0x426254
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x104
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0x200
jne 0x4024e2
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Common_Startup
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x42a038], bl
je 0x402453
push str.HyperSnap_DX_5.lnk
push esi
call fcn.00406fe0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Common_Desktop
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x42a038], bl
je 0x402490
push str.HyperSnap_DX_5.lnk
push esi
call fcn.00406fe0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Common_Programs
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x42a038], bl
je 0x4024e2
push str.HyperSnap_DX_5_
push esi
call fcn.00406fe0
push 0x426368
push esi
call fcn.00401955
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
push esi
mov dword [ebp + 8], 1
push ebx
jmp 0x40260d
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push ebx
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402604
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025fb
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Startup
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x42a038], bl
je 0x40256c
push str.HyperSnap_DX_5.lnk
push esi
call fcn.00406fe0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Desktop
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x42a038], bl
je 0x4025a9
push str.HyperSnap_DX_5.lnk
push esi
call fcn.00406fe0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
mov byte [0x42a038], bl
push eax
lea eax, [ebp - 0x24]
push esi
push eax
push ebx
push str.Programs
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x42a038], bl
je 0x4025fb
push str.HyperSnap_DX_5_
push esi
call fcn.00406fe0
push 0x426368
push esi
call fcn.00401955
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
push edi
push esi
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4024f1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret