Function at 0x5e09b0
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f9411
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
je 0x5e0a72
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x5e0a6b
push ebp
push 0x61bac8
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x5e0a49
push 0x3e8
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x61bac8
push esi
call ebp
test eax, eax
je 0x5e0a49
cmp dword [0x61bacc], 3
jne 0x5e0a49
push 0x3e8
call edi
push 0x61bac8
push esi
call ebp
test eax, eax
jne 0x5e0a2d
mov ebp, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebp
test eax, eax
jne 0x5e0a61
push 0x64
call edi
push esi
call ebp
test eax, eax
je 0x5e0a56
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
pop ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xc
call fcn.005ea803
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0x24], edi
je 0x5e0a96
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.005d8c20
jmp 0x5e0a98
xor eax, eax
or ebx, 0xffffffff
cmp eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
jne 0x5e0ab1
push 0x8007000e
call fcn.005f8460
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push str.SYSTEMCurrentControlSetEnumRootLEGACY_
push eax
mov dword [esp + 0x30], 1
call fcn.005e0550
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x24], 3
cmp ecx, edi
je 0x5e0ae6
call fcn.005d8ce0
mov dword [esp + 0x10], edi
push 0xc
call fcn.005ea803
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x24], 4
je 0x5e0b0b
push str.0000Control
mov ecx, eax
call fcn.005d8c20
jmp 0x5e0b0d
xor eax, eax
cmp eax, edi
mov byte [esp + 0x24], 3
mov dword [esp + 0x14], eax
jne 0x5e0b24
push 0x8007000e
call fcn.005f8460
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call fcn.005d8a30
mov eax, dword [eax]
cmp eax, edi
je 0x5e0b46
mov eax, dword [eax]
jmp 0x5e0b48
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x5e0b67
call fcn.005d8ce0
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], 3
cmp ecx, edi
je 0x5e0b79
call fcn.005d8ce0
push 0xc
call fcn.005ea803
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x24], 6
je 0x5e0b9e
push str.0000
mov ecx, eax
call fcn.005d8c20
jmp 0x5e0ba0
xor eax, eax
cmp eax, edi
mov byte [esp + 0x24], 3
mov dword [esp + 0x2c], eax
jne 0x5e0bb7
push 0x8007000e
call fcn.005f8460
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call fcn.005d8a30
mov eax, dword [eax]
cmp eax, edi
je 0x5e0bd9
mov eax, dword [eax]
jmp 0x5e0bdb
xor eax, eax
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x5e0bf4
call fcn.005d8ce0
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x5e0c05
call fcn.005d8ce0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x5e0c11
mov eax, dword [eax]
jmp 0x5e0c13
xor eax, eax
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
cmp esi, edi
je 0x5e0c5f
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5e0c5f
cmp esi, edi
je 0x5e0c5f
mov eax, dword [esi]
cmp eax, edi
je 0x5e0c46
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x5e0c56
push eax
call fcn.005ea7f8
add esp, 4
push esi
call fcn.005ea7f8
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret