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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, r9
mov rsi, r8
mov rbp, rdx
mov qword [r11 - 0x60], rdx
mov qword [r11 - 0x50], r8
mov qword [r11 - 0x58], rbx
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], 0x3e8
mov dword [rsp + 0x64], 1
cmp qword [rdx + 0x20], 8
jb 0x1400297e9
lea r12, [rdx + 8]
mov r14, qword [r12]
jmp 0x1400297f0
lea r12, [rdx + 8]
mov r14, r12
call fcn.14000baa0
test al, al
jne 0x140029815
cmp qword [rbp + 0x20], 8
jb 0x140029806
mov r14, qword [r12]
jmp 0x140029809
mov r14, r12
mov rdi, 0xffffffff80000001
mov qword [rsp + 0x58], rdi
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140029914
cmp qword [rbp + 0x20], 8
jb 0x140029860
mov r14, qword [r12]
jmp 0x140029863
mov r14, r12
mov qword [rsp + 0x58], 0xffffffff80000001
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140029914
cmp qword [rbp + 0x20], 8
jb 0x1400298b7
mov rcx, qword [r12]
call fcn.140044814
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r13
mov word [r12], r13w
cmp qword [rsi + 0x20], 8
jb 0x1400298d8
mov rcx, qword [rsi + 8]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r13
mov word [rsi + 8], r13w
cmp qword [rbx + 0x20], 8
jb 0x1400298f9
mov rcx, qword [rbx + 8]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
mov word [rbx + 8], r13w
mov eax, 2
jmp 0x140029c87
cmp qword [rbx + 0x20], 8
jb 0x140029929
lea r15, [rbx + 8]
mov rdx, qword [r15]
mov qword [rsp + 0x68], rdx
jmp 0x140029935
lea r15, [rbx + 8]
mov rdx, r15
mov qword [rsp + 0x68], rdx
cmp qword [rsi + 0x20], 8
jb 0x140029946
lea r13, [rsi + 8]
mov r10, qword [r13]
jmp 0x14002994d
lea r13, [rsi + 8]
mov r10, r13
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
lea r9d, [rax + 1]
xor r8d, r8d
mov rdx, r10
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140029c1e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140029bb3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029b8f
mov eax, 2
mul qword [rbx + 0x18]
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.1400432bc
mov r12, rax
cmp qword [rsi + 0x20], 8
jb 0x1400299ed
mov r13, qword [r13]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029b6b
mov qword [rsp + 0xb8], 7
xor r14d, r14d
mov qword [rsp + 0xb0], r14
mov word [rsp + 0xa0], r14w
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x98]
call fcn.14003b810
nop
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r14
mov word [rsp + 0x78], r14w
xor eax, eax
mov rcx, r15
mov rdx, qword [rsp + 0x68]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x70]
call fcn.14003b810
nop
lea r9, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae r9, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x88]
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14003e890
test eax, eax
setne dil
cmp qword [rsp + 0x90], 8
jb 0x140029aef
mov rcx, qword [rsp + 0x78]
call fcn.140044814
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r14
mov word [rsp + 0x78], r14w
cmp qword [rsp + 0xb8], 8
jb 0x140029b21
mov rcx, qword [rsp + 0xa0]
call fcn.140044814
test dil, dil
je 0x140029b4a
mov rcx, rbp
call fcn.140039010
nop
mov rcx, rsi
call fcn.140039010
nop
mov rcx, rbx
call fcn.140039010
mov eax, 2
jmp 0x140029c87
mov rcx, rbp
call fcn.140039010
nop
mov rcx, rsi
call fcn.140039010
nop
mov rcx, rbx
call fcn.140039010
xor eax, eax
jmp 0x140029c87
mov rcx, rbp
call fcn.140039010
nop
mov rcx, rsi
call fcn.140039010
nop
mov rcx, rbx
call fcn.140039010
mov eax, 2
jmp 0x140029c87
mov rcx, rbp
call fcn.140039010
nop
mov rcx, rsi
call fcn.140039010
nop
mov rcx, rbx
call fcn.140039010
mov eax, 2
jmp 0x140029c87
cmp qword [rbp + 0x20], 8
jb 0x140029bc3
mov rcx, qword [r12]
call fcn.140044814
mov qword [rbp + 0x20], 7
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov word [r12], r14w
cmp qword [rsi + 0x20], 8
jb 0x140029be7
mov rcx, qword [r13]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r14
mov word [r13], r14w
cmp qword [rbx + 0x20], 8
jb 0x140029c07
mov rcx, qword [r15]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [r15], r14w
mov eax, 2
jmp 0x140029c87
cmp qword [rbp + 0x20], 8
jb 0x140029c2e
mov rcx, qword [r12]
call fcn.140044814
mov qword [rbp + 0x20], 7
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov word [r12], r14w
cmp qword [rsi + 0x20], 8
jb 0x140029c52
mov rcx, qword [r13]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r14
mov word [r13], r14w
cmp qword [rbx + 0x20], 8
jb 0x140029c72
mov rcx, qword [r15]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [r15], r14w
mov eax, 2
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140044830
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret