Function at 0x14002e2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
lea rbx, [rcx + 0x40]
xor r15d, r15d
mov r12, rdx
mov rdi, rcx
mov qword [rbp - 0x68], rbx
test rbx, rbx
je 0x14002e313
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
xor eax, eax
mov qword [rsp + 0x238], rsi
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x30]
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rdi + 0x10], r15
jne 0x14002e3eb
xor eax, eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x130]
movups xmm0, xmmword [rbp - 0x68]
mov qword [rbp + 0x130], r12
movups xmmword [r12], xmm0
mov qword [r12], r12
mov qword [r12 + 8], r12
call fcn.140009a20
mov rsi, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x14002eae6
nop dword [rax]
mov rdi, rsi
mov rsi, qword [rsi]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14002e3bd
lea rax, [rdi + 0x60]
cmp rcx, rax
je 0x14002e3bd
call fcn.140022b00
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002e3d4
lea rax, [rdi + 0x28]
cmp rcx, rax
je 0x14002e3d4
call fcn.140022b00
mov rcx, rdi
call fcn.1400229f0
lea rax, [rsp + 0x30]
cmp rsi, rax
jne 0x14002e3a0
jmp 0x14002eae6
mov rax, qword [rdi + 8]
lea rdx, [0x1400359e8]
lea rcx, [rsp + 0x40]
test rax, rax
cmovne rdx, rax
xor r8d, r8d
call fcn.1400223e0
cmp qword [rsp + 0x40], r15
jne 0x14002e4bc
mov r8, qword [rsp + 0x30]
xor eax, eax
lea r9, [rsp + 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x130]
movups xmm0, xmmword [rbp - 0x68]
mov qword [rbp + 0x130], r12
movups xmmword [r12], xmm0
mov qword [r12], r12
mov qword [r12 + 8], r12
call fcn.140009a20
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002e45e
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rsi, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x14002eae6
mov rdi, rsi
mov rsi, qword [rsi]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14002e48e
lea rax, [rdi + 0x60]
cmp rcx, rax
je 0x14002e48e
call fcn.140022b00
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002e4a5
lea rax, [rdi + 0x28]
cmp rcx, rax
je 0x14002e4a5
call fcn.140022b00
mov rcx, rdi
call fcn.1400229f0
lea rax, [rsp + 0x30]
cmp rsi, rax
jne 0x14002e471
jmp 0x14002eae6
mov qword [rsp + 0x1f8], r13
lea rax, [rbp + 0x20]
mov qword [rsp + 0x1f0], r14
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 1
mov word [rbp + 0x20], r15w
mov qword [rbp + 8], rax
mov r14d, r15d
lea rbx, str.ImagePath
lea r13, str.DriveLetter
nop word [rax + rax]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov r8d, r14d
call fcn.140009190
lea rcx, [rbp + 8]
or r9, 0xffffffffffffffff
mov rdx, rax
xor r8d, r8d
call fcn.140005670
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e53e
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x14002e53e
call fcn.140022b00
cmp qword [rbp + 0x10], r15
je 0x14002e9b9
mov rax, qword [rbp + 8]
lea rcx, [0x1400359e8]
lea rdx, [rbp + 0xc0]
test rax, rax
cmovne rcx, rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rbp + 0xc0], rcx
lea rcx, [rbp - 0x50]
mov qword [rbp + 0xc8], rax
call fcn.140022320
lea rax, [rbp + 0x58]
lea r8, [rbp - 0x80]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x90]
lea rdx, [rbp + 0x130]
mov qword [rbp + 0x78], rax
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0xd0]
mov qword [rbp + 0xd8], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], 1
mov word [rbp + 0x58], r15w
mov qword [rbp + 0x80], r15
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x88], 1
mov word [rbp + 0x90], r15w
mov qword [rbp + 0xd0], rbx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 1
mov word [rsp + 0x60], r15w
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
call fcn.140008f60
cmp dword [rbp + 0x130], r15d
jge 0x14002e629
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002e6ad
jmp 0x14002e6a8
mov rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x14002e6ad
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
lea rcx, [rsp + 0x48]
shr r8, 1
call fcn.140003dd0
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14002e6a5
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
nop dword [rax + rax]
lea rcx, [rax - 1]
cmp rcx, rax
mov rax, r15
jae 0x14002e670
lea rax, [r8 + rcx*2]
cmp word [rax], r15w
jne 0x14002e6a5
mov rax, rcx
cmp rcx, rdx
jb 0x14002e682
lea rax, [rdx - 1]
test rdx, rdx
jne 0x14002e68c
mov rax, r15
jmp 0x14002e69b
mov word [r8 + rax*2], r15w
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14002e660
mov rcx, rdi
call fcn.140022b00
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x78]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140005670
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e6db
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x14002e6db
call fcn.140022b00
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140005670
lea rax, [rbp - 0x50]
lea r8, [rbp - 0x80]
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x60]
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x40]
mov byte [rbp + 0xb0], r15b
mov qword [rbp - 0x40], r13
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 1
mov word [rsp + 0x60], r15w
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
call fcn.140008f60
cmp dword [rbp + 0x140], r15d
jge 0x14002e75b
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002e7dd
jmp 0x14002e7d8
mov rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x14002e7dd
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
lea rcx, [rsp + 0x48]
shr r8, 1
call fcn.140003dd0
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14002e7d5
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
nop dword [rax]
lea rcx, [rax - 1]
cmp rcx, rax
mov rax, r15
jae 0x14002e7a0
lea rax, [r8 + rcx*2]
cmp word [rax], r15w
jne 0x14002e7d5
mov rax, rcx
cmp rcx, rdx
jb 0x14002e7b2
lea rax, [rdx - 1]
test rdx, rdx
jne 0x14002e7bc
mov rax, r15
jmp 0x14002e7cb
mov word [r8 + rax*2], r15w
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14002e790
mov rcx, rdi
call fcn.140022b00
mov rdi, qword [rsp + 0x50]
cmp rdi, 0x10
jb 0x14002e7fb
mov eax, edi
lea ecx, [rax*2 + 2]
call fcn.140022b10
mov rcx, rax
jmp 0x14002e7ff
lea rcx, [rbp - 0x18]
lea rax, [rdi + 1]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rax
mov word [rcx], r15w
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14002e85d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x30]
add r8, r8
call fcn.140001010
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp - 0x20]
cmp rcx, rax
jb 0x14002e840
lea rcx, [rax - 1]
test rax, rax
jne 0x14002e84e
mov rcx, r15
mov qword [rbp - 0x28], rcx
jmp 0x14002e861
mov rax, qword [rbp - 0x30]
mov word [rax + rcx*2], r15w
mov qword [rbp - 0x28], rcx
jmp 0x14002e861
mov rcx, qword [rbp - 0x28]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002e881
lea rdx, [rsp + 0x60]
cmp rax, rdx
je 0x14002e881
mov rcx, rax
call fcn.140022b00
mov rcx, qword [rbp - 0x28]
cmp rcx, 1
jb 0x14002e89b
mov rax, qword [rbp - 0x30]
test rcx, rcx
cmove rax, r15
movzx eax, byte [rax]
mov byte [rbp + 0xb0], al
lea rdx, str.MMCProfile
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp + 0x148]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x80]
lea rdx, [rbp + 0xe0]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
mov dword [rbp + 0x148], r15d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ecx, r15d
test eax, eax
cmovns ecx, dword [rbp - 0x74]
mov word [rbp + 0xb2], cx
mov ecx, 0x88
call fcn.1400229d0
mov rdi, rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x14002e939
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.140003d00
lea rcx, [rsi + 0x38]
lea rdx, [rbp + 0x78]
call fcn.140003d00
movzx ecx, byte [rbp + 0xb0]
mov byte [rsi + 0x70], cl
movzx ecx, word [rbp + 0xb2]
mov word [rsi + 0x72], cx
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rdi + 8], rax
mov qword [rdi], rcx
mov qword [rax], rdi
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x38], rdi
test rcx, rcx
je 0x14002e969
lea rax, [rbp - 0x18]
cmp rcx, rax
je 0x14002e969
call fcn.140022b00
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14002e983
lea rax, [rbp + 0x90]
cmp rcx, rax
je 0x14002e983
call fcn.140022b00
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14002e99a
lea rax, [rbp + 0x58]
cmp rcx, rax
je 0x14002e99a
call fcn.140022b00
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14002e9a9
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r14d
cmp r14d, 0x3e8
jl 0x14002e500
mov rdi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x1f8]
mov rbx, qword [rbp - 0x68]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [r12], xmm0
mov qword [r12], r12
mov qword [r12 + 8], r12
cmp rdi, rax
je 0x14002ea5c
mov ecx, 0x88
call fcn.1400229d0
mov rsi, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x14002ea36
lea rdx, [rdi + 0x10]
mov rcx, r14
call fcn.140003d00
lea rdx, [rdi + 0x48]
lea rcx, [r14 + 0x38]
call fcn.140003d00
movzx ecx, byte [rdi + 0x80]
mov byte [r14 + 0x70], cl
movzx ecx, word [rdi + 0x82]
mov word [r14 + 0x72], cx
mov rax, qword [r12 + 8]
mov qword [rsi], r12
mov qword [rsi + 8], rax
mov qword [rax], rsi
mov qword [r12 + 8], rsi
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14002e9f0
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rbp + 8]
mov r14, qword [rsp + 0x1f0]
test rcx, rcx
je 0x14002ea80
lea rax, [rbp + 0x20]
cmp rcx, rax
je 0x14002ea80
call fcn.140022b00
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002ea95
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x14002eae6
nop
mov rsi, rdi
mov rdi, qword [rdi]
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x14002eabd
lea rax, [rsi + 0x60]
cmp rcx, rax
je 0x14002eabd
call fcn.140022b00
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14002ead4
lea rax, [rsi + 0x28]
cmp rcx, rax
je 0x14002ead4
call fcn.140022b00
mov rcx, rsi
call fcn.1400229f0
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14002eaa0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
test rbx, rbx
je 0x14002eb0a
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeReleaseMutex]
mov rax, r12
mov rsi, qword [rsp + 0x238]
add rsp, 0x200
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret