Function at 0x4097f0
Capabilities:
Create process on windows
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4288ce
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x431180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0041d150
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409c9c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404260
mov byte [ebp - 4], 1
mov eax, dword [0x431008]
mov ecx, 0x431008
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov edx, 0x432c20
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00408aa0
mov edx, 0x432bfc
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00408aa0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x409c0f
mov eax, dword [ebp - 0x238]
cmp dword [eax - 0xc], 0
je 0x409c0f
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040ad10
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.0040b1d0
test eax, eax
je 0x409c0f
mov ecx, dword [ebp - 0x220]
call fcn.00409300
test eax, eax
je 0x409c0f
push dword [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.0040b1d0
test eax, eax
je 0x409c0f
push 0
lea ecx, [ebp - 0x220]
call fcn.0040b150
test eax, eax
je 0x409c0f
mov ecx, dword [ebp - 0x220]
push 0x1a19f
mov edx, 0x44d260
call fcn.00409550
add esp, 4
test eax, eax
je 0x409c0f
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040ad10
call fcn.004053b0
test eax, eax
je 0x4099e4
mov edx, 0x432ca4
lea ecx, [ebp - 0x228]
call fcn.00408aa0
mov edx, 0x432c68
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.00408aa0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.0040b0f0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.0040ad80
lea ecx, [ebp - 0x22c]
call fcn.00404310
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00404310
mov edx, 0x432bc4
lea ecx, [ebp - 0x23c]
call fcn.00408aa0
mov edx, 0x432b90
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00408aa0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], 0
je 0x409bf9
mov eax, dword [ebp - 0x230]
cmp dword [eax - 0xc], 0
je 0x409bf9
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040ad10
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x220]
call fcn.0040b1d0
test eax, eax
je 0x409bf9
mov ecx, dword [ebp - 0x220]
call fcn.00409300
test eax, eax
je 0x409bf9
push dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call fcn.0040b1d0
test eax, eax
je 0x409bf9
mov esi, dword [ebp - 0x220]
push 0x1a4e1
mov edx, str.w_f_
mov ecx, esi
call fcn.00409550
add esp, 4
test eax, eax
je 0x409bf9
mov ecx, esi
call fcn.00409710
test eax, eax
je 0x409bf9
mov edx, 0x432b6c
lea ecx, [ebp - 0x228]
call fcn.00408aa0
mov edx, 0x432b28
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 9
call fcn.00408aa0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x228]
cmp dword [eax - 0xc], 0
je 0x409be3
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx - 0xc], 0
je 0x409be3
cmp dword [0x4688a0], 0
je 0x409b0b
push 1
push ecx
push eax
jmp 0x409b3a
push 0
push ecx
mov ecx, dword [ebp - 0x224]
push eax
call fcn.004041e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x409b52
call fcn.00403900
test eax, eax
je 0x409b4a
push 1
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
call fcn.004041e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x409bd9
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
call fcn.00407ad0
push 0
push 0
push 0
push dword [ebp - 0x224]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
call fcn.00403900
test eax, eax
je 0x409bd9
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x409bd9
mov eax, dword [ebp - 0x228]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x224]
push ebx
push 2
push 0x10
push 0x12
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x409bc7
push eax
mov ebx, 1
call esi
push edi
call esi
test ebx, ebx
je 0x409bd9
mov ecx, dword [ebp - 0x228]
call fcn.004086f0
call fcn.0040bc20
call fcn.0040bee0
lea ecx, [ebp - 0x22c]
call fcn.00404310
lea ecx, [ebp - 0x228]
call fcn.00404310
lea ecx, [ebp - 0x230]
call fcn.00404310
lea ecx, [ebp - 0x23c]
call fcn.00404310
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409c35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409c58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409c7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x409c9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b074
mov esp, ebp
pop ebp
ret