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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
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 rdi, r8
mov r15, rdx
mov r12, rcx
lea rax, [0x1400d0018]
mov edx, 5
mov rcx, qword [0x1400d0018]
cmp rcx, rax
je 0x140090a79
test byte [rcx + 0x1c], 1
je 0x140090a79
cmp byte [rcx + 0x19], dl
jb 0x140090a79
mov edx, 0x26
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, r15
mov rcx, qword [rcx + 0x10]
call fcn.14008fac8
xor ebx, ebx
and dword [rbp + 0x48], ebx
lea r8, [rbp + 0x48]
mov rdx, r15
mov rcx, r12
call fcn.14009124c
mov esi, eax
mov r14d, dword [rbp + 0x48]
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090ade
test byte [rcx + 0x1c], 2
je 0x140090ade
movzx edx, byte [rcx + 0x19]
lea eax, [rbx + 2]
test esi, esi
lea r8d, [rbx + 5]
cmove eax, r8d
cmp edx, eax
jb 0x140090ad7
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov r9d, esi
mov rcx, qword [rcx + 0x10]
call fcn.14008f9f0
lea rax, [0x1400d0018]
test esi, esi
jne 0x140090b19
cmp r14d, 1
jne 0x140090b19
mov dword [rdi], 2
mov rcx, qword [0x1400d0018]
cmp rcx, rax
je 0x140090b19
test byte [rcx + 0x1c], 2
je 0x140090b19
cmp byte [rcx + 0x19], 4
jb 0x140090b19
lea edx, [rsi + 0x28]
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
mov rdx, r15
lea rcx, [rbp - 0x50]
call fcn.140004b44
nop
lea rcx, [rbp - 0x50]
call fcn.14002ea2c
xor esi, esi
mov qword [rbp - 0x20], rsi
and qword [rbp - 0x18], rsi
and qword [rbp - 0x10], rsi
test r14d, r14d
jne 0x140090e16
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140091e58
mov ebx, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090b90
test byte [rcx + 0x1c], 2
je 0x140090b90
cmp byte [rcx + 0x19], 4
jb 0x140090b90
lea edx, [rsi + 0x29]
mov r9d, ebx
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400d0018]
mov rsi, qword [rbp - 0x20]
test ebx, ebx
jne 0x140090e1d
and dword [rdi], ebx
or r14d, 0xffffffff
mov dword [rbp - 0x44], 4
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x40]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140090be4
mov eax, dword [rbp - 0x40]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090c26
test byte [rcx + 0x1c], 2
je 0x140090c26
cmp byte [rcx + 0x19], 4
jb 0x140090c26
mov edx, 0x2a
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call fcn.14008fb80
mov rcx, qword [0x1400d0018]
cmp ebx, 2
je 0x140090c3b
test ebx, ebx
jne 0x140090e1d
cmp dword [rdi], ebx
jne 0x140090e1d
test ebx, ebx
jne 0x140090c42
mov r14d, dword [rdi]
mov dword [rbp - 0x3c], 4
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, [0x1400ba840]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140090c87
mov eax, dword [rbp - 0x38]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090ccc
test byte [rcx + 0x1c], 2
je 0x140090ccc
cmp byte [rcx + 0x19], 4
jb 0x140090ccc
mov edx, 0x2b
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x1400ba840]
mov rcx, qword [rcx + 0x10]
call fcn.14008fb80
mov rcx, qword [0x1400d0018]
cmp ebx, 2
jne 0x140090d4d
and dword [rdi], 0
and dword [rbp - 0x30], 0
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 2]
xor r8d, r8d
lea rdx, [0x1400ba840]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090d4d
test byte [rcx + 0x1c], 2
je 0x140090d4d
cmp byte [rcx + 0x19], 4
jb 0x140090d4d
mov edx, 0x2c
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x1400ba840]
mov rcx, qword [rcx + 0x10]
call fcn.14008fb80
mov rcx, qword [0x1400d0018]
test ebx, ebx
jne 0x140090dca
mov eax, dword [rdi]
cmp eax, r14d
je 0x140090dca
mov dword [rbp - 0x28], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090dca
test byte [rcx + 0x1c], 2
je 0x140090dca
cmp byte [rcx + 0x19], 4
jb 0x140090dca
mov edx, 0x2d
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call fcn.14008fb80
mov rcx, qword [0x1400d0018]
cmp dword [rdi], 0
jne 0x140090e1d
and dword [rbp - 0x48], 0
lea r9, [rbp - 0x48]
lea r8, str.DefaultAuthorization
mov rdx, qword [rbp - 0x50]
mov rcx, r12
call fcn.1400914f0
test eax, eax
jne 0x140090dfa
cmp dword [rbp - 0x48], 1
jne 0x140090dfa
mov dword [rdi], 1
mov rcx, qword [0x1400d0018]
cmp dword [rdi], 0
jne 0x140090e1d
mov r8, rdi
mov rdx, r15
mov rcx, r12
call fcn.140092f50
mov ebx, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140090e5e
test byte [rcx + 0x1c], 1
je 0x140090e5e
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x140090e5e
mov edx, 0x2e
mov r9d, ebx
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
nop
test rsi, rsi
je 0x140090e73
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140090e98
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret