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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x140007610]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r13d, r13d
test eax, eax
jne 0x140001c9a
mov dword [rbp - 0x78], 1
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, [0x140007680]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001c8e
mov ebx, dword [rsp + 0x30]
shr rbx, 1
dec rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
movabs r12, 0x7ffffffffffffffe
cmp rbx, r12
ja 0x140001d1e
movabs rdx, 0x7fffffffffffffff
lea eax, [r13 + 0xa]
mov qword [rsp + 0x60], 7
cmp rbx, 8
jae 0x140001685
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x48], r13w
jmp 0x14000171e
mov r14, rbx
or r14, 7
cmp r14, r12
jbe 0x14000169a
mov r14, r12
lea rcx, [rdx + rdx]
jmp 0x1400016ba
cmp r14, rax
cmovb r14, rax
lea rcx, [r14 + 1]
cmp rcx, rdx
ja 0x140001d18
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400016e6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d18
mov rcx, rax
call fcn.140005210
test rax, rax
je 0x140001c82
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400016f8
test rcx, rcx
je 0x1400016f5
call fcn.140005210
mov rsi, rax
jmp 0x1400016f8
mov rsi, r13
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x30]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r13w
cmp qword [rdi + 0x18], 0x10
jb 0x140001731
mov r15, qword [rdi]
mov rsi, r15
add r15, qword [rdi + 0x10]
jmp 0x14000173b
mov r15, qword [rdi + 0x10]
add r15, rdi
mov rsi, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
cmp rsi, r15
jne 0x140001765
mov rsi, r13
mov r12d, 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x68], r13w
jmp 0x140001871
mov rax, r15
sub rax, rsi
mov r14, r13
mov ebx, 7
mov qword [rbp - 0x80], rbx
cmp rax, r12
ja 0x140001d24
cmp rax, 8
jb 0x140001821
mov rbx, rax
or rbx, 7
cmp rbx, r12
jbe 0x14000179b
mov rbx, r12
jmp 0x1400017a8
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
mov rax, rbx
add rax, 1
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x140001d2a
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140001809
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d2a
mov rcx, rax
call fcn.140005210
mov rcx, rax
test rax, rax
je 0x140001c39
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001818
test rcx, rcx
je 0x140001815
call fcn.140005210
jmp 0x140001818
mov rax, r13
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x80], rbx
lea rcx, [rsp + 0x68]
cmp rbx, 8
cmovae rcx, qword [rsp + 0x68]
movsx eax, byte [rsi]
mov word [rcx + r14*2], ax
mov r14, qword [rsp + 0x78]
inc r14
mov qword [rsp + 0x78], r14
inc rsi
cmp rsi, r15
je 0x140001853
mov rbx, qword [rbp - 0x80]
jmp 0x140001821
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov word [rax + r14*2], r13w
mov r12, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x78]
lea r9, [rsp + 0x68]
mov r14, qword [rsp + 0x68]
cmp r12, 8
cmovae r9, r14
mov r15, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r15
cmp rsi, rax
ja 0x1400018cb
lea rax, [rsi + r15]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + r15*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + r15]
mov word [rbx + rax*2], r13w
jmp 0x1400018e6
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140004990
mov r12, qword [rbp - 0x80]
mov r14, qword [rsp + 0x68]
xorps xmm0, xmm0
mov rax, qword [rsp + 0x58]
lea r15, [rax + 2]
movdqu xmmword [rbp - 0x50], xmm0
mov rsi, r13
mov qword [rbp - 0x40], r13
test r15, r15
je 0x14000198b
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140001d30
add r15, r15
cmp r15, 0x1000
jb 0x14000194f
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x140001d36
call fcn.140005210
test rax, rax
je 0x140001bfa
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001964
test r15, r15
je 0x140001961
mov rcx, r15
call fcn.140005210
mov rbx, rax
jmp 0x140001964
mov rbx, r13
mov qword [rbp - 0x50], rbx
lea rsi, [rbx + r15]
mov qword [rbp - 0x40], rsi
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
mov qword [rbp - 0x48], rsi
mov rax, qword [rsp + 0x58]
jmp 0x140001993
mov r8, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x50]
mov edx, r13d
test rax, rax
je 0x1400019c9
mov rcx, r13
nop
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
mov word [rbx + rcx], ax
inc edx
lea rcx, [rcx + 2]
movsxd rax, edx
cmp rax, qword [rsp + 0x58]
jb 0x1400019a0
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400043e0
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov eax, dword [rbp - 0x60]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 7
xor r8d, r8d
lea rdx, [0x140007680]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp - 0x58]
test eax, eax
jne 0x140001b79
cmp rdx, 8
jb 0x140001a54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bac
call fcn.14000524c
movdqa xmm0, xmmword [0x14001ae00]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
test rbx, rbx
je 0x140001aa3
sub rsi, rbx
sar rsi, 1
lea rdx, [rsi + rsi]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001a9a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bfa
mov rcx, rbx
call fcn.14000524c
nop
cmp r12, 8
jb 0x140001adf
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001ad6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c39
mov rcx, r14
call fcn.14000524c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001b21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c82
call fcn.14000524c
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001b6b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140001b66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001b72
mov rcx, r8
call fcn.14000524c
mov al, 1
jmp 0x140001cd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rdx, 8
jb 0x140001bb8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000524c
movdqa xmm0, xmmword [0x14001ae00]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
test rbx, rbx
je 0x140001c0a
sub rsi, rbx
sar rsi, 1
lea rdx, [rsi + rsi]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001c01
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14000524c
nop
cmp r12, 8
jb 0x140001c49
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001c40
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000524c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001c8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000524c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001cd0
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140001ccb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d11
mov rcx, r8
call fcn.14000524c
xor al, al
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r13
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400051f0
lea r11, [rsp + 0x8e0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001110
nop
call fcn.1400011b0
nop
call fcn.1400011b0
int3
call fcn.140001110
nop
call fcn.140004e70
int3
call fcn.140001110
int3