Function at 0xfbd50
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0xfbd58
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0xfc0a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x34]
mov eax, 0xfc0b4
call fcn.00031d88
mov eax, dword [ebp - 0x34]
mov edx, esi
call fcn.000fafd8
mov byte [ebp - 1], 0
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0xfc078
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0xfc026
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xfc01f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0xfc0cc
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0xfbfcd
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0xfbfb4
call sub.kernel32.dll_GetLastError_1
mov edi, eax
lea edx, [ebp - 0x38]
mov eax, 0xfc0d4
call fcn.00031d88
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x3c]
mov eax, edi
call fcn.0002b100
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x38]
mov edx, esi
call fcn.000fb018
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xfbfad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0xfc0f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0xfbf79
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
neg eax
sbb eax, eax
neg eax
mov byte [0x2a7598], al
call sub.kernel32.dll_GetLastError_1
mov edi, eax
cmp byte [0x2a7598], 0
jne 0xfbed9
lea edx, [ebp - 0x40]
mov eax, 0xfc0fc
call fcn.00031d88
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.0002b100
mov edx, dword [ebp - 0x44]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x40]
mov edx, esi
call fcn.000fb018
jmp 0xfbf90
lea edx, [ebp - 0x48]
mov eax, 0xfc114
call fcn.00031d88
mov eax, dword [ebp - 0x48]
mov edx, esi
call fcn.000fafd8
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
neg eax
sbb ebx, ebx
neg ebx
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test bl, bl
jne 0xfbf1f
push 0x1f4
call sub.kernel32.dll_Sleep
inc dword [ebp - 8]
test bl, bl
jne 0xfbf2c
cmp dword [ebp - 8], 0xa
jl 0xfbef5
test bl, bl
jne 0xfbf60
lea edx, [ebp - 0x4c]
mov eax, 0xfc120
call fcn.00031d88
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, edi
call fcn.0002b100
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x4c]
mov edx, esi
call fcn.000fb018
jmp 0xfbf90
lea edx, [ebp - 0x54]
mov eax, 0xfc140
call fcn.00031d88
mov eax, dword [ebp - 0x54]
mov edx, esi
call fcn.000fafd8
jmp 0xfbf90
lea edx, [ebp - 0x58]
mov eax, 0xfc15c
call fcn.00031d88
mov eax, dword [ebp - 0x58]
mov edx, esi
call fcn.000fafd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfc002
cmp dword [ebp - 0x10], 0
je 0xfbfac
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
lea edx, [ebp - 0x5c]
mov eax, 0xfc170
call fcn.00031d88
mov eax, dword [ebp - 0x5c]
mov edx, esi
call fcn.000fafd8
jmp 0xfc002
call sub.kernel32.dll_GetLastError_1
mov edi, eax
lea edx, [ebp - 0x60]
mov eax, 0xfc18c
call fcn.00031d88
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x64]
mov eax, edi
call fcn.0002b100
mov edx, dword [ebp - 0x64]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x60]
mov edx, esi
call fcn.000fb018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfc05b
cmp dword [ebp - 0xc], 0
je 0xfc01e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
call sub.kernel32.dll_GetLastError_1
mov edi, eax
lea edx, [ebp - 0x68]
mov eax, 0xfc1a8
call fcn.00031d88
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
mov eax, edi
call fcn.0002b100
mov edx, dword [ebp - 0x6c]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x68]
mov edx, esi
call fcn.000fb018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfc07f
cmp dword [ebp - 0x14], 0
je 0xfc077
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret