Function at 0x1007be00
Capabilities:
Create service
Modify service
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x354
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x350], eax
mov eax, dword [esp + 0x360]
mov ecx, dword [esp + 0x364]
push ebp
mov ebp, dword [esp + 0x35c]
push esi
mov esi, dword [esp + 0x364]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x1007c0fe
test esi, esi
je 0x1007c0fe
lea edx, [esp + 8]
push edx
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007c0fe
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push esi
push eax
mov dword [esp + 0x38], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007bef6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x60], 0
lea esi, [esp + 0x60]
je 0x1007c0fe
push ebp
push esi
call fcn.100a66cb
add esp, 8
test eax, eax
je 0x1007beec
push 0
push esi
call fcn.1007f590
inc eax
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x1007bec6
jmp 0x1007c0fe
cmp byte [esi], 0
jne 0x1007bf55
jmp 0x1007c0fe
push 0x31
lea edx, [esp + 0x31]
push 0
push edx
mov byte [esp + 0x38], 0
call fcn.1007f650
push 0x32
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.10085ef0
lea eax, [esp + 0x44]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007bf20
sub eax, edx
mov edx, dword [esp + 8]
mov byte [esp + eax + 0x2c], cl
mov byte [esp + eax + 0x2d], cl
add eax, 2
push eax
lea ecx, [esp + 0x30]
push ecx
push 7
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x1007c0fd
push edi
mov ecx, 9
mov esi, str._SystemRoot_System32_svchost.exe__k
lea edi, [esp + 0x25c]
rep movsd dword es:[edi], dword [esi]
push 0xde
lea ecx, [esp + 0x286]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.1007f650
mov edx, dword [esp + 0x2c]
push 0x104
push edx
lea eax, [esp + 0x270]
push eax
call fcn.10085db0
mov eax, dword [esp + 0x390]
add esp, 0x18
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
push 0
neg eax
lea ecx, [esp + 0x270]
push ecx
push 1
sbb eax, eax
add eax, 3
push eax
push 0x120
push 0xf01ff
push edx
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x1007c0fc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 1
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebp
push ebx
call ebp
push 0x1f4
lea edx, [esp + 0x6c]
push str.SYSTEMCurrentControlSetServices_
push edx
mov dword [esp + 0x1c], reloc.WS2_32.dll_bind
call fcn.10085ef0
mov eax, dword [esp + 0x28]
push 0x64
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.10085db0
mov ecx, dword [esp + 0x28]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007c0fc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.Parameters
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x1007c0fc
mov edx, dword [0x100d736c]
push 0x1f4
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1007c0fc
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007c0b1
mov ecx, dword [esp + 0x14]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x6c]
push eax
push 2
push 0
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x1007c0fc
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
push esi
call ebp
push ebx
call ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x358]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1007fec9
add esp, 0x354
ret