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

Disassembly:
mov rax, rsp
push rdi
push r12
push r15
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov ebp, r8d
mov rbx, rdx
mov r12, rcx
lea rdi, [0x100153eb8]
mov rcx, qword [0x100153eb8]
cmp rcx, rdi
je 0x1000eb8f9
test byte [rcx + 0x1c], 1
je 0x1000eb8f9
cmp byte [rcx + 0x19], 5
jb 0x1000eb8f9
mov edx, 0x39
mov dword [rax - 0x68], r8d
mov r9, rbx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
mov rdx, rbx
mov rcx, r12
call fcn.1000ea248
mov esi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rdi
je 0x1000eb93a
test byte [rcx + 0x1c], 2
je 0x1000eb93a
cmp byte [rcx + 0x19], 5
jb 0x1000eb93a
mov edx, 0x3a
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
xor edi, edi
mov eax, 0x490
test esi, esi
cmove edi, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.100035db8
nop
lea rcx, [rsp + 0x48]
call fcn.1000699ec
and dword [rsp + 0x30], 0
mov r15d, 4
test edi, edi
jne 0x1000eba0c
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, r12
call fcn.1000ebca8
mov edi, eax
mov esi, dword [rsp + 0x30]
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000eb9cc
test byte [rcx + 0x1c], 2
je 0x1000eb9cc
cmp byte [rcx + 0x19], r15b
jb 0x1000eb9cc
lea edx, [r15 + 0x37]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
test edi, edi
jne 0x1000eba1c
cmp esi, 1
jne 0x1000eba25
lea edi, [rsi + 4]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x1000eba2c
test byte [rcx + 0x1c], 2
je 0x1000eba2c
cmp byte [rcx + 0x19], 2
jb 0x1000eba2c
lea edx, [rsi + 0x3b]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [0x100153eb8]
jmp 0x1000eba2c
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
jmp 0x1000eba2c
lea rbx, [0x100153eb8]
jmp 0x1000eba2c
lea rbx, [0x100153eb8]
xor esi, esi
mov qword [rsp + 0x58], rsi
and qword [rsp + 0x60], rsi
and qword [rsp + 0x68], rsi
test edi, edi
jne 0x1000ebc1b
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.1000edcc4
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000eba89
test byte [rcx + 0x1c], 2
je 0x1000eba89
cmp byte [rcx + 0x19], r15b
jb 0x1000eba89
lea edx, [rsi + 0x3d]
mov r9d, eax
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rcx, qword [0x100153eb8]
test edi, edi
jne 0x1000ebc16
mov dword [rsp + 0x34], r15d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1000ebadc
mov eax, dword [rsp + 0x38]
sub eax, r15d
neg eax
sbb edi, edi
and edi, 0xd
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000ebb24
test byte [rcx + 0x1c], 2
je 0x1000ebb24
cmp byte [rcx + 0x19], r15b
jb 0x1000ebb24
mov edx, 0x3e
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
test edi, edi
je 0x1000ebb38
mov eax, 0x2a
mov dword [rsp + 0xa8], eax
xor edi, edi
jmp 0x1000ebb3f
mov eax, dword [rsp + 0xa8]
cmp ebp, eax
je 0x1000ebc1b
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000ebbb1
test byte [rcx + 0x1c], 2
je 0x1000ebbb1
cmp byte [rcx + 0x19], r15b
jb 0x1000ebbb1
mov edx, 0x3f
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov r9, qword [rsp + 0x48]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
test edi, edi
jne 0x1000ebc1b
mov rbx, qword [r12 + 8]
mov rax, qword [r12]
mov edx, 0x3eb
mov rcx, r12
call qword [rax + 0x48]
mov ecx, eax
mov r9, rbx
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
call fcn.1000f1054
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x1000ebc55
test byte [rcx + 0x1c], 2
je 0x1000ebc1b
cmp byte [rcx + 0x19], r15b
jb 0x1000ebc1b
lea edx, [rdi + 0x40]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [0x100153eb8]
jmp 0x1000ebc1b
mov rsi, qword [rsp + 0x58]
cmp rcx, rbx
je 0x1000ebc55
test byte [rcx + 0x1c], 1
je 0x1000ebc55
movzx r9d, byte [rcx + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1000ebc55
mov edx, 0x41
mov r9d, edi
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
test rsi, rsi
je 0x1000ebc64
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000ebc84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret