Function at 0x1400c3210
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, [0x14014dd40]
mov eax, 5
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c327c
test byte [rcx + 0x1c], 1
je 0x1400c327c
cmp byte [rcx + 0x19], al
jb 0x1400c327c
lea edx, [rax + 0x2b]
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400c1b64
xor esi, esi
and dword [rbp + 0x48], esi
lea r8, [rbp + 0x48]
mov rdx, r12
mov rcx, r13
call fcn.1400c3a54
mov ebx, eax
mov r15d, dword [rbp + 0x48]
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c32d3
test byte [rcx + 0x1c], 2
je 0x1400c32d3
movzx edx, byte [rcx + 0x19]
lea eax, [rsi + 2]
test ebx, ebx
lea r8d, [rsi + 5]
cmove eax, r8d
cmp edx, eax
jl 0x1400c32d3
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r12
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
call fcn.1400c1a9c
test ebx, ebx
jne 0x1400c330e
cmp r15d, 1
jne 0x1400c330e
mov dword [rdi], 2
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400c330e
test byte [rcx + 0x1c], 2
je 0x1400c330e
cmp byte [rcx + 0x19], 4
jb 0x1400c330e
lea edx, [rbx + 0x32]
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.140004d1c
nop
lea rcx, [rbp - 0x50]
call fcn.140036144
xor r14d, r14d
mov qword [rbp - 0x20], r14
and qword [rbp - 0x18], r14
and qword [rbp - 0x10], r14
test r15d, r15d
jne 0x1400c3605
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.1400c4e58
mov esi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c3387
test byte [rcx + 0x1c], 2
je 0x1400c3387
cmp byte [rcx + 0x19], 4
jb 0x1400c3387
lea edx, [r14 + 0x33]
mov r9d, esi
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
xor r15d, r15d
mov r14, qword [rbp - 0x20]
test esi, esi
jne 0x1400c360c
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 0x1400c33d8
mov eax, dword [rbp - 0x34]
sub eax, 4
neg eax
sbb esi, esi
and esi, 0xd
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c341a
test byte [rcx + 0x1c], 2
je 0x1400c341a
cmp byte [rcx + 0x19], 4
jb 0x1400c341a
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.1400c1d20
mov rcx, qword [0x14014dd40]
cmp esi, 2
je 0x1400c3430
test esi, esi
jne 0x1400c360c
cmp dword [rdi], r15d
jne 0x1400c360c
test esi, esi
jne 0x1400c3436
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, str.AllowByDefault
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400c3475
mov eax, dword [rbp - 0x44]
sub eax, 4
neg eax
sbb esi, esi
and esi, 0xd
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c34ba
test byte [rcx + 0x1c], 2
je 0x1400c34ba
cmp byte [rcx + 0x19], 4
jb 0x1400c34ba
mov edx, 0x35
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, str.AllowByDefault
mov rcx, qword [rcx + 0x10]
call fcn.1400c1d20
mov rcx, qword [0x14014dd40]
cmp esi, 2
jne 0x1400c3535
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, str.AllowByDefault
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c3535
test byte [rcx + 0x1c], 2
je 0x1400c3535
cmp byte [rcx + 0x19], 4
jb 0x1400c3535
mov edx, 0x36
mov dword [rsp + 0x28], esi
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, str.AllowByDefault
mov rcx, qword [rcx + 0x10]
call fcn.1400c1d20
mov rcx, qword [0x14014dd40]
test esi, esi
jne 0x1400c35ab
mov eax, dword [rdi]
cmp eax, ebx
je 0x1400c35ab
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c35ab
test byte [rcx + 0x1c], 2
je 0x1400c35ab
cmp byte [rcx + 0x19], 4
jb 0x1400c35ab
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.1400c1d20
mov rcx, qword [0x14014dd40]
cmp dword [rdi], r15d
jne 0x1400c360c
mov dword [rbp - 0x48], r15d
lea r9, [rbp - 0x48]
lea r8, str.DefaultAuthorization
mov rdx, qword [rbp - 0x50]
mov rcx, r13
call fcn.1400c3cf4
test eax, eax
jne 0x1400c35db
cmp dword [rbp - 0x48], 1
jne 0x1400c35db
mov dword [rdi], 1
mov rcx, qword [0x14014dd40]
cmp dword [rdi], r15d
jne 0x1400c360c
mov rax, qword [r13]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.140009050]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call rbx
mov esi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c364d
test byte [rcx + 0x1c], 1
je 0x1400c364d
movzx r9d, byte [rcx + 0x19]
mov eax, esi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400c364d
mov edx, 0x38
mov r9d, esi
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
test r14, r14
je 0x1400c365c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r14, qword [rbp - 0x50]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400c368b
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
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