Function at 0x140016738
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14005a8e0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12, r8
mov r13, rdx
mov r15, rcx
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x48], rbx
mov r14d, ebx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov esi, 0x80070000
test eax, eax
je 0x1400167c9
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001689a
cmp qword [r15 + 0xa0], rbx
jne 0x14001689a
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 2
mov r8, r13
mov rdx, qword [r15 + 0x20]
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140016889
cmp eax, 0xea
jne 0x140016875
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r14, rax
cmp word [rax], bx
jne 0x140016840
mov edi, 0x8007000e
jmp 0x140016a2c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
mov r9d, 2
mov r8, r13
mov rdx, qword [r15 + 0x20]
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140016884
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
jmp 0x140016a2c
mov rdx, r14
jmp 0x14001688d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.1400150e0
jmp 0x140016a2c
mov qword [rsp + 0x40], rbx
test edi, edi
js 0x140016a1b
mov qword [rsp + 0x50], rbx
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.1400150e0
nop
or rsi, 0xffffffffffffffff
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
test rbx, rbx
je 0x1400168f5
mov rax, rsi
inc rax
cmp word [rbx + rax*2], cx
jne 0x1400168d2
mov ecx, eax
cmp rcx, rax
je 0x1400168f5
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ecx, edi
lea edx, [rcx + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsupr_s]
nop dword [rax + rax]
mov rdi, qword [r15 + 0xa0]
mov rax, qword [rdi]
mov r15, qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x78], rcx
mov rax, rsi
inc rax
cmp word [rbx + rax*2], cx
jne 0x140016935
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140016a8e
lea ecx, [rax + 1]
cmp ecx, eax
jb 0x140016a83
mov edx, eax
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
nop dword [rax + rax]
test eax, eax
js 0x140016a99
movabs r10, 0xc4e82e6e545bf970
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
mov rax, r15
call qword [0x1400398b8]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor ebx, ebx
test edi, edi
js 0x140016a1b
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rdx, rax
mov rcx, r12
call fcn.1400150e0
mov rcx, qword [r12]
inc rsi
cmp word [rcx + rsi*2], bx
jne 0x1400169d3
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140016a1b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016a42
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test r14, r14
je 0x140016a56
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400339f0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070216
call fcn.140014fb0
int3
mov ecx, 0x80070216
call fcn.140014fb0
int3
mov ecx, eax
call fcn.140014fb0
int3