Function at 0x4031f2
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
push edi
mov esi, ecx
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40340a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x200
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.Desktop
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40340a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x118]
push 0x41e62c
push eax
call fcn.0041172e
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x318]
push 0x41e628
push eax
call fcn.00411790
mov edi, 0x41e438
lea eax, [ebp - 0x318]
push edi
push eax
call fcn.00411790
lea eax, [ebp - 0x318]
push 0x41e620
push eax
call fcn.00411790
add esp, 0x18
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403329
push edi
lea eax, [ebp - 0x118]
push 0x41e5fc
push eax
call fcn.0041172e
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x24
push 0x41e5f0
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x40340a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x41bb68
push 1
push ebx
push 0x41bb58
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403404
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x41c]
push esi
push eax
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x41c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push 0x41e438
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x41bb78
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4033fb
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x624]
push esi
push eax
lea eax, [ebp - 0x318]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x624]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret