Function at 0x1400609f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x85f0
call fcn.14006a6b0
sub rsp, rax
mov qword [rsp + 0x1b0], 0xfffffffffffffffe
mov qword [rsp + 0x8620], rbx
mov rax, qword [0x1400dc010]
xor rax, rsp
mov qword [rsp + 0x85e0], rax
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov r14, qword [rsp + 0x8640]
mov qword [rsp + 0x140], r14
mov dword [rsp + 0x60], 0xffffffff
mov rdx, qword [rdx]
mov qword [rsp + 0x1b8], rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140060b59
mov rcx, qword [r15]
sub rcx, 0x18
mov qword [rsp + 0xc0], rcx
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060aca
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
sub rcx, 0x18
mov qword [rsp + 0xc8], rcx
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060af7
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi]
sub rcx, 0x18
mov qword [rsp + 0xd0], rcx
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060b24
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [r14]
sub rcx, 0x18
mov qword [rsp + 0xd8], rcx
lock xadd dword [rcx + 0x10], ebx
sub ebx, 1
jg 0x140060b4f
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 0xffffffff
jmp 0x140060fdb
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x3d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x104
xor r12d, r12d
mov dword [rsp + 0x64], r12d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x3d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x140060e7a
mov ebx, r12d
mov dword [rsp + 0x88], ebx
cmp ebx, eax
jae 0x140060e7a
mov dword [rsp + 0x7c], 0xff
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x1d0]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0xa4], eax
test eax, eax
jne 0x140060e68
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140060ca5
inc ebx
mov dword [rsp + 0x88], ebx
mov eax, dword [rsp + 0x64]
jmp 0x140060c14
mov dword [rsp + 0x80], 0x7ffe
mov rdx, qword [rsi]
mov qword [rsp + 0x158], rdx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0xac], eax
test eax, eax
jne 0x140060e5d
lea rdx, str.DWORD
mov rcx, rdi
call fcn.14000b940
test al, al
je 0x140060d50
mov rcx, qword [r14]
mov qword [rsp + 0x160], rcx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsp + 0x84], eax
mov rdx, qword [rsi]
mov qword [rsp + 0x168], rdx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, 4
jmp 0x140060e4b
lea rdx, str.STRING
mov rcx, rdi
call fcn.14000b940
test al, al
je 0x140060d90
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x170], rcx
mov rdx, qword [rsi]
mov qword [rsp + 0x178], rdx
inc eax
mov r9d, 1
jmp 0x140060e42
lea rdx, str.MULTI_STRING
mov rcx, rdi
call fcn.14000b940
test al, al
je 0x140060dcd
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xb4], eax
mov qword [rsp + 0x180], rcx
mov rdx, qword [rsi]
mov qword [rsp + 0x188], rdx
inc eax
mov r9d, 7
jmp 0x140060e42
lea rdx, str.EXPANDABLE_STRING
mov rcx, rdi
call fcn.14000b940
test al, al
je 0x140060e0a
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xb8], eax
mov qword [rsp + 0x190], rcx
mov rdx, qword [rsi]
mov qword [rsp + 0x198], rdx
inc eax
mov r9d, 2
jmp 0x140060e42
lea rdx, str.NONE
mov rcx, rdi
call fcn.14000b940
test al, al
je 0x140060e5d
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xbc], eax
mov qword [rsp + 0x1a0], rcx
mov rdx, qword [rsi]
mov qword [rsp + 0x1a8], rdx
inc eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
mov dword [rsp + 0x88], ebx
mov eax, dword [rsp + 0x64]
jmp 0x140060c14
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [r15]
sub rcx, 0x18
mov qword [rsp + 0xe8], rcx
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060eb8
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
sub rcx, 0x18
mov qword [rsp + 0xf0], rcx
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060ee5
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi]
sub rcx, 0x18
mov qword [rsp + 0xf8], rcx
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140060f12
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [r14]
sub rax, 0x18
mov qword [rsp + 0x100], rax
lock xadd dword [rax + 0x10], ebx
sub ebx, 1
jg 0x140060f3c
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, dword [rsp + 0x60]
jmp 0x140060fdb
mov rcx, qword [rsp + 0x85e0]
xor rcx, rsp
call fcn.1400693e0
mov rbx, qword [rsp + 0x8620]
add rsp, 0x85f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret