Function at 0x14006800c
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1b0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
call fcn.14006a488
mov qword [rsp + 0x58], rax
mov edi, 0x80004005
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], r12d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov rdx, rbx
call fcn.140067830
mov rbx, 0xffffffff80000002
lea r13d, [r12 + 8]
cmp qword [rsp + 0x60], r12
jbe 0x1400685f4
cmp dword [rsp + 0x50], r12d
jbe 0x1400685f4
cmp dword [rsp + 0x54], r12d
jbe 0x1400685f4
lea rsi, [r15 + 0xb0]
cmp qword [rsi + 0x18], r13
jb 0x1400680cc
mov rdx, qword [rsi]
jmp 0x1400680cf
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
cmp qword [rsi + 0x18], r13
jb 0x1400680e3
mov rdx, qword [rsi]
jmp 0x1400680e6
mov rdx, rsi
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140068651
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], 1
cmp qword [rsi + 0x18], r13
jb 0x140068135
mov rdx, qword [rsi]
jmp 0x140068138
mov rdx, rsi
mov r14d, 4
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [0x140103a60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x140068173
mov rdx, qword [rsi]
jmp 0x140068176
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.Start
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateGuid]
test eax, eax
js 0x1400685e8
mov r8d, 0x40
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov eax, dword [rsp + 0x50]
mov edx, 0x10
cmp eax, edx
cmova eax, edx
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], 0x100
lea ebx, [rdx - 0xe]
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x7c], 1
mov dword [rbp - 0x80], ebx
cmp qword [rsi + 0x18], r13
jb 0x1400681fd
mov rdx, qword [rsi]
jmp 0x140068200
mov rdx, rsi
lea r9, [rbp + 0x20]
lea r8, str.GUID
call fcn.1400661b8
test eax, eax
jne 0x1400685e8
lea r9, [r15 + 0x90]
cmp qword [r9 + 0x18], r13
jb 0x140068228
mov r9, qword [r9]
cmp qword [rsi + 0x18], r13
jb 0x140068233
mov rdx, qword [rsi]
jmp 0x140068236
mov rdx, rsi
lea r8, str.FileName
call fcn.1400661b8
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x140068255
mov rdx, qword [rsi]
jmp 0x140068258
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.MinimumBuffers
mov rbx, 0xffffffff80000002
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x140068294
mov rdx, qword [rsi]
jmp 0x140068297
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.MaximumBuffers
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x1400682cc
mov rdx, qword [rsi]
jmp 0x1400682cf
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.MaxFileSize
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x140068304
mov rdx, qword [rsi]
jmp 0x140068307
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.BufferSize
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x14006833c
mov rdx, qword [rsi]
jmp 0x14006833f
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.Clocktype
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x140068374
mov rdx, qword [rsi]
jmp 0x140068377
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.FileMax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
cmp qword [rsi + 0x18], r13
jb 0x1400683ac
mov rdx, qword [rsi]
jmp 0x1400683af
mov rdx, rsi
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.FlushTimer
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400685e8
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rdi]
jmp 0x1400685dc
lea r14, [rbx + 0x20]
cmp byte [r14 + 0x4c], r12b
je 0x140068593
mov dword [rbp - 0x7c], 1
mov rax, qword [r14 + 0x40]
mov qword [rbp - 0x70], rax
mov eax, dword [r14 + 0x48]
mov dword [rbp - 0x78], eax
lea r8, [0x140103acc]
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.14002f8d4
nop
lea rdx, [r14 + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rax
call fcn.140008480
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400085a4
nop
mov r8d, 1
lea rdx, [0x1400fe70c]
lea rcx, [rbp - 0x38]
call fcn.140008328
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400085a4
nop
cmp qword [rbp - 0x20], r13
jb 0x140068492
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
cmp qword [rbp + 0x10], r13
jb 0x1400684b3
mov rcx, qword [rbp - 8]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp qword [r14 + 0x18], r13
jb 0x1400684bc
mov r14, qword [r14]
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], r13
cmovae rdx, qword [rbp - 0x58]
mov r9, r14
lea r8, str.ProviderFriendlyName
call fcn.1400661b8
test eax, eax
jne 0x140068583
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], r13
cmovae rdx, qword [rbp - 0x58]
lea r14d, [rax + 4]
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.Enabled
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x140068583
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], r13
cmovae rdx, qword [rbp - 0x58]
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 7]
lea r8, str.MatchAnyKeyword
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
test eax, eax
jne 0x140068583
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], r13
cmovae rdx, qword [rbp - 0x58]
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.EnableLevel
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
cmp qword [rbp - 0x40], r13
jb 0x140068593
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp byte [rbx + 0x19], r12b
jne 0x1400685dc
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x1400685c0
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r12b
jne 0x1400685dc
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r12b
je 0x1400685af
jmp 0x1400685dc
mov rax, qword [rbx + 8]
jmp 0x1400685d3
cmp rbx, qword [rax + 0x10]
jne 0x1400685d9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x1400685c6
mov rbx, rax
cmp rbx, rdi
jne 0x1400683e5
mov edi, r12d
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140068646
mov ebx, 2
cmp dword [0x140142444], ebx
jb 0x14006860f
lea rdx, str.Failed_to_parse_WPR_profile_correctly.
mov ecx, ebx
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14006864a
mov edx, 0x10
test byte [rcx + 0x1c], dl
je 0x14006864a
cmp byte [rcx + 0x19], bl
jb 0x14006864a
mov edx, ntohs
lea r8, [0x1401040c8]
mov rcx, qword [rcx + 0x10]
call fcn.1400075e4
test edi, edi
jns 0x14006866b
mov rbx, 0xffffffff80000002
lea rdx, [r15 + 0xb0]
cmp qword [rdx + 0x18], r13
jb 0x140068661
mov rdx, qword [rdx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x58]
call fcn.140010d48
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 8], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x10], rcx
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret