Function at 0x140081d80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
add r9, r8
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r9
mov word [rbp + 0x28], 0
mov dword [rbp + 0x30], 1
lea rcx, [rbp - 0x48]
lea r14, [rbp + 0x18]
mov rdx, r14
call fcn.140089190
mov dword [rbp + 0xc], 0
mov dword [rbp + 0x4c], 0
mov rdi, qword [rbp - 0x40]
lea r12, [rbp + 0x4c]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xc]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x140081e49
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x140082056
add rdx, rdx
mov r8d, 2
mov rcx, rdi
jmp 0x140082051
mov eax, dword [rbp + 0xc]
dec eax
cmp eax, 0xa
ja case.0x140081e65.5
lea rcx, [0x14020b04c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov r15d, dword [rbp + 0x4c]
mov r14d, r15d
shr r14d, 1
cmp r15, 2
jae 0x140081f0b
xor r15d, r15d
mov r13d, 2
jmp 0x140081f2b
mov r14d, dword [rbp + 0x4c]
test r14, r14
je 0x14008210b
mov edx, 1
mov rcx, r14
call fcn.140016e80
test rax, rax
je 0x1400823e0
mov r15, rax
jmp 0x140082111
cmp dword [rbp + 0x4c], 8
jne case.0x140081e65.5
mov qword [rbp + 0x18], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140081e1a
mov rax, qword [rbp + 0x18]
mov dword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x14008203b
and r15d, 0xfffffffe
mov edx, 2
mov rcx, r15
call fcn.140016e80
test rax, rax
je 0x1400823d1
mov r13, rax
mov r15, r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x1400820d8
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x38], r13
mov rcx, r13
mov rdx, r14
call fcn.1400dc180
lea rcx, [rax + rdx*2]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rcx
mov word [rbp + 0x28], 0
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x18]
call fcn.140043380
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp + 0x1c], xmm0
mov rax, qword [rbp - 8]
mov qword [rbp + 0x2c], rax
mov dword [rsi], 2
movups xmm0, xmmword [rbp + 0x18]
mov rax, qword [rbp + 0x24]
mov rcx, qword [rbp + 0x2c]
movups xmmword [rsi + 4], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x14008203b
add edx, edx
mov r8d, 2
mov rcx, qword [rbp + 0x38]
call fcn.140016e60
jmp 0x14008203b
cmp dword [rbp + 0x4c], 4
jne case.0x140081e65.5
mov dword [rbp + 0x18], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140081e1a
mov eax, dword [rbp + 0x18]
mov dword [rsi], 0
mov dword [rsi + 4], eax
jmp 0x14008203b
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], 0x8007000d
mov dword [rsi], 6
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x140082056
mov rcx, qword [rbp - 0x40]
add rdx, rdx
mov r8d, 2
call fcn.140016e60
nop
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r15d, dword [rbp + 0x4c]
mov r14d, r15d
shr r14d, 1
cmp r15, 2
jae 0x140082086
xor r15d, r15d
mov r13d, 2
jmp 0x1400820a6
and r15d, 0xfffffffe
mov edx, 2
mov rcx, r15
call fcn.140016e80
test rax, rax
je 0x1400823ef
mov r13, rax
mov r15, r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x140082173
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test r15, r15
je 0x140081e2b
add r15d, r15d
mov r8d, 2
mov rcx, r13
mov rdx, r15
call fcn.140016e60
jmp 0x140081e2b
mov r15d, 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1400821c4
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test r14d, r14d
je 0x140081e2b
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140016e60
jmp 0x140081e2b
mov qword [rbp + 0x10], r15
mov qword [rbp], r13
mov rcx, r13
mov rdx, r14
call fcn.1400dc180
mov rdi, rdx
mov r13b, 1
test rdx, rdx
je 0x1400821db
lea r8, [rdi + rdi]
mov rdx, 0xfffffffffffffffe
xor ecx, ecx
nop
cmp word [rax + rcx*2], 0
je 0x1400821e4
inc rcx
lea r9, [r8 + rdx]
add r9, 0xfffffffffffffffe
add rdx, 0xfffffffffffffffe
cmp r9, 0xfffffffffffffffe
jne 0x1400821a0
mov r15, rax
mov rcx, rdi
jmp 0x1400821f6
mov dword [rsi], 3
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
jmp 0x14008203b
xor edi, edi
mov r15, rax
xor ecx, ecx
jmp 0x1400821f6
mov r8, rcx
not r8
add rdi, r8
mov r15, rax
sub r15, rdx
xor r13d, r13d
lea rcx, [rax + rcx*2]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rcx
mov word [rbp + 0x28], 0
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x18]
call fcn.140043380
mov r12, qword [rbp - 0x18]
mov rax, r12
neg rax
jno 0x140082230
mov r14d, 8
xor ebx, ebx
xor eax, eax
jmp 0x14008239c
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x40], rax
mov rbx, qword [rbp - 8]
movzx eax, byte [0x1402e8381]
mov ecx, 0x60
mov edx, 8
call fcn.140016e50
test rax, rax
je 0x1400823fe
mov r14, rax
mov qword [rax], r12
mov rax, qword [rbp + 0x40]
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rbx
mov qword [rbp - 0x30], 4
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 1
test r13b, r13b
je 0x140082295
mov eax, 4
mov ebx, 1
jmp 0x14008239c
mov ebx, 1
jmp 0x1400822ce
mov r14, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
lea rax, [rbx + rbx*2]
mov qword [r14 + rax*8], rcx
mov qword [r14 + rax*8 + 8], rdx
mov qword [r14 + rax*8 + 0x10], r15
inc rbx
mov qword [rbp - 0x20], rbx
mov r15, r12
test r13b, 1
jne 0x140082394
test rdi, rdi
je 0x140082308
lea rdx, [rdi + rdi]
mov rcx, 0xfffffffffffffffe
xor eax, eax
cmp word [r15 + rax*2], 0
je 0x140082314
inc rax
lea r8, [rdx + rcx]
add r8, 0xfffffffffffffffe
add rcx, 0xfffffffffffffffe
cmp r8, 0xfffffffffffffffe
jne 0x1400822e0
mov r12, r15
mov r13b, 1
mov rax, rdi
jmp 0x140082323
mov r12, r15
xor edi, edi
mov r13b, 1
xor eax, eax
jmp 0x140082323
mov rdx, rax
not rdx
add rdi, rdx
mov r12, r15
sub r12, rcx
lea rax, [r15 + rax*2]
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], rax
mov word [rbp + 0x28], 0
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x18]
call fcn.140043380
mov rcx, qword [rbp - 0x18]
mov rax, rcx
neg rax
mov rax, qword [rbp - 0x30]
jo 0x140082398
mov rdx, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
cmp rbx, rax
jne 0x1400822a8
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], rcx
mov al, 2
sub al, r13b
movzx r8d, al
mov qword [rsp + 0x20], 0x18
mov r9d, 8
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.1401f0c90
jmp 0x14008229c
mov rax, qword [rbp - 0x30]
mov r14, qword [rbp - 0x28]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 0x10]
mov dword [rsi], 4
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rbx
test rdx, rdx
je 0x14008203b
add edx, edx
mov r8d, 2
call fcn.140016e60
jmp 0x14008203b
mov ecx, 2
mov rdx, r15
call fcn.1401fd4e0
jmp 0x140082411
mov ecx, 1
mov rdx, r14
call fcn.1401fd4e0
jmp 0x140082411
mov ecx, 2
mov rdx, r15
call fcn.1401fd4e0
jmp 0x140082411
mov qword [rbp + 0x38], r12
mov ecx, 8
mov edx, 0x60
call fcn.1401fd4e0
ud2