Function at 0x4b4820
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63255d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x4b4c26
mov ecx, dword [0x6ad84c]
or edi, 0xffffffff
push 0xf003f
test ecx, ecx
je 0x4b4895
lock inc dword [ecx]
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x34], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b489a
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x34]
jmp 0x4b489a
mov edx, 0x651f68
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4b4a36
call fcn.005a45d0
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4b48e3
push str.OpenService_
mov ecx, eax
call fcn.005a5480
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4b48e8
cmp dword [esi + 0xc], 0
jne 0x4b48e8
push ecx
mov ecx, esi
call fcn.005a47b0
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 2
mov ecx, dword [0x6ad84c]
test ecx, ecx
je 0x4b4916
lock inc dword [ecx]
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x34], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b491b
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x34]
jmp 0x4b491b
mov edx, 0x651f68
lea ecx, [ebp - 0x34]
call fcn.004b7ca0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.005a6c40
push 0x662438
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.005a6ce0
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4b495a
mov eax, dword [eax + 0xc]
jmp 0x4b495f
mov eax, 0x651f68
push 0x10
mov dword [ebp - 0x40], eax
call fcn.00606edf
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov dword [eax], vtable.XTOOGetLastErrorImp.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
call fcn.005d11f0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4b49a8
mov ecx, dword [ebp - 0x30]
push 0x20
push eax
call fcn.005d02c0
jmp 0x4b49cb
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xc], 0
jne 0x4b49cb
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b49c4
push ecx
call fcn.00606eda
mov eax, dword [ebp - 0x30]
add esp, 4
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4b49e1
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b49e1
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4b49f7
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b49f7
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4b4a0d
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b4a0d
push ecx
call fcn.005a47b0
test esi, esi
je 0x4b4a20
lock xadd dword [esi], edi
dec edi
jne 0x4b4a20
push ecx
mov ecx, esi
call fcn.005a47b0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b4c0b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x3c]
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x30], eax
call eax
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6ad84c]
push 0xf003f
test ecx, ecx
je 0x4b4a9a
lock inc dword [ecx]
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x3c], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b4a9f
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x3c]
jmp 0x4b4a9f
mov edx, 0x651f68
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4b4bf5
push str.OpenService_
lea ecx, [ebp - 0x44]
call fcn.005a5400
mov esi, eax
push ecx
mov dword [ebp - 4], 0xf
mov edx, esp
mov ecx, dword [0x6ad84c]
test ecx, ecx
je 0x4b4ada
lock inc dword [ecx]
jmp 0x4b4adc
xor ecx, ecx
mov dword [edx], ecx
call fcn.004b7c70
add esp, 4
lea ecx, [ebp - 0x40]
mov edx, eax
call fcn.004b7ca0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.005a6c40
push str.__for_deleting
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
push ecx
mov ecx, eax
call fcn.005a6ce0
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
test eax, eax
je 0x4b4b26
mov eax, dword [eax + 0xc]
jmp 0x4b4b2b
mov eax, 0x651f68
push 0x10
mov dword [ebp - 0x34], eax
call fcn.00606edf
mov esi, eax
add esp, 4
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi], vtable.XTOOGetLastErrorImp.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.005d11f0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4b4b71
push 0x20
push eax
mov ecx, esi
call fcn.005d02c0
jmp 0x4b4b8e
cmp dword [esi + 0xc], 0
jne 0x4b4b8e
mov eax, dword [esi + 8]
test eax, eax
je 0x4b4b87
push eax
call fcn.00606eda
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4b4ba4
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b4ba4
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4b4bba
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b4bba
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4b4bd0
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b4bd0
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4b4be4
lock xadd dword [ecx], edi
dec edi
jne 0x4b4be4
push ecx
call fcn.005a47b0
push dword [ebp - 0x50]
mov edi, dword [ebp - 0x30]
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4b4c0b
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4b4c56
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
call edi
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push str.OpenSCManager__
lea ecx, [ebp - 0x58]
call fcn.005d1470
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x48]
push eax
call fcn.006089ec
push str.DeleteService_
lea ecx, [ebp - 0x40]
call fcn.005a5400
mov esi, eax
push ecx
mov ecx, esp
mov dword [ebp - 4], 0x13
push 0x6ad84c
call fcn.005a5bd0
call fcn.004b7c70
add esp, 4
lea ecx, [ebp - 0x4c]
mov edx, eax
call fcn.004b7da0
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
push eax
mov ecx, esi
call fcn.005a6c40
push 0x662438
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x15
push ecx
mov ecx, eax
call fcn.005a6ce0
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.005a5da0
push eax
lea ecx, [ebp - 0x58]
call fcn.005d1470
lea ecx, [ebp - 0x44]
call fcn.004250c0
lea ecx, [ebp - 0x3c]
call fcn.004250c0
lea ecx, [ebp - 0x4c]
call fcn.004250c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1b
call fcn.004250c0
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
call edi
push dword [ebp - 0x50]
call edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x38]
push eax
call fcn.006089ec
int3