Function at 0x48b5f0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
mov dword [ebp - 0x2c], eax
push esi
xor edi, edi
xor ebx, ebx
push esi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x48b7b6
push 0xf003f
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x48b706
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x30]
cmp eax, 5
jne 0x48b6f1
push 0x60000
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x48b6f1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
push eax
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], esi
push eax
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
test eax, eax
jne 0x48b6c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48b6c5
mov eax, dword [ebp - 0x28]
push eax
push 8
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x48b6c8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x38]
push esi
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
mov esi, dword [ebp - 0x24]
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x4c]
push eax
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
push 0xf003f
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x48b75b
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x48b75b
test byte [ebp - 0x1c], 6
jne 0x48b75b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x34], eax
test esi, esi
je 0x48b76d
test ebx, ebx
je 0x48b76d
push esi
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x48b77e
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x48b785
push ebx
call eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x48b7a2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret