Function at 0x140015c70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xe10]
sub rsp, 0xf10
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0xf40], rbx
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rbp + 0xe00], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x1a0]
call fcn.14001b300
xor ebx, ebx
mov rcx, qword [rdi]
test rcx, rcx
je 0x140015d81
mov dword [rsp + 0x60], 0x208
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.FileName
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015d81
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x140015d81
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140015d2a
test al, 1
jne 0x140015d81
shr rax, 1
cmp word [rbp + rax*2 + 0x19e], bx
je 0x140015d31
jmp 0x140015d81
mov word [rbp + 0x1a0], bx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x70]
call fcn.140018920
nop
or r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x70]
mov edx, 0x104
mov rcx, rsi
call fcn.1400219b0
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14001613d
call fcn.14001df3c
jmp 0x14001613d
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0xbf0]
call fcn.14001b300
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x70]
call fcn.140018920
nop
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0xbf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14002169c
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x140015e11
call fcn.14001df3c
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, qword [0x14003f2a8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov word [rbp + 0x190], bx
xor eax, eax
mov dword [rbp + 0x192], eax
mov word [rbp + 0x196], ax
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0x5c0]
call fcn.14001b300
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0x9e0]
call fcn.14001b300
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0x7d0]
call fcn.14001b300
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x80]
call fcn.140018920
nop
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x7d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0x9e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + 0x5c0]
mov r8d, 3
lea rdx, [rbp + 0x190]
mov rcx, qword [rbp + 0x80]
call fcn.14002169c
nop
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
cmp rcx, rax
je 0x140015f0b
call fcn.14001df3c
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x3b0]
call fcn.14001b300
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001605b
mov dword [rsp + 0x60], 0x208
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.TracePath
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001605b
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14001605b
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140015f98
test al, 1
jne 0x14001605b
shr rax, 1
cmp word [rbp + rax*2 + 0x19e], 0
je 0x140015f9f
jmp 0x14001605b
mov word [rbp + 0x1a0], bx
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x80]
call fcn.140018920
nop
mov r8, qword [rbp + 0x80]
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140021800
nop
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
cmp rcx, rax
je 0x140015ff2
call fcn.14001df3c
lea rcx, [rbp + 0x3b0]
call fcn.1400158e0
cmp word [rbp + 0x3b0], 0
je 0x140016099
lea rcx, [rbp + 0x3b0]
or rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140016020
cmp word [rbp + rax*2 + 0x3ae], 0x5c
je 0x140016099
or r9, 0xffffffffffffffff
lea r8, [0x1400369d8]
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140021700
mov word [rbp + 0x5b6], bx
jmp 0x140016099
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r9, str._s_s
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140014fa0
mov ebx, eax
test eax, eax
js 0x14001613d
cmp byte [0x14003f71a], 0
jne 0x1400160d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [0x14003f508]
test eax, eax
cmovne ecx, dword [rsp + 0x64]
mov dword [0x14003f508], ecx
mov byte [0x14003f71a], 1
jmp 0x1400160d7
mov ecx, dword [0x14003f508]
lea rax, [0x14003f2b0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ecx
lea rax, str..x64
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7d0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x9e0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xbf0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
lea r9, str._s_s._s_s_s._u_s.trc3
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rsi
call fcn.140014fa0
mov ebx, eax
not ebx
shr ebx, 0x1f
movzx eax, bl
mov rcx, qword [rbp + 0xe00]
xor rcx, rsp
call fcn.140019920
mov rbx, qword [rsp + 0xf40]
add rsp, 0xf10
pop rdi
pop rsi
pop rbp
ret