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

Disassembly:
push 0xffffffffffffffff
push 0x100fc16b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x10143328]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10143328]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [esp + 0x280]
mov ebx, dword [esp + 0x284]
push 0xc
xor ebp, ebp
push str.LocalWorkSvc
lea esi, [esp + 0x34]
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], bp
call fcn.100019d0
lea edx, [esp + 0x14]
push edx
push 3
push ebp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
mov dword [esp + 0x288], ebp
push 0x80000002
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10003118
cmp dword [esp + 0x44], 8
jb 0x10003111
mov eax, dword [esp + 0x30]
push eax
call fcn.1000f3a5
add esp, 4
xor eax, eax
jmp 0x10003369
mov edx, dword [edi + 0x14]
mov esi, 8
cmp dword [edi + 0x18], esi
lea ebp, [edi + 4]
jb 0x1000312d
mov eax, dword [ebp]
jmp 0x1000312f
mov eax, ebp
cmp dword [esp + 0x44], esi
mov ecx, dword [esp + 0x30]
jae 0x1000313d
lea ecx, [esp + 0x30]
lea edx, [edx + edx + 2]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10003171
cmp dword [esp + 0x44], esi
jb 0x10003111
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1000f3a5
add esp, 4
xor eax, eax
jmp 0x10003369
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x1000319c
cmp dword [esp + 0x44], esi
jmp 0x10003102
push 0x206
lea ecx, [esp + 0x6a]
push 0
push ecx
mov word [esp + 0x70], 0
call fcn.10015360
add esp, 0xc
call fcn.10003030
test eax, eax
push 0x104
je 0x100031d2
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x100031dd
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._svchost.exe__k
lea esi, [esp + 0x68]
call fcn.10002e50
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x100031fa
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x68]
call fcn.10002e50
mov eax, 8
cmp dword [ebx + 0x18], eax
jb 0x10003213
mov ecx, dword [ebx + 4]
jmp 0x10003216
lea ecx, [ebx + 4]
cmp dword [edi + 0x18], eax
jb 0x10003220
mov eax, dword [ebp]
jmp 0x10003222
mov eax, ebp
push 0
mov ebp, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 1
push 2
push 0x20
push 0xf01ff
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x100032b7
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x10003262
mov eax, dword [eax + 4]
jmp 0x10003265
add eax, 4
lea ecx, [esp + 0x1c]
push ecx
push 1
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
lea edi, [esp + 0x4c]
call fcn.10003a00
mov eax, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0x60], ebx
jae 0x10003292
lea eax, [esp + 0x4c]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100032c7
lea ecx, [esp + 0x48]
call fcn.10001a70
lea ecx, [esp + 0x2c]
call fcn.10001a70
xor eax, eax
jmp 0x10003369
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Parameters
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100032ae
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], ebx
mov ecx, dword [eax + 0x14]
jb 0x100032f9
mov eax, dword [eax + 4]
jmp 0x100032fc
add eax, 4
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [esp + 0x20]
push 2
push 0
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100032ae
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10003332
push str._n_StartService_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
lea ecx, [esp + 0x48]
call fcn.10001a70
lea ecx, [esp + 0x2c]
call fcn.10001a70
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1000efa1
add esp, 0x268
ret