Function at 0x14000f310
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x500
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r13, qword [rbp + 0x440]
mov r14, qword [rbp + 0x448]
mov rsi, qword [rbp + 0x450]
mov qword [rsp + 0x70], rsi
mov rcx, rsi
call fcn.14000fea0
test al, al
je 0x14000f398
mov r8, 0xffffffff80000001
mov rdx, r14
mov rcx, r13
call fcn.1400113d0
nop
or rbx, 0xffffffffffffffff
jmp 0x14000f621
xor r15d, r15d
mov r12d, r15d
mov dword [rsp + 0x60], 0x104
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r15
mov word [rbp - 0x80], r15w
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
or rbx, 0xffffffffffffffff
nop dword [rax]
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x30]
mov edx, r12d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r12d
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
xor eax, eax
mov rcx, rbx
lea rdi, [rbp - 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.14001a580
nop
cmp qword [rbp - 0x68], 8
jb 0x14000f47a
mov rcx, qword [rbp - 0x80]
call fcn.14005e094
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r15
mov word [rbp - 0x80], r15w
mov rcx, qword [rbp - 0x40]
cmp rcx, 8
jae 0x14000f4b1
mov r8, qword [rbp - 0x48]
lea r8, [r8 + r8 + 2]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call fcn.14005e960
mov rcx, qword [rbp - 0x40]
jmp 0x14000f4b9
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rcx
mov r8d, 0x15
lea rdx, str.Volatile_Environment
lea rcx, [rbp - 0x80]
call fcn.140017ce0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000f585
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.USERNAME
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
js 0x14000f5ed
mov rax, qword [rsi]
lea rdx, [rbp + 0x1e0]
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14000f577
add rax, 2
test cx, cx
jne 0x14000f560
mov eax, r15d
jmp 0x14000f57c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x14000f595
test edi, edi
js 0x14000f5ed
cmp r12d, dword [rsp + 0x64]
ja 0x14000f5ed
jmp 0x14000f400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r8, qword [rsp + 0x68]
mov rdx, r14
mov rcx, r13
call fcn.1400113d0
nop
cmp qword [rbp - 0x68], 8
jb 0x14000f5da
mov rcx, qword [rbp - 0x80]
call fcn.14005e094
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r15
mov word [rbp - 0x80], r15w
jmp 0x14000f621
mov r8, 0xffffffff80000001
mov rdx, r14
mov rcx, r13
call fcn.1400113d0
nop
cmp qword [rbp - 0x68], 8
jb 0x14000f610
mov rcx, qword [rbp - 0x80]
call fcn.14005e094
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r15
mov word [rbp - 0x80], r15w
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14000f63c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14005e0b0
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret