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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ab2e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x43581c]
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 - reloc.shlwapi.dll_PathIsDirectoryA], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00413f20
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
or eax, eax
je 0x40c3ee
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406af0
mov byte [ebp - 4], 1
mov eax, dword [section..data_1]
mov ecx, section..data_1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov edx, 0x4373f0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0040a6a0
mov edx, 0x4373cc
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.0040a6a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x40c361
mov eax, dword [ebp - 0x238]
cmp dword [eax - 0xc], 0
je 0x40c361
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d460
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.0040dfe0
test eax, eax
je 0x40c361
mov ecx, dword [ebp - 0x220]
call fcn.0040b880
test eax, eax
je 0x40c361
push dword [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.0040dfe0
test eax, eax
je 0x40c361
push 0
lea ecx, [ebp - 0x220]
call fcn.0040df60
or eax, eax
je 0x40c361
mov ecx, dword [ebp - 0x220]
push 0x19f16
mov edx, str.p
call fcn.0040bab0
add esp, 4
test eax, eax
je 0x40c361
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040d460
call fcn.00407d40
or eax, eax
je 0x40c124
mov edx, 0x437474
lea ecx, [ebp - 0x228]
call fcn.0040a6a0
mov edx, 0x437438
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.0040a6a0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.0040d840
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.0040d4d0
lea ecx, [ebp - 0x22c]
call fcn.00406ba0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00406ba0
mov edx, 0x437394
lea ecx, [ebp - 0x23c]
call fcn.0040a6a0
mov edx, 0x437360
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.0040a6a0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], 0
je 0x40c34b
mov eax, dword [ebp - 0x230]
cmp dword [eax - 0xc], 0
je 0x40c34b
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d460
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x220]
call fcn.0040dfe0
test eax, eax
je 0x40c34b
mov ecx, dword [ebp - 0x220]
call fcn.0040b880
test eax, eax
je 0x40c34b
push dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call fcn.0040dfe0
or eax, eax
je 0x40c34b
mov esi, dword [ebp - 0x220]
push 0x19ea0
mov edx, 0x437548
push esi
pop ecx
call fcn.0040bab0
add esp, 4
test eax, eax
je 0x40c34b
mov ecx, esi
call fcn.0040be50
or eax, eax
je 0x40c34b
mov edx, 0x43733c
lea ecx, [ebp - 0x228]
call fcn.0040a6a0
mov edx, 0x4372f8
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 9
call fcn.0040a6a0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x228]
cmp dword [eax - 0xc], 0
je 0x40c335
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx - 0xc], 0
je 0x40c335
cmp dword [0x46cad8], 0
je 0x40c24b
push 1
push ecx
push eax
jmp 0x40c27a
push 0
push ecx
mov ecx, dword [ebp - 0x224]
push eax
call fcn.00406a70
mov esi, eax
add esp, 0xc
or esi, esi
je 0x40c292
call fcn.004061c0
test eax, eax
je 0x40c28a
push 1
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
call fcn.00406a70
push eax
pop esi
add esp, 0xc
test esi, esi
jne 0x40c32b
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
call fcn.0040a1e0
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.004061c0
or eax, eax
je 0x40c32b
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
or edi, edi
je 0x40c32b
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]
or eax, eax
je 0x40c307
push eax
nop
push 1
nop
pop ebx
call esi
push edi
call esi
test ebx, ebx
je 0x40c32b
push fcn.0040a360
push 0x431df0
call fcn.00412d0b
push dword [ebp - 0x228]
call fcn.0040a360
add esp, 0xc
call fcn.004105f0
call fcn.00410890
lea ecx, [ebp - 0x22c]
call fcn.00406ba0
lea ecx, [ebp - 0x228]
call fcn.00406ba0
lea ecx, [ebp - 0x230]
call fcn.00406ba0
lea ecx, [ebp - 0x23c]
call fcn.00406ba0
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
or eax, eax
jg 0x40c387
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
push esi
pop ecx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
or ecx, ecx
jg 0x40c3aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
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 0x40c3cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
or esi, esi
jg 0x40c3ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
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.0041191e
push ebp
pop esp
pop ebp
ret