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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x42d9c2
push str.VNLStopService:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
push str.VNLStopService:_Attempting_to_stop_service:__S__stop_dependents___d_
push 0x20
call fcn.004439a0
add esp, 0x10
push 0xf003f
push 0x4ae7f8
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x42db13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42da44
cmp eax, 0x57
je 0x42da31
cmp eax, 0x429
je 0x42da1e
push eax
push str.VNLStopService:_Service_Manager_open_failed:_0x_08X
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x42da5f
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x42da55
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x42da55
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
push SysReAllocString
push 0x4ae7f8
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x42db0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42dacd
cmp eax, 0x57
je 0x42daba
cmp eax, 0x429
je 0x42daa7
push eax
push str.VNLStopService:_Service_Manager_open_failed:_0x_08X
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x42dae8
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x42dade
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x42dade
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
push str.VNLStopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.004439a0
add esp, 0x10
push str.VNLStopService:_service_stop_failed
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLStopService:_Service_Manager_successfully_opened_with_reduced_permissions
push 2
jmp 0x42db1a
push str.VNLStopService:_Service_Manager_successfully_opened
push 0x10
call fcn.004439a0
add esp, 8
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x42dce3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], ebx
cmp eax, 0x7b
ja 0x42db85
je 0x42db76
mov ecx, eax
sub ecx, 5
je 0x42db67
sub ecx, 1
jne 0x42db8c
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.004439a0
jmp 0x42dbb3
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
jmp 0x42dbb3
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.004439a0
jmp 0x42dbb3
cmp eax, 0x424
je 0x42db9f
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42dbb6
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.004439a0
mov dword [ebp - 0x34], 1
add esp, 0xc
push 0x24
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x42dcd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
ja 0x42dc74
je 0x42dc48
mov ecx, eax
sub ecx, 5
je 0x42dc1c
sub ecx, 1
jne 0x42dc7b
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x42dca8
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.004439a0
add esp, 0xc
mov esi, 1
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_successfully_opened_with_reduced_permissions
push 2
jmp 0x42dceb
push edi
push str.VNLStopService:_Service__S_successfully_opened
push 0x10
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42dd1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLStopService:_Could_not_query_service__S_status:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push esi
jmp 0x42e22a
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x42dd33
mov eax, dword [ecx*4 + 0x4e9274]
jmp 0x42dd38
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push edi
push str.VNLStopService:_service__S_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp eax, 3
jne 0x42de21
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0xc], 0x1f4
lea eax, [ebp - 0x28]
push eax
push esi
add ebx, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42de58
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x42dd9f
mov eax, dword [ecx*4 + 0x4e9274]
jmp 0x42dda4
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push edi
push str.VNLStopService:_service__S_status:__s_cp0x_08x
push 2
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, dword [ebp - 8]
jbe 0x42dde4
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push str.VNLStopService:_Updating_sleep_hint:__d
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
jmp 0x42de15
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x30]
jbe 0x42de15
push str.VNLStopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.004439a0
add esp, 8
cmp ebx, 0x7530
jae 0x42de33
push ebx
push 0x1e
push str.VNLStopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
call fcn.004439a0
add esp, 0x10
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x42dd60
cmp eax, 1
jne 0x42de83
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x42e087
push 0x1e
push str.VNLStopService:_Slept_for__i_seconds__giving_up
push 1
call fcn.004439a0
add esp, 0xc
mov dword [ebp - 0x24], 1
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x42e087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLStopService:_Could_not_query_service__S_status__presume_stopped:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
mov dword [ebp - 0x24], 1
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x42e087
cmp dword [ebp + 0xc], 0
je 0x42dfc2
push str.VNLStopService:_Stopping_dependents__if_any
push 0x20
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 esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x42decf
push str.VNLStopService:_No_dependents_exist
push 0x10
jmp 0x42dfc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x42def2
push eax
push edi
push str.VNLStopService:_Enumeration_of__S_failed_for_unexpected_reason:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x42dfd1
push str.VNLStopService:_Dependents_exist
push 0x20
call fcn.004439a0
push dword [ebp - 0xc]
call fcn.0047c3b0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x42df1e
push str.VNLStopService:_couldnt_allocate_memory_to_enumerate_dependencies
push 1
jmp 0x42dfc9
push dword [ebp - 0xc]
push 0
push ebx
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x42df62
push 0xea
push edi
push str.VNLStopService:_Enumeration_of__S_failed_for_unexpected_reason:_0x_08x
push 1
call fcn.004439a0
push ebx
call fcn.0047b1a0
add esp, 0x14
jmp 0x42dfd1
xor ebx, ebx
cmp dword [ebp - 8], ebx
jbe 0x42dfb5
mov edi, dword [ebp - 0x30]
nop dword [eax]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edi + 0x10]
movd esi, xmm1
movups xmmword [ebp - 0x50], xmm0
push esi
push ebx
push str.VNLStopService:_Attempting_to_stop___d__S
push 0x20
call fcn.004439a0
push 0
push esi
call fcn.0042d970
push esi
push ebx
push str.VNLStopService:_Done_stopping___d__S
push 0x20
call fcn.004439a0
inc ebx
lea edi, [edi + 0x24]
add esp, 0x28
cmp ebx, dword [ebp - 8]
jb 0x42df70
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x30]
call fcn.0047b1a0
add esp, 4
jmp 0x42dfd1
push str.VNLStopService:_Not_told_to_stop_dependents
push 0x20
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42e0b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x42e07f
cmp eax, 0x6d
je 0x42e049
cmp eax, 0x41b
jne 0x42e015
push edi
push str.VNLStopService:_Service__S_could_not_be_stopped:_need_to_stop_dependents
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x42e026
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_stopped:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Broken_pipe_for__S__service_may_already_have_stopped
push 1
call fcn.004439a0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_is_already_stopped
push 1
call fcn.004439a0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLStopService:_Successfully_sent_stop_command
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42dd02
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.0042bee0
add esp, 4
push eax
push str.VNLStopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x24], 3
mov dword [ebp - 8], eax
jne 0x42e1f0
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
add ebx, 0x1f4
push eax
push dword [ebp - 0x38]
add esi, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42e1d9
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x42e150
mov eax, dword [ecx*4 + 0x4e9274]
jmp 0x42e155
mov eax, dword [str.INVALID]
push dword [ebp - 0x14]
push eax
push str.VNLStopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.004439a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, dword [ebp - 0x30]
jbe 0x42e18f
push dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
push str.VNLStopService:_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 0x42e1c3
cmp dword [ebp - 0x24], 1
je 0x42e1c3
cmp ebx, dword [ebp - 8]
jbe 0x42e1c3
push str.VNLStopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.004439a0
add esp, 8
cmp esi, 0x7530
jae 0x42e1cf
push esi
push 0x1e
push str.VNLStopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
call fcn.004439a0
add esp, 0x10
cmp dword [ebp - 0x24], 3
je 0x42e110
jmp 0x42e1f0
push edi
push 0x1e
push str.VNLStopService:_Slept_for__i_seconds___S___giving_up
jmp 0x42e1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.VNLStopService:_Could_not_query_service__S_status:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
cmp dword [ebp - 0x24], 1
jne 0x42e20e
push str.VNLStopService:_Service_is_stopped
push 0x10
call fcn.004439a0
add esp, 8
mov dword [ebp - 0x34], 1
jmp 0x42e227
push dword [ebp - 0x24]
call fcn.0042bee0
push eax
push edi
push str.VNLStopService:_Service__S_is_not_stopped:__s
push 1
call fcn.004439a0
add esp, 0x14
push dword [ebp - 0x38]
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 - 0x34]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret