Function at 0x44e3c0
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 0
test edi, edi
jne 0x44e411
push str.Inst_StopService:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push edi
push str.Inst_StopService:_Attempting_to_stop_service:__s__stop_dependents___d_
push 2
call fcn.004439a0
add esp, 0x10
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x44e55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x44e490
cmp eax, 0x57
je 0x44e47d
cmp eax, 0x429
je 0x44e46a
push str.Inst_StopService:_Service_Manager_open_failed
push eax
push 1
call fcn.00443b80
add esp, 0xc
jmp 0x44e4ab
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44e4a1
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44e4a1
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
push SysReAllocString
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x44e554
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x44e517
cmp eax, 0x57
je 0x44e504
cmp eax, 0x429
je 0x44e4f1
push str.Inst_StopService:_Service_Manager_open_failed
push eax
push 1
call fcn.00443b80
add esp, 0xc
jmp 0x44e532
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44e528
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x44e528
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.Inst_StopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
push str.Inst_StopService:_service_stop_failed
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Service_Manager_successfully_opened_with_reduced_permissions
push 2
jmp 0x44e564
push str.Inst_StopService:_Service_Manager_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
push 0xf01ff
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x44e728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], ebx
cmp eax, 0x7b
ja 0x44e5ce
je 0x44e5c0
mov ecx, eax
sub ecx, 5
je 0x44e5b2
sub ecx, 1
jne 0x44e5d5
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.004439a0
jmp 0x44e5fa
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
jmp 0x44e5fa
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.004439a0
jmp 0x44e5fa
cmp eax, 0x424
je 0x44e5e7
push str.Inst_StopService:_Service_could_not_be_opened
push eax
push 1
call fcn.00443b80
add esp, 0xc
jmp 0x44e5fd
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.004439a0
mov dword [ebp - 0x30], 1
add esp, 8
push 0x24
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x34], eax
test edi, edi
jne 0x44e71f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x7b
ja 0x44e6bc
je 0x44e691
mov ecx, eax
sub ecx, 5
je 0x44e666
sub ecx, 1
jne 0x44e6c3
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x44e6ef
push str.Inst_StopService:_Service_could_not_be_opened
push eax
push 1
call fcn.00443b80
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Service_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.004439a0
add esp, 8
mov esi, 1
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Service_successfully_opened_with_reduced_permissions
push 2
jmp 0x44e72f
push str.Inst_StopService:_Service_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x44e761
push str.Inst_StopService:_Could_not_query_service_status
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.00443b40
add esp, 0xc
jmp 0x44ec06
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x44e775
mov eax, dword [ecx*4 + 0x4e9570]
jmp 0x44e77a
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push str.Inst_StopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
cmp eax, 3
jne 0x44e854
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
add ebx, 0x1f4
push eax
push edi
add esi, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44e8a8
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x44e7de
mov eax, dword [ecx*4 + 0x4e9570]
jmp 0x44e7e3
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push str.Inst_StopService:_service_status:__s_cp0x_08x
push 2
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, dword [ebp - 8]
jbe 0x44e81d
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push str.Inst_StopService:_Updating_sleep_hint:__d
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
xor ebx, ebx
jmp 0x44e840
cmp ebx, dword [ebp - 0xc]
jbe 0x44e840
push str.Inst_StopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.004439a0
push esi
push 0x1e
push str.Inst_StopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
call fcn.004439a0
add esp, 0x18
cmp esi, 0x7530
jae 0x44e88e
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x44e7a0
cmp eax, 1
jne 0x44e8c7
push str.Inst_StopService:_Service_already_stopped
push 0x10
call fcn.004439a0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0x1e
push str.Inst_StopService:_Slept_for__i_seconds__giving_up
push 1
call fcn.004439a0
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp 0x44e859
push str.Inst_StopService:_Could_not_query_service_status__presume_stopped
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.00443b40
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp 0x44e859
cmp dword [ebp + 0xc], 0
je 0x44ea00
push str.Inst_StopService:_Stopping_dependents__if_any
push 2
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004439a0
add esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x44e913
push str.Inst_StopService:_No_dependents_exist
push 0x10
jmp 0x44ea07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x44e935
push str.Inst_StopService:_Enumeration_failed_for_unexpected_reason
push eax
push 1
call fcn.00443b80
add esp, 0xc
jmp 0x44ea0f
push str.Inst_StopService:_Dependents_exist
push 2
call fcn.004439a0
push dword [ebp - 0xc]
call fcn.0047c3b0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x44e961
push str.Inst_StopService:_couldnt_allocate_memory_to_enumerate_dependencies
push 1
jmp 0x44ea07
push dword [ebp - 0xc]
push 0
push esi
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x44e9a4
push str.Inst_StopService:_Enumeration_failed_for_unexpected_reason
push 0xea
push 1
call fcn.00443b80
push esi
call fcn.0047b1a0
add esp, 0x10
jmp 0x44ea0f
xor ebx, ebx
cmp dword [ebp - 8], ebx
jbe 0x44e9f5
mov edi, esi
nop dword [eax]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edi + 0x10]
movd esi, xmm1
movups xmmword [ebp - 0x4c], xmm0
push esi
push ebx
push str.Inst_StopService:_Attempting_to_stop___d__s
push 0x20
call fcn.004439a0
push 0
push esi
call fcn.0044e3c0
push esi
push ebx
push str.Inst_StopService:_Done_stopping___d__s
push 0x20
call fcn.004439a0
inc ebx
lea edi, [edi + 0x24]
add esp, 0x28
cmp ebx, dword [ebp - 8]
jb 0x44e9b0
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push esi
call fcn.0047b1a0
add esp, 4
jmp 0x44ea0f
push str.Inst_StopService:_Not_told_to_stop_dependents
push 0x20
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44ea95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x44ea89
cmp eax, 0x6d
je 0x44ea7d
cmp eax, 0x41b
jne 0x44ea4a
push str.Inst_StopService:_Service_could_not_be_stopped:_need_to_stop_dependents
push 1
call fcn.004439a0
add esp, 8
jmp 0x44ea5a
push str.Inst_StopService:_Service_could_not_be_stopped
push eax
push 1
call fcn.00443b80
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.Inst_StopService:_Broken_pipe__service_may_already_have_stopped
push 1
jmp 0x44e860
push str.Inst_StopService:_Service_is_already_stopped
push 1
jmp 0x44e860
push str.Inst_StopService:_Successfully_sent_stop_command
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44e746
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.0044e0c0
add esp, 4
push eax
push str.Inst_StopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x24], 3
mov dword [ebp - 8], eax
jne 0x44ebd0
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
add ebx, 0x1f4
push eax
push edi
add esi, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44ebba
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x44eb2e
mov eax, dword [ecx*4 + 0x4e9570]
jmp 0x44eb33
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push str.Inst_StopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, dword [ebp - 0x34]
jbe 0x44eb6d
push dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
push str.Inst_StopService:_Updating_sleep_hint:__d
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x44eb96
cmp dword [ebp - 0x24], 1
je 0x44eb96
cmp ebx, dword [ebp - 8]
jbe 0x44eb96
push str.Inst_StopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.004439a0
push esi
push 0x1e
push str.Inst_StopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
call fcn.004439a0
add esp, 0x18
cmp esi, 0x7530
jae 0x44ebaa
cmp dword [ebp - 0x24], 3
je 0x44eaf0
jmp 0x44ebd0
push 0x1e
push str.Inst_StopService:_Slept_for__i_seconds__giving_up
push 1
call fcn.004439a0
jmp 0x44ebcd
push str.Inst_StopService:_Could_not_query_service_status
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.00443b40
add esp, 0xc
cmp dword [ebp - 0x24], 1
jne 0x44ebee
push str.Inst_StopService:_Service_is_stopped
push 0x10
call fcn.004439a0
add esp, 8
mov dword [ebp - 0x30], 1
jmp 0x44ec06
push dword [ebp - 0x24]
call fcn.0044e0c0
push eax
push str.Inst_StopService:_Service_is_not_stopped:__s
push 1
call fcn.004439a0
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret