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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rdi, r8
mov r12, rdx
mov r13, rcx
lea rax, [0x100153eb8]
mov edx, 5
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x1000eb39e
test byte [rcx + 0x1c], 1
je 0x1000eb39e
cmp byte [rcx + 0x19], dl
jb 0x1000eb39e
mov edx, 0x2f
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
xor ebx, ebx
xor ebp, ebp
mov dword [rsp + 0xc8], ebp
mov rdx, r12
mov rcx, r13
call fcn.1000ea248
mov esi, eax
lea r15d, [rbx + 2]
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb3f5
test byte [rcx + 0x1c], r15b
je 0x1000eb3f5
lea eax, [rbx + 5]
cmp byte [rcx + 0x19], al
jb 0x1000eb3f5
lea edx, [rbx + 0x30]
mov dword [rsp + 0x20], esi
mov r9, r12
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
test esi, esi
jne 0x1000eb403
mov ebx, 0x490
jmp 0x1000eb4b6
lea r8, [rsp + 0xc8]
mov rdx, r12
mov rcx, r13
call fcn.1000ebca8
mov esi, eax
mov ebp, dword [rsp + 0xc8]
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb47f
test byte [rcx + 0x1c], r15b
je 0x1000eb47f
movzx edx, byte [rcx + 0x19]
mov eax, r15d
test esi, esi
mov r8d, 5
cmove eax, r8d
cmp edx, eax
jl 0x1000eb478
lea edx, [r8 + 0x2c]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
mov r9d, esi
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9c24
lea rax, [0x100153eb8]
jmp 0x1000eb47f
lea rax, [0x100153eb8]
test esi, esi
jne 0x1000eb4b6
cmp ebp, 1
jne 0x1000eb4b6
mov dword [rdi], r15d
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x1000eb4b6
test byte [rcx + 0x1c], r15b
je 0x1000eb4b6
cmp byte [rcx + 0x19], 4
jb 0x1000eb4b6
lea edx, [rsi + 0x32]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.100035db8
nop
lea rcx, [rsp + 0x30]
call fcn.1000699ec
xor esi, esi
mov qword [rsp + 0x60], rsi
and qword [rsp + 0x68], rsi
and qword [rsp + 0x70], rsi
test ebp, ebp
jne 0x1000eb7f7
test ebx, ebx
jne 0x1000eb7f7
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1000edcc4
mov ebx, eax
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb53a
test byte [rcx + 0x1c], r15b
je 0x1000eb53a
cmp byte [rcx + 0x19], 4
jb 0x1000eb53a
lea edx, [rsi + 0x33]
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rcx, qword [0x100153eb8]
test ebx, ebx
jne 0x1000eb7f0
and dword [rdi], ebx
or ebp, 0xffffffff
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000eb58d
mov eax, dword [rsp + 0x4c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb5d7
test byte [rcx + 0x1c], r15b
je 0x1000eb5d7
cmp byte [rcx + 0x19], 4
jb 0x1000eb5d7
mov edx, 0x34
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
cmp ebx, r15d
je 0x1000eb5ec
test ebx, ebx
jne 0x1000eb7fe
cmp dword [rdi], ebx
jne 0x1000eb7fe
test ebx, ebx
jne 0x1000eb5f2
mov ebp, dword [rdi]
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, [0x100026ad0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000eb635
mov eax, dword [rsp + 0x3c]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb681
test byte [rcx + 0x1c], r15b
je 0x1000eb681
cmp byte [rcx + 0x19], 4
jb 0x1000eb681
mov edx, 0x35
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x100026ad0]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
cmp ebx, r15d
jne 0x1000eb70b
and dword [rdi], 0
and dword [rsp + 0x50], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x100026ad0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb70b
test byte [rcx + 0x1c], r15b
je 0x1000eb70b
cmp byte [rcx + 0x19], 4
jb 0x1000eb70b
mov edx, 0x36
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [0x100026ad0]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
test ebx, ebx
jne 0x1000eb78c
mov eax, dword [rdi]
cmp eax, ebp
je 0x1000eb78c
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb78c
test byte [rcx + 0x1c], r15b
je 0x1000eb78c
cmp byte [rcx + 0x19], 4
jb 0x1000eb78c
mov edx, 0x37
mov dword [rsp + 0x28], ebx
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
cmp dword [rdi], 0
jne 0x1000eb7d0
and dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea r8, [0x100026af0]
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call fcn.1000ebf88
test eax, eax
jne 0x1000eb7c9
cmp dword [rsp + 0x38], 1
jne 0x1000eb7c9
mov dword [rdi], 1
mov rcx, qword [0x100153eb8]
jmp 0x1000eb7d0
mov rcx, qword [0x100153eb8]
cmp dword [rdi], 0
jne 0x1000eb7fe
mov rax, qword [r13]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call qword [rax + 0x28]
mov ebx, eax
mov rcx, qword [0x100153eb8]
jmp 0x1000eb7fe
mov rsi, qword [rsp + 0x60]
jmp 0x1000eb7fe
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb83f
test byte [rcx + 0x1c], 1
je 0x1000eb83f
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1000eb83f
mov edx, 0x38
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
test rsi, rsi
je 0x1000eb84e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000eb86e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret