Function at 0x14001a270
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rbx, rcx
mov edi, 1
xor r15d, r15d
mov r13d, r15d
mov esi, 0x200
mov dword [rbp - 0x74], r15d
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x78], r15d
mov r14d, r15d
mov dword [rbp - 0x7c], r15d
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x80], r15d
mov qword [rbp - 0x60], r15
mov dword [rsp + 0x7c], r15d
mov qword [rbp - 0x58], r15
mov dword [rsp + 0x78], r15d
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x70], r15
lea r8, str.CVdsServiceModule::Install__
lea edx, [rdi + 0x5d]
lea rcx, [rbp - 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
xor edx, edx
lea r8d, [rsi + 8]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x220]
call sub.msvcrt.dll_memset
mov qword [rbp - 0x48], r15
mov rcx, rbx
call fcn.14001be34
test eax, eax
je 0x14001a455
js 0x14001ac0f
xor edx, edx
lea rcx, [0x140066760]
call qword [sym.imp.vdsutil.dll_AddEventSource]
nop dword [rax + rax]
test eax, eax
jne 0x14001ac0f
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 r12, rax
test rax, rax
jne 0x14001a3b3
lea edx, [rdi + 0x67]
lea r8d, [rdi + 0xf]
mov rcx, rbx
call fcn.140019d60
mov edi, r15d
jmp 0x14001a455
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
mov word [rbp + 0x216], r15w
lea r8, [rbx + 8]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14001a46c
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r15 + 0x69]
lea r8d, [r15 + 0x10]
mov rcx, rbx
call fcn.140019d60
xor edi, edi
lea rcx, [rbp - 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
jmp 0x14001ac21
mov r9d, pe_nt_image_headers64
lea r8, [rbp + 0x220]
mov edx, 0x70
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jle 0x14001a4d3
lea rax, [rbp + 0x220]
mov qword [rbp - 0x48], rax
lea r8, [rbp - 0x48]
mov edx, edi
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 0x14001a4fe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x2010006
jmp 0x14001a4ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x2010007
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
mov eax, dword [rbp - 0x74]
test eax, eax
cmovne esi, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov r13, rax
xor ebx, ebx
test rax, rax
je 0x14001aa8d
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r13
lea edx, [rbx + 4]
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceObjectSecurity]
nop dword [rax + rax]
test eax, eax
jne 0x14001a5a6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
je 0x14001a4fe
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000a
mov r9d, eax
jmp 0x14001aaa0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x78]
xor edx, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_MakeAbsoluteSD]
nop dword [rax + rax]
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14001a658
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x70], rax
xor ebx, ebx
test rax, rax
jne 0x14001a65b
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000b
lea r9d, [rax + 0xe]
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
mov edi, ebx
mov rbx, rsi
jmp 0x14001aab1
mov rsi, rbx
mov eax, dword [rbp - 0x7c]
test eax, eax
je 0x14001a6bf
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov r14, rax
xor ebx, ebx
test rax, rax
jne 0x14001a6bf
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000c
mov r9d, 0xe
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
mov edi, ebx
mov rbx, qword [rsp + 0x70]
jmp 0x14001aab1
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x14001a705
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x68], rax
xor ebx, ebx
test rax, rax
jne 0x14001a705
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000d
jmp 0x14001a69e
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14001a74f
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x60], rax
xor ebx, ebx
test rax, rax
jne 0x14001a74f
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000e
jmp 0x14001a69e
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x14001a799
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x58], rax
xor ebx, ebx
test rax, rax
jne 0x14001a79d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x201000f
jmp 0x14001a69e
mov rax, qword [rbp - 0x58]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [rbp - 0x78]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_MakeAbsoluteSD]
nop dword [rax + rax]
test eax, eax
jne 0x14001a818
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x2010010
mov r9d, eax
jmp 0x14001a6a4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov ecx, edi
call qword [sym.imp.vdsutil.dll_InitializeSecurityDescriptorHelper]
nop dword [rax + rax]
test eax, eax
je 0x14001a863
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x2010011
jmp 0x14001a810
movzx esi, word [r14 + 2]
mov ebx, 0xffff
mov eax, ebx
sub rax, rsi
mov ecx, 8
cmp rax, rcx
jae 0x14001a8a6
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010012
mov r9d, 0x6f
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
xor edi, edi
jmp 0x14001a6b5
add si, cx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
jne 0x14001a8d3
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010013
mov r9d, 0x539
jmp 0x14001a890
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x14001a8f9
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010014
jmp 0x14001a8cb
movzx eax, si
sub ebx, eax
cmp ecx, ebx
jbe 0x14001a915
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010015
jmp 0x14001a88a
add si, cx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
movzx ebx, si
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.vdsutil.dll_VdsHeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14001a97c
and qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2010016
lea r9d, [rax + 0xe]
jmp 0x14001a890
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [rbp - 0x78]
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_MakeAbsoluteSD]
nop dword [rax + rax]
test eax, eax
jne 0x14001aa12
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010017
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
xor edi, edi
jmp 0x14001aab1
mov word [r14 + 2], si
mov r9, qword [rbp - 0x70]
mov edx, 2
lea r8d, [rdx + 0x6e]
mov rcx, r14
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
jne 0x14001aa53
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010018
jmp 0x14001a9f9
mov r8, rbx
mov edx, 4
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_SetServiceObjectSecurity]
nop dword [rax + rax]
test eax, eax
jne 0x14001aab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010019
jmp 0x14001a9f9
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x2010008
mov r9d, 0xe
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140013198
mov edi, ebx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rbp - 0x68]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rbp - 0x60]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rbp - 0x58]
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.vdsutil.dll_VdsHeapFree]
nop dword [rax + rax]
and qword [rbp - 0x50], 0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001abb2
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14001abc7
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14001abdc
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
cmp r15, 0xffffffffffffffff
je 0x14001abf1
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
cmp r12, 0xffffffffffffffff
je 0x14001a455
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x14001a455
lea rcx, [rbp - 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400149c0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret