Function at 0x422da4
Capabilities:
Delete service
Terminate process

Disassembly:
push 0x40
mov eax, 0x4bf8fa
call fcn.004a922b
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [0x4f3af0]
xor esi, esi
push str.ScmDirectStop:__s:_browsing_virt_services_under_the_real_Services_key
push eax
mov dword [ebp - 0x18], esi
call fcn.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00425651
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.0042342e
push SysReAllocStringLen
call fcn.004633d0
add esp, 0x18
cmp eax, esi
jne 0x422e41
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.00423922
mov eax, esi
jmp 0x4230ef
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x3c]
jbe 0x422e4e
call fcn.004a44f1
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 0x422e6a
call fcn.004a44f1
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.00423905
test al, al
je 0x4230d1
call fcn.0042394e
push eax
lea ecx, [ebp - 0x14]
call fcn.00423ac9
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4f3af0
call fcn.00423419
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00423ac9
mov byte [ebp - 4], 1
call fcn.00421c36
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x423035
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x422f0a
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x423051
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00469d90
pop ecx
pop ecx
test eax, eax
jne 0x422f55
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
cmp dword [ebp + 8], edi
je 0x423035
push 0x10020
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x422f8e
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.00461920
add esp, 0xc
jmp 0x422ffb
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_DeleteService__s_
push eax
call fcn.00461920
add esp, 0xc
call fcn.00421d0d
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 0x423035
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
lea eax, [ebp - 0x14]
call fcn.00423574
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x423003
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._ScmDirectStop:_PANIC_check__SvcName_regKey_empty__
call fcn.0042342e
call fcn.00421d0d
pop ecx
jmp 0x423035
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push str.SystemCurrentControlSetServices_
push eax
call fcn.004236d2
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
push SysReAllocStringLen
call fcn.00462e00
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.00423976
jmp 0x422e5d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.004604e0
test eax, eax
jne 0x4230a9
call ebx
cmp eax, 5
jne 0x4230a9
call fcn.00460530
test eax, eax
jne 0x4230a2
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push 0x11
pop esi
jmp 0x422e2d
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.00461920
add esp, 0xc
call fcn.00421d0d
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42308f
cmp dword [ebp - 0x18], 0
je 0x4230e0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.00423922
xor eax, eax
call fcn.004a9303
ret