Function at 0x100092d0
Capabilities:
Create service
Get common file path
Modify service
Persist via windows service
Print debug messages
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c5a1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x26c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x274], ecx
xor ecx, ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
call fcn.100080e0
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x264], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009651
mov edx, ebx
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10009380
sub edx, ecx
lea ecx, [ebp - 0x230]
sar edx, 1
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
lea eax, [edx*2 + 2]
push eax
push ebx
push 7
push 0
push ecx
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10009651
push dword [ebp - 0x264]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x270], eax
test eax, eax
je 0x10009651
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045420
add esp, 0xc
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push 0x1006e3b8
call fcn.100080e0
mov byte [ebp - 4], 1
call fcn.1000def3
test eax, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
je 0x10009454
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x1000945a
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.100080e0
push 0x10
push str._svchost.exe__k
lea ecx, [ebp - 0x248]
call fcn.10007f60
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
call fcn.10007f60
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 0
cmovae eax, dword [ebp - 0x248]
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x20
push 0xf01ff
push dword [ebp - 0x26c]
push ebx
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x100094fd
lea ecx, [ebp - 0x248]
xor esi, esi
call fcn.100069f0
jmp 0x10009653
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
lea ecx, [ebp - 0x278]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor eax, eax
mov dword [ebp - 0x250], 0
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.100080e0
mov ecx, ebx
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009550
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x260]
call fcn.10007f60
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x264]
push ecx
push 0xf003f
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009637
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
push eax
push str.Parameters
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10009637
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x100095cf
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push str.ServiceDll
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10009637
mov esi, dword [ebp - 0x26c]
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1000960f
push str._n_StartService_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x264]
call edi
push dword [ebp - 0x268]
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x270]
call esi
mov esi, 1
jmp 0x10009639
xor esi, esi
lea ecx, [ebp - 0x260]
call fcn.100069f0
lea ecx, [ebp - 0x248]
call fcn.100069f0
jmp 0x10009653
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1000968f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009685
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100096ad
push edx
push ecx
call fcn.10016f10
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
call fcn.10048a49
int3