Function at 0x140017f84
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14006c100]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWindowsUpdateRUXIMSpec_
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
cmp eax, 2
je 0x1400182ba
test eax, eax
je 0x14001801d
mov edx, 0x440
jmp 0x14001820d
mov dword [rsp + 0x40], 0x104
mov esi, 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov rdi, qword [rsp + 0x60]
cmp eax, 0x103
je 0x1400181c2
lea r14d, [rsi + 6]
test eax, eax
jne 0x140018208
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400181cc
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r14
mov word [rbp - 0x68], r15w
lea r9, [rbp - 0x68]
lea r8, str.Source
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140011a8c
test eax, eax
js 0x14001815d
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
lea rdx, str.OneSettings
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14001815d
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r14
mov word [rsp + 0x78], r15w
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140007e74
nop
cmp rbx, rdi
je 0x140018136
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140007bd8
add rdi, 0x20
mov qword [rsp + 0x60], rdi
jmp 0x140018152
lea r8, [rsp + 0x78]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140019014
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140007d04
nop
lea rcx, [rbp - 0x68]
call fcn.140007d04
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001817d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov dword [rsp + 0x40], 0x104
mov edx, esi
inc esi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
jne 0x14001806e
mov rsi, qword [rsp + 0x58]
jmp 0x1400182b1
mov rcx, qword [rbp + 0x1f8]
mov r9d, eax
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibonesettingscustomclient.cpp
mov edx, 0x45f
call fcn.14000dee8
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400182bd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400182bd
mov edx, 0x455
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibonesettingscustomclient.cpp
mov r9d, eax
mov rcx, qword [rbp + 0x1f8]
call fcn.14000dee8
mov ebx, eax
jmp 0x1400182bd
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140007bd8
lea r14, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r14, qword [rsp + 0x78]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionWindowsUpdateRUXIMSpec_
lea rcx, [rbp - 0x40]
call fcn.140013ee8
mov ebx, eax
test eax, eax
js 0x140018333
mov r8, r14
lea rcx, [rbp - 0x40]
call fcn.140013ee8
mov ebx, eax
test eax, eax
js 0x14001832c
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001830d
lea rcx, [rsp + 0x78]
call fcn.140007d04
add rsi, 0x20
cmp rsi, rdi
jne 0x14001822a
mov ebx, r15d
lea rcx, [rsp + 0x58]
call fcn.14000a6b4
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400182de
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14004b180
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x1f8]
mov r9d, eax
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibonesettingscustomclient.cpp
mov edx, 0x483
call fcn.14000dee8
mov ebx, eax
jmp 0x14001834e
mov edx, 0x482
jmp 0x140018338
mov edx, 0x47c
mov r9d, eax
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibonesettingscustomclient.cpp
mov rcx, qword [rbp + 0x1f8]
call fcn.140003c18
lea rcx, [rsp + 0x78]
call fcn.140007d04
jmp 0x1400182bd