Function at 0x1400050ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rcx
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
xor edi, edi
mov ebx, 0x100
mov dword [rsp + 0x48], ebx
and qword [rsp + 0x30], rdi
lea r8, str.CVdsServiceModule::RegisterServer__
lea r15d, [rdi + 0x5e]
mov edx, r15d
lea rcx, [rsp + 0x68]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdi + 0x28]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140005165
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__1___lX
jmp 0x14000530e
mov rcx, rsi
call fcn.140005e94
test eax, eax
jne 0x140005182
mov ebx, 0x80004005
lea r8, str.CVdsServiceModule::RegisterServer__2___lX
jmp 0x14000530b
mov rcx, rsi
call fcn.14000565c
cmp eax, 1
je 0x1400051a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r8, str.CVdsServiceModule::RegisterServer__3___lX
jmp 0x1400052fd
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a0d80]
call qword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov ebx, eax
test eax, eax
jns 0x1400051c8
mov r9d, eax
lea r8, str.CVdsServiceModule::RegisterServer__4___lX
jmp 0x14000530e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
mov ecx, 1
call qword [sym.imp.vdsutil.dll_unsigned_long_int___cdecl_InitializeSecurityDescriptor_unsigned_long_int__void____ptr64__struct__ACL____ptr64____ptr64__void____ptr64____ptr64__void____ptr64____ptr64__void____ptr64____ptr64_]
mov edi, eax
test eax, eax
je 0x140005208
lea r8, str.CVdsServiceModule::RegisterServer__5___lX
jmp 0x1400052fd
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x140005232
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea r8, str.CVdsServiceModule::RegisterServer__6___lX
jmp 0x1400052fd
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetSecurityDescriptorLength]
mov esi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2000000
xor r8d, r8d
lea rdx, str.AppIDF290BFB2_1864_45B1_8804_2654194A87E7
mov rcx, 0xffffffff80000000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140005277
lea r8, str.CVdsServiceModule::RegisterServer__7___lX
jmp 0x1400052fd
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.LaunchPermission
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x1400052ae
lea r8, str.CVdsServiceModule::RegisterServer__8___lX
jmp 0x1400052fd
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.AccessPermission
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x1400052e5
lea r8, str.CVdsServiceModule::RegisterServer__9___lX
jmp 0x1400052fd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, eax
test eax, eax
je 0x140005319
lea r8, str.CVdsServiceModule::RegisterServer__10___lX
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
xor edx, edx
mov ecx, r15d
call qword [sym.imp.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_]
and qword [rsp + 0x58], 0
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_]
and qword [rsp + 0x50], 0
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_]
and qword [rsp + 0x38], 0
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_]
and qword [rsp + 0x40], 0
test ebx, ebx
jns 0x1400053ad
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010009
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.140004f14
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14004eb20
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret