Function at 0x1000d960
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071221
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
push ecx
mov ecx, eax
movq qword [ebp - 0x20], xmm0
call fcn.10010c00
mov dword [ebp - 4], 0
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
mov dword [ebp - 0x98], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000da82
xor ebx, ebx
add esi, ebx
cmp dword [esi + 0x14], 7
jbe 0x1000d9ec
mov esi, dword [esi]
push ecx
mov edi, esp
mov dword [ebp - 0xa0], edi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1000dc0a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10005aa0
test al, al
jne 0x1000da48
test esi, esi
jne 0x1000da26
xor eax, eax
jmp 0x1000da3f
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000da30
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.10005d10
mov byte [ebp - 4], 0
call fcn.10011220
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add ebx, 0x18
mov edi, dword [ebp - 0x98]
sub ecx, esi
imul ecx
inc edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x98], edi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1000d9e2
call fcn.10011500
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x94]
push eax
call fcn.1000d650
mov byte [ebp - 4], 3
cmp dword [ebp - 0x80], 0
jne 0x1000db0c
mov eax, dword [0x1008beb0]
test al, 1
jne 0x1000dadf
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 4
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x1008be80]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000daf0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.1000ce00
cmp dword [ebp - 0x7c], 7
lea edi, [ebp - 0x90]
push 0xf003f
cmova edi, dword [ebp - 0x90]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1000db8b
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x1000db4e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000db8b
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x38], 1
je 0x1000db78
lea eax, [ebp - 0x3c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x38]
push 1
push edi
call fcn.100182a0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x94]
call fcn.1000d730
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1000dbec
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.10012280
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1000dbe2
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000dc14
push ecx
push esi
call fcn.10043c87
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013a0
call fcn.10047604
int3