Function at 0x423ea2
Capabilities:
Delete service

Disassembly:
push 0x50
mov eax, 0x4dede8
call fcn.004c1f48
push ecx
mov ebx, ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
add ebx, 0xc
push dword [ebx]
xor esi, esi
push str.ScmDirectStop:__s:_browsing_virt_services_under_the_real_Services_key
push eax
mov dword [ebp - 0x14], esi
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.00426eaa
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], esi
call fcn.00426eaa
push esi
push 1
push 1
lea eax, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.SystemCurrentControlSetServices
call fcn.004247ec
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046f130
add esp, 0x18
cmp eax, esi
jne 0x423f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.ScmDirectStop:_failed_listing_Services_regkey__LE_d
push ecx
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
inc esi
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0
call fcn.00424b5a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
call fcn.00424b5a
mov eax, esi
call fcn.004c2020
ret
mov esi, dword [ebp - 0x50]
cmp esi, dword [ebp - 0x4c]
jbe 0x423f68
call fcn.004bbc61
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], esi
jbe 0x423f7e
call fcn.004bbc61
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.00424d79
test al, al
je 0x42401d
call fcn.00426f23
push eax
lea ecx, [ebp - 0x10]
call fcn.00424ebe
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push ebx
call fcn.004247d7
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00424ebe
mov byte [ebp - 4], 2
call fcn.00422d1e
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
test eax, eax
je 0x424004
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push esi
push str.ScmDirectStop:_found_virtual_service_related_to_this_app:__s
push eax
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
call fcn.00424b86
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.0042201a
lea esi, [ebp - 0x24]
call fcn.00424d4e
jmp 0x423f71
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
sub eax, esi
test eax, 0xfffffffc
jne 0x424034
push 5
pop esi
jmp 0x423f39
cmp esi, dword [ebp - 0x34]
jbe 0x42403e
call fcn.004bbc61
mov eax, dword [ebp - 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], esi
jbe 0x42405a
call fcn.004bbc61
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.00424d79
test al, al
je 0x4242e9
call fcn.00426f23
push eax
lea ecx, [ebp - 0x10]
call fcn.00424ebe
xor edi, edi
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], edi
jne 0x4240a7
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4241f2
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push str.ScmDirectStop:_stopping_virtual_service__s
push eax
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004770e0
pop ecx
pop ecx
test eax, eax
jne 0x4240f2
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.ScmDirectStop:_DoStopSvc_failed__Proceeding_anyways._LE_d
push ecx
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
cmp dword [ebp + 8], edi
je 0x4241d6
push 0x10020
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x42412b
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.ScmDirectStop:_OpenService_failed__LE_d
push ecx
call fcn.0046da40
add esp, 0xc
jmp 0x424198
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push str.ScmDirectStop:_DeleteService__s_
push eax
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
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 0x4241d6
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.ScmDirectStop:_DeleteService_failed__LE_d_._Forcing_Registry_removal.
push ecx
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
lea eax, [ebp - 0x10]
call fcn.00424932
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x4241a0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._ScmDirectStop:_PANIC_check__SvcName_regKey_empty__
call fcn.004247ec
call fcn.00422df5
pop ecx
jmp 0x4241d6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push str.SystemCurrentControlSetServices_
push eax
call fcn.00424a90
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [eax]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046eb80
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0042201a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
lea esi, [ebp - 0x24]
call fcn.00424d4e
jmp 0x42404d
call ebx
cmp eax, 5
jne 0x4242ca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0046c860
test eax, eax
jne 0x4242ca
or dword [ebp - 0x14], 0xffffffff
mov eax, str._SvcRemove
cmp dword [ebp + 8], edi
jne 0x424225
mov eax, str._SvcStop
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str._Quiet__s
push ecx
lea esi, [ebp - 0x14]
call fcn.0046da40
add esp, 8
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046ca80
pop ecx
mov ecx, edi
mov edx, esi
mov byte [ebp - 4], 4
call fcn.0046c650
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x42427a
cmp dword [ebp - 0x14], esi
jne 0x42427a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
jmp 0x423f39
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.004749f0
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 6
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push dword [esi]
push str.ScmDirectStop:_FAILED_elevating_process_for_opening_SCM:_ApiRet_s__LE_d
push ecx
call fcn.0046da40
add esp, 0x10
call fcn.00422df5
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
push 0x11
jmp 0x42402e
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push str.ScmDirectStop:_FAILED_opening_SCM:_LE_d
push ecx
call fcn.0046da40
add esp, 0xc
call fcn.00422df5
pop ecx
jmp 0x4242b8
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x423f39
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x423f39