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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x898
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x880], rax
xor ebp, ebp
lea rax, [rsp + 0x70]
mov rsi, rdx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], rax
mov r15d, r9d
mov r12, r8
mov rbx, rcx
mov rdx, rcx
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x1400019b2
lea rcx, str.AddStringToMultiSZ:_RegCreateKeyEx__ts_failed_with_error__ld__n
mov r8d, eax
mov rdx, rbx
call fcn.140003308
jmp 0x140001bff
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x80], bp
call fcn.1400039a0
lea rcx, [rsp + 0x482]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x480], bp
call fcn.1400039a0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x50], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, dword [rsp + 0x60]
mov edi, eax
test eax, eax
jne 0x140001be6
cmp r8d, 7
jne 0x140001be6
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x8e8], r13
mov qword [rsp + 0x890], r14
shr ecx, 1
mov r13, rbp
je 0x140001a71
lea rax, [rsp + 0x80]
lea edx, [rdi + 0x2c]
cmp word [rax], bp
jne 0x140001a68
mov word [rax], dx
add rax, 2
dec rcx
jne 0x140001a60
lea rdx, [0x14000fa34]
lea rcx, [rsp + 0x80]
call fcn.140003a8c
lea r14, [rsp + 0x480]
mov rsi, rax
test rax, rax
je 0x140001b62
nop dword [rax]
lea rdx, [0x14000fa34]
xor ecx, ecx
call fcn.140003a8c
mov rbx, rax
cmp ebp, r15d
jne 0x140001afc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov rdx, r12
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, r14
call fcn.140003480
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov rdi, r12
not rcx
lea r13, [r13 + rcx*2]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
inc ebp
not rcx
lea r14, [r14 + rcx*2]
mov rdx, r12
mov rcx, rsi
call fcn.140003d9c
test eax, eax
je 0x140001b51
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, r14
call fcn.140003480
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
lea r13, [r13 + rcx*2]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
inc ebp
not rcx
lea r14, [r14 + rcx*2]
mov rsi, rbx
test rbx, rbx
jne 0x140001aa0
cmp r15d, ebp
jb 0x140001b95
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov rdx, r12
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, r14
call fcn.140003480
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r13, [r13 + rcx*2 - 2]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x480]
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14, qword [rsp + 0x890]
mov r13, qword [rsp + 0x8e8]
mov edi, eax
test eax, eax
je 0x140001bf4
lea rcx, str.AddStringToMultiSZ:_RegSetValueEx_failed_with_error__ld__n
mov edx, eax
call fcn.140003308
jmp 0x140001bf4
lea rcx, str.AddStringToMultiSZ:_RegQueryValueEx_failed_with_error__ld__key_type__0x_x__n
mov edx, eax
call fcn.140003308
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg edi
sbb eax, eax
and eax, 2
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140003450
add rsp, 0x898
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret