Function at 0x1400258e0
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x310
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, rcx
call fcn.14002586c
test eax, eax
je 0x140025927
xor eax, eax
jmp 0x140025d02
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
jne 0x14002596e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_OpenSCManager_0x_x
lea ecx, [r12 + 1]
call fcn.140001110
mov eax, ebx
jmp 0x140025d02
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xf0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
mov rcx, qword [0x1400a42e8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400259d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_GetModuleFileName_0x_x
mov ecx, 1
call fcn.140001110
mov eax, ebx
jmp 0x140025d02
lea r8, [rbx + 0x288]
lea rdx, [rbx + 0x88]
and qword [rsp + 0x60], 0
lea rax, str.NT_AUTHORITYNetworkService
mov qword [rsp + 0x58], rax
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x38], rax
mov edi, 1
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, 0xf01ff
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140025aa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov ebp, 0x80070000
or ecx, ebp
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070431
jne 0x140025a76
lea rdx, str.CRecvrServiceModule::Install:_Service_already_exists
mov ecx, edi
call fcn.140001110
jmp 0x140025c40
movzx ebx, cx
or ebx, ebp
test ecx, ecx
cmovle ebx, ecx
mov r8d, ebx
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_CreateService_0x_x
mov ecx, edi
call fcn.140001110
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140025d02
lea rax, [rbx + 0x488]
mov qword [rsp + 0xb0], rax
lea r8, [rsp + 0xb0]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebp, 0x80070000
test eax, eax
jne 0x140025aed
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, ebp
test eax, eax
cmovle r8d, eax
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_ChangeServiceConfig2_0x_x
mov ecx, edi
call fcn.140001110
mov dword [rsp + 0x78], edi
mov eax, 0x1388
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x84], eax
and dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0xb8], edi
lea rax, [0x140058990]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], 3
lea rax, [rsp + 0x78]
mov qword [rsp + 0xd8], rax
lea r8, [rsp + 0xb8]
mov edx, 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140025b88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, ebp
test eax, eax
cmovle r8d, eax
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_ChangeServiceConfig2_0x_x
mov ecx, edi
call fcn.140001110
mov dword [rsp + 0x74], edi
lea r8, [rsp + 0x74]
mov edx, 5
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140025bdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_configure_service_SID_TYPE_0x_x
mov ecx, edi
call fcn.140001110
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140025d02
lea rax, str.SeChangeNotifyPrivilege
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x90]
mov edx, 6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140025c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov r8d, ebx
lea rdx, str.CRecvrServiceModule::Install:_Failed_to_configure_service_REQUIRED_PRIVLEDGES_0x_x
mov ecx, edi
call fcn.140001110
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140025d02
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov dword [rsp + 0x70], edi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionMedia_CenterServiceVideo
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140025cbd
mov rcx, qword [rsp + 0x98]
call fcn.14004c8e8
lea rcx, str.b622553e_eadb_445e_9493_c3df5af99268
call fcn.14004be8c
test eax, eax
jns 0x140025cde
mov r8d, eax
lea rdx, str.CRecvrServiceModule::Install:_SetDCOMPermissions_failed_0x_X
mov ecx, edi
call fcn.140001110
test rsi, rsi
je 0x140025ced
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140025d00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140001170
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret