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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4ed018]
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 - 0x2c], 0
mov dword [ebp - 0x28], eax
test edi, edi
jne 0x4341b2
push str.VNLStopService:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
push eax
push edi
push str.VNLStopService:_Attempting_to_stop_service:__S__stop_dependents___d_
push 0x20
call fcn.00446b80
add esp, 0x10
push 0xf003f
push 0x4b9210
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x434307
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x434235
cmp eax, 0x57
je 0x434222
cmp eax, 0x429
je 0x43420f
push eax
push str.VNLStopService:_Service_Manager_open_failed:_0x_08X
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x434250
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x434246
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x434246
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.00446b80
add esp, 0x10
push closesocket
push 0x4b9210
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], eax
test esi, esi
jne 0x4342fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4342be
cmp eax, 0x57
je 0x4342ab
cmp eax, 0x429
je 0x434298
push eax
push str.VNLStopService:_Service_Manager_open_failed:_0x_08X
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x4342d9
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_DATABASE_DOES_NOT_EXIST
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x4342cf
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_INVALID_PARAMETER
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_system_config_appears_to_be_corrupt
jmp 0x4342cf
push str.VNLStopService:_Service_Manager_open_failed:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
push str.VNLStopService:_Service_Manager_open_failed:_you_must_be_an_administrator
push 1
call fcn.00446b80
add esp, 0x10
push str.VNLStopService:_service_stop_failed
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, str.VNLStopService:_Service_Manager_successfully_opened_with_reduced_permissions
jmp 0x434311
mov eax, 0x10
mov ecx, str.VNLStopService:_Service_Manager_successfully_opened
push ecx
push eax
call fcn.00446b80
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 0x4344de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], ebx
cmp eax, 0x7b
ja 0x43437e
je 0x43436f
mov ecx, eax
sub ecx, 5
je 0x434360
sub ecx, 1
jne 0x434385
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.00446b80
jmp 0x4343ac
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
jmp 0x4343ac
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.00446b80
jmp 0x4343ac
cmp eax, 0x424
je 0x434398
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x4343af
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_SERVICE_DOES_NOT_EXIST
push 4
call fcn.00446b80
mov dword [ebp - 0x34], 1
add esp, 0xc
push 0x24
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x4344d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
ja 0x43446d
je 0x434441
mov ecx, eax
sub ecx, 5
je 0x434415
sub ecx, 1
jne 0x434474
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_HANDLE
push 1
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_ACCESS_DENIED
push 1
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_ERROR_INVALID_NAME
push 1
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x4344a1
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_opened:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
push dword [ebp - 0x24]
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.00401bd5
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.00446b80
add esp, 0xc
mov esi, 1
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, str.VNLStopService:_Service__S_successfully_opened_with_reduced_permissions
jmp 0x4344e8
mov eax, 0x10
mov ecx, str.VNLStopService:_Service__S_successfully_opened
push edi
push ecx
push eax
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x43451f
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.00446b80
add esp, 0x10
push esi
jmp 0x434a2d
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x434533
mov eax, dword [ecx*4 + 0x4ef2a4]
jmp 0x434538
mov eax, dword [str.INVALID]
push dword [ebp - 0xc]
push eax
push edi
push str.VNLStopService:_service__S_status:__s_cp0x_08x
push 0x20
call fcn.00446b80
mov eax, dword [ebp - 8]
add esp, 0x14
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x434624
nop
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x28], 0x1f4
lea eax, [ebp - 0x20]
push eax
push esi
add ebx, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43465b
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x43459f
mov eax, dword [ecx*4 + 0x4ef2a4]
jmp 0x4345a4
mov eax, dword [str.INVALID]
push dword [ebp - 0xc]
push eax
push edi
push str.VNLStopService:_service__S_status:__s_cp0x_08x
push 2
call fcn.00446b80
mov eax, dword [ebp - 0xc]
add esp, 0x14
cmp eax, dword [ebp - 0x2c]
jbe 0x4345e4
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push str.VNLStopService:_Updating_sleep_hint:__d
push 0x20
call fcn.00446b80
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
jmp 0x434618
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jbe 0x434618
push str.VNLStopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.00446b80
add esp, 8
cmp ebx, 0x7530
jae 0x434636
push ebx
push 0x1e
push str.VNLStopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
lfence
call fcn.00446b80
add esp, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, 3
je 0x434560
cmp eax, 1
jne 0x434686
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x434882
push 0x1e
push str.VNLStopService:_Slept_for__i_seconds__giving_up
push 1
call fcn.00446b80
add esp, 0xc
mov dword [ebp - 0x1c], 1
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x434882
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.00446b80
add esp, 0x10
mov dword [ebp - 0x1c], 1
push edi
push str.VNLStopService:_Service__S_already_stopped
push 0x10
jmp 0x434882
cmp dword [ebp + 0xc], 0
je 0x4347bd
push str.VNLStopService:_Stopping_dependents__if_any
push 0x20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.00446b80
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x4346d2
push str.VNLStopService:_No_dependents_exist
push 0x10
jmp 0x4347c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4346f5
push eax
push edi
push str.VNLStopService:_Enumeration_of__S_failed_for_unexpected_reason:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x4347cc
push str.VNLStopService:_Dependents_exist
push 0x20
call fcn.00446b80
push dword [ebp - 0x28]
call fcn.0047ee60
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x434721
push str.VNLStopService:_couldnt_allocate_memory_to_enumerate_dependencies
push 1
jmp 0x4347c4
push dword [ebp - 0x28]
push 0
push ebx
call fcn.00411960
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x434765
push 0xea
push edi
push str.VNLStopService:_Enumeration_of__S_failed_for_unexpected_reason:_0x_08x
push 1
call fcn.00446b80
push ebx
call fcn.0047ee40
add esp, 0x14
jmp 0x4347cc
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x4347b0
mov edi, dword [ebp - 0x30]
nop
mov esi, dword [edi]
movups xmm0, xmmword [edi + 0x10]
push esi
push ebx
push str.VNLStopService:_Attempting_to_stop___d__S
push 0x20
movups xmmword [ebp - 0x50], xmm0
call fcn.00446b80
push 0
push esi
call fcn.00434160
push esi
push ebx
push str.VNLStopService:_Done_stopping___d__S
push 0x20
call fcn.00446b80
inc ebx
lea edi, [edi + 0x24]
add esp, 0x28
cmp ebx, dword [ebp - 0x2c]
jb 0x434770
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x30]
call fcn.0047ee40
add esp, 4
jmp 0x4347cc
push str.VNLStopService:_Not_told_to_stop_dependents
push 0x20
call fcn.00446b80
add esp, 8
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4348b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x43487a
cmp eax, 0x6d
je 0x434844
cmp eax, 0x41b
jne 0x434810
push edi
push str.VNLStopService:_Service__S_could_not_be_stopped:_need_to_stop_dependents
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x434821
push eax
push edi
push str.VNLStopService:_Service__S_could_not_be_stopped:_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Broken_pipe_for__S__service_may_already_have_stopped
push 1
call fcn.00446b80
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push str.VNLStopService:_Service__S_is_already_stopped
push 1
call fcn.00446b80
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret
push str.VNLStopService:_Successfully_sent_stop_command
push 0x10
call fcn.00446b80
add esp, 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x434502
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call fcn.004326d0
add esp, 4
push eax
push str.VNLStopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.00446b80
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov eax, dword [ebp - 8]
xor esi, esi
cmp dword [ebp - 0x1c], 3
mov dword [ebp - 0x2c], eax
jne 0x4349f3
nop word [eax + eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
add ebx, 0x1f4
push eax
push dword [ebp - 0x38]
add esi, 0x1f4
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4349dc
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp eax, 6
ja 0x434950
mov eax, dword [ecx*4 + 0x4ef2a4]
jmp 0x434955
mov eax, dword [str.INVALID]
push dword [ebp - 0xc]
push eax
push str.VNLStopService:_service_status:__s_cp0x_08x
push 0x20
call fcn.00446b80
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp eax, dword [ebp - 0x30]
jbe 0x43498f
push dword [ebp - 8]
mov dword [ebp - 0x30], eax
push str.VNLStopService:_Updating_sleep_hint:__d
push 0x20
call fcn.00446b80
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
xor ebx, ebx
jmp 0x4349c6
cmp dword [ebp - 0x1c], 1
je 0x4349c6
cmp ebx, dword [ebp - 0x2c]
jbe 0x4349c6
push str.VNLStopService:_Slept_hint_duration_without_any_progress
push 0x20
call fcn.00446b80
add esp, 8
cmp esi, 0x7530
jae 0x4349d2
push esi
push 0x1e
push str.VNLStopService:_Not_giving_up_yet_since_havent_slept_for__i_seconds:__d
push 0x20
lfence
call fcn.00446b80
add esp, 0x10
cmp dword [ebp - 0x1c], 3
je 0x434910
jmp 0x4349f3
push edi
push 0x1e
push str.VNLStopService:_Slept_for__i_seconds___S___giving_up
jmp 0x4349e9
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.00446b80
add esp, 0x10
cmp dword [ebp - 0x1c], 1
jne 0x434a11
push str.VNLStopService:_Service_is_stopped
push 0x10
call fcn.00446b80
add esp, 8
mov dword [ebp - 0x34], 1
jmp 0x434a2a
push dword [ebp - 0x1c]
call fcn.004326d0
push eax
push edi
push str.VNLStopService:_Service__S_is_not_stopped:__s
push 1
call fcn.00446b80
add esp, 0x14
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
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.00401bd5
mov esp, ebp
pop ebp
ret