Function at 0x422dcc
Capabilities:
Delete service
Terminate process

Disassembly:
push 0x40
mov eax, 0x4b8c74
call fcn.004a27f3
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [0x4ea9b0]
xor esi, esi
push str.ScmDirectStop:__s:_browsing_virt_services_under_the_real_Services_key
push eax
mov dword [ebp - 0x18], esi
call fcn.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00423919
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.00423442
push SysReAllocStringLen
call fcn.004638a0
add esp, 0x18
cmp eax, esi
jne 0x422e69
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.00423951
mov eax, esi
jmp 0x423117
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x3c]
jbe 0x422e76
call fcn.0049dc81
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 0x422e92
call fcn.0049dc81
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.0043bdfc
test al, al
je 0x4230f9
call fcn.0043bda9
push eax
lea ecx, [ebp - 0x14]
call fcn.00423ad0
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4ea9b0
call fcn.0042342d
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00423ad0
mov byte [ebp - 4], 1
call fcn.00421c5e
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x42305d
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x422f32
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x423079
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00469f90
pop ecx
pop ecx
test eax, eax
jne 0x422f7d
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
cmp dword [ebp + 8], edi
je 0x42305d
push 0x10020
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x422fb6
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.00461d60
add esp, 0xc
jmp 0x423023
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
push str.ScmDirectStop:_DeleteService__s_
push eax
call fcn.00461d60
add esp, 0xc
call fcn.00421d35
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 0x42305d
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
lea eax, [ebp - 0x14]
call fcn.00423588
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x42302b
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._ScmDirectStop:_PANIC_check__SvcName_regKey_empty__
call fcn.00423442
call fcn.00421d35
pop ecx
jmp 0x42305d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push str.SystemCurrentControlSetServices_
push eax
call fcn.004236e6
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
push SysReAllocStringLen
call fcn.004632d0
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.0042397d
jmp 0x422e85
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00460920
test eax, eax
jne 0x4230d1
call ebx
cmp eax, 5
jne 0x4230d1
call fcn.00460970
test eax, eax
jne 0x4230ca
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push 0x11
pop esi
jmp 0x422e55
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.00461d60
add esp, 0xc
call fcn.00421d35
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4230b7
cmp dword [ebp - 0x18], 0
je 0x423108
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call fcn.00423951
xor eax, eax
call fcn.004a28cb
ret