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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
xor eax, eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp dword [0x1002d1c8], 0xa
jl 0x10007e85
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10007e85
mov edi, 0xf003f
xor ebx, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
push ebx
push ebx
call ebp
push edi
push ebx
push ebx
call ebp
mov esi, eax
cmp dword [0x1002d1c8], 0xa
jl 0x10007e85
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10007e60
test esi, esi
je 0x10007fb4
test esi, esi
je 0x1000801b
push 0xf01ff
push dword [esp + 0x38]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10008022
mov edi, eax
lea ebp, [esp + 4]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp + 4], 1
je 0x10008040
push ebp
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [0x1002d1c8], 0xa
jl 0x10007f1b
mov ecx, dword [0x1002d1cc]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10007f1b
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
push ebp
xor eax, eax
inc eax
push eax
push edi
call ebx
push ebp
xor eax, eax
inc eax
push eax
push edi
call ebx
cmp dword [0x1002d1c8], 0xa
jl 0x10007f1b
mov ecx, dword [0x1002d1cc]
lea edx, [ecx + 1]
imul edx, ecx
xor ecx, ecx
inc ecx
and edx, ecx
jne 0x10007eef
mov ecx, 0
test eax, eax
je 0x10008037
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [esp], eax
push ebp
push edi
call ebx
mov eax, dword [0x1002d1cc]
mov ecx, dword [0x1002d1c8]
cmp ecx, 0xa
jl 0x10007f58
lea edx, [eax + 1]
imul edx, eax
and edx, 1
je 0x10007f58
push ebp
push edi
call ebx
jmp 0x10007f33
cmp dword [esp + 8], 1
je 0x10008034
cmp ecx, 0xa
jl 0x10007f73
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10007f97
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1002d1c8], 0xa
jl 0x10007fa4
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10007fa4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007f73
mov eax, dword [esp]
inc eax
cmp eax, 0x3c
jne 0x10007f30
xor ecx, ecx
jmp 0x10008037
xor eax, eax
push 1
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp dword [0x1002d1c8], 0xa
jl 0x10007e8d
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10007e8d
xor edi, edi
inc edi
xor ebx, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
push ebx
push ebx
call ebp
push edi
push ebx
push ebx
call ebp
mov esi, eax
cmp dword [0x1002d1c8], 0xa
jl 0x10007e8d
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, edi
jne 0x10007fee
jmp 0x10007e8d
xor ebp, ebp
jmp 0x10008132
mov ecx, dword [0x1002d1cc]
xor ebp, ebp
mov eax, dword [0x1002d1c8]
jmp 0x100080fa
xor ecx, ecx
inc ecx
test ecx, ecx
mov ebp, 0
je 0x100080b1
cmp dword [esp + 0x38], 0
je 0x100080ae
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, eax
cmp dword [0x1002d1c8], 0xa
jl 0x100080b1
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x100080b1
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push edi
call ebx
cmp dword [0x1002d1c8], 0xa
jl 0x1000808e
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1000806f
push edi
call ebx
mov ebp, eax
cmp dword [0x1002d1c8], 0xa
jl 0x100080b1
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1000806f
jmp 0x100080b1
xor ebp, ebp
inc ebp
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [0x1002d1cc]
mov eax, dword [0x1002d1c8]
cmp eax, 0xa
jl 0x100080fa
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x100080fa
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
push edi
call ebx
mov ecx, dword [0x1002d1cc]
mov eax, dword [0x1002d1c8]
cmp eax, 0xa
jl 0x100080fa
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x100080d9
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x10008127
test edx, edx
je 0x10008127
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [0x1002d1cc]
mov eax, dword [0x1002d1c8]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x1000813c
test edx, edx
jne 0x1000815c
jmp 0x1000813c
mov eax, ebp
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x1002d1c8], 0xa
jl 0x10008132
mov eax, dword [0x1002d1cc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10008132
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000813c