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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070e11
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.10010aa0
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 0x1000d922
xor ebx, ebx
add esi, ebx
cmp dword [esi + 0x14], 7
jbe 0x1000d88c
mov esi, dword [esi]
push ecx
mov edi, esp
mov dword [ebp - 0xa0], edi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1000daaa
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 0x1000d8e8
test esi, esi
jne 0x1000d8c6
xor eax, eax
jmp 0x1000d8df
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d8d0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.10005d10
mov byte [ebp - 4], 0
call fcn.100110c0
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 0x1000d882
call fcn.100113a0
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x94]
push eax
call fcn.1000d4f0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x80], 0
jne 0x1000d9ac
mov eax, dword [0x1008beb0]
test al, 1
jne 0x1000d97f
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 4
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
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 0x1000d990
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.1000cd00
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 0x1000da2b
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x1000d9ee
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000da2b
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x38], 1
je 0x1000da18
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.10017fe0
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.1000d5d0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1000da8c
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.10012120
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 0x1000da82
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000dab4
push ecx
push esi
call fcn.100438c7
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.10043277
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013a0
call fcn.10047224
int3