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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r8
mov r12, rdx
mov r13, rcx
lea r14, [0x140148ea8]
mov eax, 5
mov rcx, qword [0x140148ea8]
cmp rcx, r14
je 0x1400d7cec
test byte [rcx + 0x1c], 1
je 0x1400d7cec
cmp byte [rcx + 0x19], al
jb 0x1400d7cec
lea edx, [rax + 0x2b]
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400d65f0
xor esi, esi
and dword [rbp + 0x48], esi
lea r8, [rbp + 0x48]
mov rdx, r12
mov rcx, r13
call fcn.1400d84b8
mov ebx, eax
mov r15d, dword [rbp + 0x48]
mov rcx, qword [0x140148ea8]
cmp rcx, r14
je 0x1400d7d43
test byte [rcx + 0x1c], 2
je 0x1400d7d43
movzx edx, byte [rcx + 0x19]
lea eax, [rsi + 2]
test ebx, ebx
lea r8d, [rsi + 5]
cmove eax, r8d
cmp edx, eax
jl 0x1400d7d43
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r12
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
call fcn.1400d652c
test ebx, ebx
jne 0x1400d7d7e
cmp r15d, 1
jne 0x1400d7d7e
mov dword [rdi], 2
mov rcx, qword [0x140148ea8]
cmp rcx, r14
je 0x1400d7d7e
test byte [rcx + 0x1c], 2
je 0x1400d7d7e
cmp byte [rcx + 0x19], 4
jb 0x1400d7d7e
lea edx, [rbx + 0x32]
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.140011450
nop
lea rcx, [rbp - 0x50]
call fcn.140043db4
xor r14d, r14d
mov qword [rbp - 0x20], r14
and qword [rbp - 0x18], r14
and qword [rbp - 0x10], r14
test r15d, r15d
jne 0x1400d8075
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.1400d98c0
mov esi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d7df7
test byte [rcx + 0x1c], 2
je 0x1400d7df7
cmp byte [rcx + 0x19], 4
jb 0x1400d7df7
lea edx, [r14 + 0x33]
mov r9d, esi
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rcx, qword [0x140148ea8]
xor r15d, r15d
mov r14, qword [rbp - 0x20]
test esi, esi
jne 0x1400d807c
mov dword [rdi], r15d
or ebx, 0xffffffff
mov dword [rbp - 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x34]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400d7e48
mov eax, dword [rbp - 0x34]
sub eax, 4
neg eax
sbb esi, esi
and esi, 0xd
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d7e8a
test byte [rcx + 0x1c], 2
je 0x1400d7e8a
cmp byte [rcx + 0x19], 4
jb 0x1400d7e8a
mov edx, 0x34
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call fcn.1400d67a4
mov rcx, qword [0x140148ea8]
cmp esi, 2
je 0x1400d7ea0
test esi, esi
jne 0x1400d807c
cmp dword [rdi], r15d
jne 0x1400d807c
test esi, esi
jne 0x1400d7ea6
mov ebx, dword [rdi]
mov dword [rbp - 0x38], 4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x44]
xor r8d, r8d
lea rdx, [0x1400d8118]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400d7ee5
mov eax, dword [rbp - 0x44]
sub eax, 4
neg eax
sbb esi, esi
and esi, 0xd
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d7f2a
test byte [rcx + 0x1c], 2
je 0x1400d7f2a
cmp byte [rcx + 0x19], 4
jb 0x1400d7f2a
mov edx, 0x35
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x1400d8118]
mov rcx, qword [rcx + 0x10]
call fcn.1400d67a4
mov rcx, qword [0x140148ea8]
cmp esi, 2
jne 0x1400d7fa5
mov dword [rdi], r15d
mov dword [rbp - 0x30], r15d
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
lea rdx, [0x1400d8118]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d7fa5
test byte [rcx + 0x1c], 2
je 0x1400d7fa5
cmp byte [rcx + 0x19], 4
jb 0x1400d7fa5
mov edx, 0x36
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x1400d8118]
mov rcx, qword [rcx + 0x10]
call fcn.1400d67a4
mov rcx, qword [0x140148ea8]
test esi, esi
jne 0x1400d801b
mov eax, dword [rdi]
cmp eax, ebx
je 0x1400d801b
mov dword [rbp - 0x40], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d801b
test byte [rcx + 0x1c], 2
je 0x1400d801b
cmp byte [rcx + 0x19], 4
jb 0x1400d801b
mov edx, 0x37
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call fcn.1400d67a4
mov rcx, qword [0x140148ea8]
cmp dword [rdi], r15d
jne 0x1400d807c
mov dword [rbp - 0x48], r15d
lea r9, [rbp - 0x48]
lea r8, [0x1400091c8]
mov rdx, qword [rbp - 0x50]
mov rcx, r13
call fcn.1400d874c
test eax, eax
jne 0x1400d804b
cmp dword [rbp - 0x48], 1
jne 0x1400d804b
mov dword [rdi], 1
mov rcx, qword [0x140148ea8]
cmp dword [rdi], r15d
jne 0x1400d807c
mov rax, qword [r13]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.140015690]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call rbx
mov esi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d80bd
test byte [rcx + 0x1c], 1
je 0x1400d80bd
movzx r9d, byte [rcx + 0x19]
mov eax, esi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400d80bd
mov edx, 0x38
mov r9d, esi
lea r8, [0x1400091f8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
test r14, r14
je 0x1400d80cc
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r14, qword [rbp - 0x50]
lock add dword [r14 - 8], 0xffffffff
jg 0x1400d80f5
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret