Function at 0x4b4d20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6325e5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jne 0x4b4dac
push 0x10
call fcn.00606edf
mov esi, eax
add esp, 4
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi], vtable.XTOOGetLastErrorImp.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.005d11f0
push 0x20
push str.OpenSCManager__
mov ecx, esi
call fcn.005d02c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4b4fa3
mov ecx, dword [0x6ad84c]
or edi, 0xffffffff
push 0xf003f
test ecx, ecx
je 0x4b4dd5
lock inc dword [ecx]
mov esi, dword [ecx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b4dda
push ecx
call fcn.005a47b0
jmp 0x4b4dda
mov esi, 0x651f68
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x4b4f71
call fcn.005a45d0
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4b4e23
push str.OpenService_
mov ecx, eax
call fcn.005a5480
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4b4e28
cmp dword [esi + 0xc], 0
jne 0x4b4e28
push ecx
mov ecx, esi
call fcn.005a47b0
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 1
mov ecx, dword [0x6ad84c]
test ecx, ecx
je 0x4b4e56
lock inc dword [ecx]
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x30], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b4e5b
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x30]
jmp 0x4b4e5b
mov edx, 0x651f68
lea ecx, [ebp - 0x30]
call fcn.004b7ca0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.005a6c40
push 0x662438
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.005a6ce0
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4b4e9a
mov eax, dword [eax + 0xc]
jmp 0x4b4e9f
mov eax, 0x651f68
push 0x10
mov dword [ebp - 0x34], eax
call fcn.00606edf
mov edi, eax
add esp, 4
mov dword [edi + 4], 1
mov dword [edi + 8], 0
mov dword [edi], vtable.XTOOGetLastErrorImp.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.005d11f0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4b4ee5
push 0x20
push eax
mov ecx, edi
call fcn.005d02c0
jmp 0x4b4f02
cmp dword [edi + 0xc], 0
jne 0x4b4f02
mov eax, dword [edi + 8]
test eax, eax
je 0x4b4efb
push eax
call fcn.00606eda
add esp, 4
mov dword [edi + 8], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x4b4f19
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x4b4f19
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4b4f30
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x4b4f30
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x30]
or edx, 0xffffffff
test ecx, ecx
je 0x4b4f4c
mov eax, edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b4f4c
push ecx
call fcn.005a47b0
or edx, 0xffffffff
test esi, esi
je 0x4b4f5f
lock xadd dword [esi], edx
dec edx
jne 0x4b4f5f
push ecx
mov ecx, esi
call fcn.005a47b0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4b4fa3
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4b4fbe
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x3c]
call esi
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.00606a47
mov esp, ebp
pop ebp
ret
push str.ControlService_
lea ecx, [ebp - 0x34]
call fcn.005a5400
mov esi, eax
push ecx
mov ecx, esp
mov dword [ebp - 4], 5
push 0x6ad84c
call fcn.005a5bd0
call fcn.004b7c70
add esp, 4
lea ecx, [ebp - 0x30]
mov edx, eax
call fcn.004b7da0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.005a6c40
push str.__SERVICE_CONTROL_STOP_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.005a6ce0
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.005a5da0
push eax
lea ecx, [ebp - 0x50]
call fcn.005d1470
lea ecx, [ebp - 0x38]
call fcn.004250c0
lea ecx, [ebp - 0x48]
call fcn.004250c0
lea ecx, [ebp - 0x30]
call fcn.004250c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.004250c0
push dword [ebp - 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x3c]
call esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x44]
push eax
call fcn.006089ec
int3