Function at 0x422d95
Capabilities:
Delete service
Terminate process

Disassembly:
push 0x40
mov eax, 0x4cdbe1
call fcn.004b17f0
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [0x50a154]
xor esi, esi
push str.ScmDirectStop:__s:_browsing_virt_services_under_the_real_Services_key
push eax
mov dword [ebp - 0x18], esi
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.004237b9
push esi
push 1
push 1
lea eax, [ebp - 0x4c]
push eax
push ecx
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SystemCurrentControlSetServices
call fcn.0042341f
push SysReAllocStringLen
call fcn.00468420
add esp, 0x18
cmp eax, esi
jne 0x422e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push str.ScmDirectStop:_failed_listing_Services_regkey__LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.0042378d
mov eax, esi
jmp 0x4230e0
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x3c]
jbe 0x422e3f
call fcn.004aba61
mov eax, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], esi
jbe 0x422e5b
call fcn.004aba61
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042395a
test al, al
je 0x4230c2
call fcn.0043eaf7
push eax
lea ecx, [ebp - 0x14]
call fcn.00423aca
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x50a154
call fcn.0042340a
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00423aca
mov byte [ebp - 4], 1
call fcn.00421c46
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x423026
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_found_virtual_service_related_to_this_app:__s
push eax
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x422efb
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x423042
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_stopping_virtual_service__s
push eax
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00470e00
pop ecx
pop ecx
test eax, eax
jne 0x422f46
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_DoStopSvc_failed__Proceeding_anyways._LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
cmp dword [ebp + 8], edi
je 0x423026
push 0x10020
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x422f7f
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_OpenService_failed__LE_d
push ecx
call fcn.00466a00
add esp, 0xc
jmp 0x422fec
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_DeleteService__s_
push eax
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x423026
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_DeleteService_failed__LE_d_._Forcing_Registry_removal.
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
lea eax, [ebp - 0x14]
call fcn.00423565
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x422ff4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._ScmDirectStop:_PANIC_check__SvcName_regKey_empty__
call fcn.0042341f
call fcn.00421d1d
pop ecx
jmp 0x423026
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push str.SystemCurrentControlSetServices_
push eax
call fcn.004236c3
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
push SysReAllocStringLen
call fcn.00467e50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0042101a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
lea esi, [ebp - 0x2c]
call fcn.00423977
jmp 0x422e4e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00465540
test eax, eax
jne 0x42309a
call ebx
cmp eax, 5
jne 0x42309a
call fcn.00465590
test eax, eax
jne 0x423093
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_FAILED_elevating_process_for_opening_SCM:_LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push 0x11
pop esi
jmp 0x422e1e
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push str.ScmDirectStop:_FAILED_opening_SCM:_LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.00421d1d
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x423080
cmp dword [ebp - 0x18], 0
je 0x4230d1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.0042378d
xor eax, eax
call fcn.004b18c8
ret