Function at 0x46e210
Capabilities:
Check for time delay via gettickcount
Enumerate services
Modify service
Persist via windows service
Query service status
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573fa8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x81], dl
mov edi, ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x90], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x46e692
mov edi, dword [edi]
mov dword [ebp - 0xa8], edi
mov esi, dword [edi]
mov dword [ebp - 0x98], esi
cmp esi, edi
je 0x46e68b
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi + 8]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x1c], 8
lea ecx, [esi + 8]
mov dword [ebp - 0xa4], eax
jb 0x46e2b1
mov ecx, dword [esi + 8]
push 0x2c
push ecx
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x46e675
mov eax, dword [ebp - 0x8c]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x46e2de
mov ecx, dword [eax]
push ecx
push str.___Service:__s
call fcn.00463ab0
add esp, 8
cmp byte [ebp + 8], 0
je 0x46e43d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x46e43d
push 0x22
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0044a910
mov eax, dword [ebp - 0x8c]
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46e352
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00451c60
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
push 0
push ecx
push 0
push 0x20106
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 4
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46e3c3
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
mov dword [ebp - 0x94], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x94], 0
je 0x46e3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
jb 0x46e3d9
mov eax, dword [eax]
push ecx
push eax
push str.____Failed_to_disable_service:__s__Code__lu.
call fcn.00463ab0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46e429
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e41f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e6ad
push edx
push ecx
call fcn.0052f5d6
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x7c]
push eax
push 0x24
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x46e669
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x46e669
cmp eax, 3
je 0x46e669
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push dword [ebp - 0x90]
push 1
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x46e5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x46e5ee
mov ecx, dword [ebp - 0x7c]
call fcn.00468210
mov dword [ebp - 0x90], eax
test eax, eax
je 0x46e5ee
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x7c]
push eax
push 1
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x46e5da
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x8c], 0
jbe 0x46e5da
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edi
mov eax, dword [edi]
movups xmm0, xmmword [edi + 0x10]
push 0x24
push eax
push dword [ebp - 0x9c]
movups xmmword [ebp - 0xbc], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x46e5b5
lea ecx, [ebp - 0x78]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46e5b5
cmp byte [ebp - 0x81], 0
je 0x46e5a9
cmp dword [ebp - 0x74], 1
je 0x46e5a9
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xa4]
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x7c]
push eax
push 0x24
lea eax, [ebp - 0x78]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x46e59d
cmp dword [ebp - 0x74], 1
je 0x46e59d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x46e59d
cmp dword [ebp - 0x74], 1
jne 0x46e560
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
add edi, 0x24
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x94], edi
cmp esi, dword [ebp - 0x14]
jb 0x46e507
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa8]
push dword [ebp - 0x90]
push 0
push dword [0x5f3314]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x54]
push eax
push 1
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46e669
cmp byte [ebp - 0x81], 0
je 0x46e669
cmp dword [ebp - 0x50], 1
je 0x46e669
mov edi, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x88]
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x7c]
push eax
push 0x24
lea eax, [ebp - 0x54]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x46e65d
cmp dword [ebp - 0x50], 1
je 0x46e65d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x46e65d
cmp dword [ebp - 0x50], 1
jne 0x46e620
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa8]
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esi]
mov dword [ebp - 0x98], esi
cmp esi, edi
jne 0x46e290
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
int3