Function at 0x14006643c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, rcx
mov qword [rsp + 0x48], rcx
lea rdx, str._api_wpr_
call fcn.14004c630
nop
lea rax, [0x1400f2c30]
mov qword [r12], rax
lea rcx, [r12 + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
nop
lea r14, [r12 + 0x58]
xor r13d, r13d
mov qword [r14], r13
lea rsi, [r12 + 0x60]
mov qword [rsi], r13
mov qword [r12 + 0x68], r13
mov qword [r12 + 0x70], r13
mov qword [r12 + 0x78], r13
mov qword [r12 + 0x80], r13
mov byte [r12 + 0x88], r13b
lea rdi, [r12 + 0x90]
lea eax, [r13 + 7]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
lea rbx, [r12 + 0xb0]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov r15d, 0x208
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x20], r13
mov r9d, r15d
lea r8, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetControlWMIAutologger_
lea rcx, str.ETWAutoLoggerPath
call qword [sym.imp.api_ms_win_stateseparation_helpers_l1_1_0.dll_GetPersistedRegistryLocationW]
test eax, eax
jne 0x14006656c
cmp word [rsp + 0x60], r13w
jne 0x140066552
mov r8d, r13d
jmp 0x140066565
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r13w
jne 0x14006655b
lea rdx, [rsp + 0x60]
jmp 0x140066579
mov r8d, 0x30
lea rdx, str.SYSTEMCurrentControlSetControlWMIAutologger_
mov rcx, rbx
call fcn.140007004
mov r8, r13
cmp word [0x1400fa498], r13w
setne r8b
lea rdx, [0x1400fa498]
mov rcx, rbx
call fcn.140008328
mov r15d, reloc.WS2_32.dll_ntohs
mov r8d, r15d
lea rdx, str.WebB_AutoLogger
mov rcx, rbx
call fcn.140008328
mov dword [rsp + 0x40], 4
cmp qword [rbx + 0x18], 8
jb 0x1400665c9
mov rbx, qword [rbx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, str.Start
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140066613
cmp dword [rsp + 0x44], r13d
setne al
mov byte [r12 + 0x88], al
mov rcx, rdi
call fcn.140065f64
mov r8, r15
lea rdx, str.WebB_AutoLogger
mov rcx, rdi
call fcn.140008328
mov r8d, 4
lea rdx, str..etl
mov rcx, rdi
call fcn.140008328
lea rcx, str.WebMgmtWPRMemorySession
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
lea rax, [rsp + 0x48]
cmp r14, rax
je 0x140066683
mov r15, qword [r14]
test r15, r15
je 0x14006667d
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, edi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_SetLastError]
mov qword [r14], rbx
mov rbx, r13
test rbx, rbx
je 0x140066691
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp qword [r14], r13
jne 0x1400666e5
cmp dword [0x140142444], 2
jb 0x1400666b0
lea rdx, str.Failed_to_set_WPR_Memory_Session_name.
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140066788
test byte [rcx + 0x1c], 0x10
je 0x140066788
cmp byte [rcx + 0x19], 2
jb 0x140066788
mov edx, 0xa
jmp 0x140066777
lea rcx, str.WebMgmtWPRFileSession
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rsi, rax
je 0x140066726
mov r14, qword [rsi]
test r14, r14
je 0x140066720
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, edi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_SetLastError]
mov qword [rsi], rbx
mov rbx, r13
test rbx, rbx
je 0x140066734
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp qword [rsi], r13
jne 0x140066788
cmp dword [0x140142444], 2
jb 0x140066753
lea rdx, str.Failed_to_set_WPR_File_Session_name.
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140066788
test byte [rcx + 0x1c], 0x10
je 0x140066788
cmp byte [rcx + 0x19], 2
jb 0x140066788
mov edx, ntohs
lea r8, [0x1401040c8]
mov rcx, qword [rcx + 0x10]
call fcn.1400075e4
nop
mov rax, r12
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x280]
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