Function at 0x140007538
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
call fcn.140007988
mov ebx, eax
test eax, eax
js 0x140007837
jne 0x14000758d
mov ecx, 0xbb8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
lea rdi, vtable.__SmartServiceHANDLE.0
mov qword [rbp - 0x68], rdi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x60], rax
test rax, rax
je 0x1400077f2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x103
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
and qword [rbp - 0x70], 0
mov qword [rbp - 0x78], rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x6e
call fcn.14000747c
mov rsi, rax
lea r8, str.WMI_Performance_Adapter
test rax, rax
cmovne r8, rax
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea rdx, str.WmiApSrv
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov r15, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140007780
mov ebx, 0x8007000e
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x6f
call fcn.14000747c
mov r14, rax
lea edi, [rbx - 0xe]
test rax, rax
je 0x14000771e
xor ebx, ebx
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
lea edx, [rbx + 1]
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x14000770f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400076ef
movzx eax, ax
or eax, edi
test eax, eax
jns 0x14000770a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000770f
movzx ebx, ax
or ebx, edi
jmp 0x14000770f
mov ebx, 0x80004005
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov dword [rsp + 0x70], 1
mov eax, 0xea60
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], eax
mov dword [rbp - 0x58], 0x15180
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov edx, 2
mov dword [rbp - 0x40], edx
lea rax, [rsp + 0x70]
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x58]
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x1400077d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400077a7
test rsi, rsi
je 0x140007796
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor esi, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, 0x80070000
test eax, eax
jle 0x1400077b2
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1400077cd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
jle 0x1400077d2
movzx ebx, ax
or ebx, edi
jmp 0x1400077d2
mov ebx, 0x80004005
test rsi, rsi
je 0x1400077e7
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x78]
call fcn.1400059ac
jmp 0x14000782e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, 0x80070000
test eax, eax
jle 0x14000780e
movzx eax, ax
or eax, edi
test eax, eax
jns 0x140007829
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000782e
movzx ebx, ax
or ebx, edi
jmp 0x14000782e
mov ebx, 0x80004005
lea rcx, [rbp - 0x68]
call fcn.1400059ac
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140002010
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret