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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r12, rcx
lea rax, [0x100152eb8]
mov rcx, qword [0x100152eb8]
cmp rcx, rax
je 0x1000ebf68
test byte [rcx + 0x1c], 1
je 0x1000ebf68
cmp byte [rcx + 0x19], 5
jb 0x1000ebf68
mov edx, 0x5b
mov dword [r11 - 0x60], r9d
mov qword [r11 - 0x68], r8
mov r9, rbx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e97fc
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.100035d98
nop
lea rcx, [rsp + 0x48]
call fcn.100069790
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.1000ed62c
mov ebx, eax
mov r13d, 4
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp r10, rax
je 0x1000ebff1
test byte [r10 + 0x1c], 2
je 0x1000ebff1
cmp byte [r10 + 0x19], r13b
jb 0x1000ebff1
lea edx, [r13 + 0x58]
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100036328
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
test ebx, ebx
jne 0x1000ec178
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1000ec03c
mov eax, dword [rsp + 0x38]
sub eax, r13d
neg eax
sbb edi, edi
and edi, 0xd
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp r10, rax
je 0x1000ec087
test byte [r10 + 0x1c], 2
je 0x1000ec087
cmp byte [r10 + 0x19], r13b
jb 0x1000ec087
mov edx, 0x5d
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rbp
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.1000e9924
mov r10, qword [0x100152eb8]
test edi, edi
jne 0x1000ec095
cmp esi, dword [rsp + 0x30]
je 0x1000ec1bd
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x28], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp r10, rax
je 0x1000ec105
test byte [r10 + 0x1c], 2
je 0x1000ec105
cmp byte [r10 + 0x19], r13b
jb 0x1000ec105
mov edx, 0x5e
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], esi
mov r9, rbp
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.1000e9924
mov r10, qword [0x100152eb8]
test edi, edi
jne 0x1000ec1c6
mov rax, qword [r12]
mov edx, 0x3ec
mov rcx, r12
call qword [rax + 0x48]
mov ecx, eax
xor r9d, r9d
mov r8, rbp
mov rdx, qword [rsp + 0x48]
call fcn.1000f0b60
mov r10, qword [0x100152eb8]
lea rdi, [0x100152eb8]
cmp r10, rdi
je 0x1000ec222
test byte [r10 + 0x1c], 2
je 0x1000ec1e8
cmp byte [r10 + 0x19], r13b
jb 0x1000ec1e8
mov edx, 0x5f
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100034764
mov r10, qword [0x100152eb8]
jmp 0x1000ec1e8
cmp ebx, 2
jne 0x1000ec1e1
mov ebx, 0x490
cmp r10, rax
je 0x1000ec222
test byte [r10 + 0x1c], 2
je 0x1000ec1d8
cmp byte [r10 + 0x19], r13b
jb 0x1000ec1cf
mov edx, 0x60
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100034764
mov r10, qword [0x100152eb8]
lea rdi, [0x100152eb8]
jmp 0x1000ec1e8
lea rdi, [0x100152eb8]
jmp 0x1000ec1e8
lea rdi, [0x100152eb8]
jmp 0x1000ec1e8
lea rdi, [0x100152eb8]
jmp 0x1000ec1e8
lea rdi, [0x100152eb8]
jmp 0x1000ec1e8
lea rdi, [0x100152eb8]
cmp r10, rdi
je 0x1000ec222
test byte [r10 + 0x1c], 1
je 0x1000ec222
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1000ec222
mov edx, 0x61
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [r10 + 0x10]
call fcn.100036328
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000ec243
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1000ec253
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret