Function at 0x140018bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov r13d, ecx
mov eax, edx
and eax, 0xc
mov r12d, edx
and r12d, 0xfffffff7
cmp al, 0xc
cmovne r12d, edx
xor esi, esi
mov qword [rbp + 0x68], rsi
mov qword [rsp + 0x50], rsi
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x68]
xor ecx, ecx
call fcn.14001b6e0
xor r14b, r14b
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r15d, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140018cc2
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.14003c660
mov dword [rbp + 0x58], 0x80
mov dword [rbp + 0x60], esi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
xor r8d, r8d
lea rdx, str.LoggingType
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018cc2
lea edx, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400455e4
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140018ca0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140006690
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x140018d62
test r14b, r14b
jne 0x140018d62
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.14003c660
mov dword [rbp + 0x58], 0x80
mov dword [rbp + 0x60], esi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
xor r8d, r8d
lea rdx, str.LoggingType
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018d62
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400455e4
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140018d40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140006690
mov r14b, 1
mov r15, qword [rsp + 0x40]
mov esi, r12d
test r14b, r14b
je 0x140018fbd
test r15, r15
je 0x140018fbd
lea r10, [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 5
jb 0x140018df4
lea r11, [r10 - 8]
lea r11, [r11 + r15*2]
mov rcx, r10
lea rsi, str.EVENT
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140018df4
cmp word [rcx], 0x45
je 0x140018dbe
add rcx, 2
sub rax, 1
jmp 0x140018dac
test rcx, rcx
je 0x140018df4
mov r8d, 5
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140018dee
add rdx, 2
sub r8, 1
jne 0x140018dd2
sub rcx, r10
sar rcx, 1
jmp 0x140018dfb
add rcx, 2
jmp 0x140018da3
mov rcx, 0xffffffffffffffff
xor esi, esi
cmp rcx, 0xffffffffffffffff
setne sil
lea r10, [rsp + 0x30]
cmp r14, 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 4
jb 0x140018e82
lea r11, [r10 - 6]
lea r11, [r11 + r15*2]
mov rcx, r10
lea r14, str.FILE
nop dword [rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140018e82
cmp word [rcx], 0x46
je 0x140018e4b
add rcx, 2
sub rax, 1
jmp 0x140018e39
test rcx, rcx
je 0x140018e82
mov r8d, 4
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140018e7c
add rdx, 2
sub r8, 1
jne 0x140018e60
sub rcx, r10
sar rcx, 1
jmp 0x140018e89
add rcx, 2
jmp 0x140018e30
mov rcx, 0xffffffffffffffff
mov r14d, esi
or r14d, 8
cmp rcx, 0xffffffffffffffff
cmove r14d, esi
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r10, qword [rsp + 0x30]
cmp r15, 7
jb 0x140018f12
lea r11, [r10 - 0xc]
lea r11, [r11 + r15*2]
mov rcx, r10
lea rsi, str.CONSOLE
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140018f12
cmp word [rcx], 0x43
je 0x140018edc
add rcx, 2
sub rax, 1
jmp 0x140018eca
test rcx, rcx
je 0x140018f12
mov r8d, 7
mov rdx, rsi
mov r9, rcx
sub r9, rsi
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140018f0c
add rdx, 2
sub r8, 1
jne 0x140018ef0
sub rcx, r10
sar rcx, 1
jmp 0x140018f19
add rcx, 2
jmp 0x140018ec1
mov rcx, 0xffffffffffffffff
mov esi, r14d
or esi, 0x10
cmp rcx, 0xffffffffffffffff
cmove esi, r14d
lea r11, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r11, qword [rsp + 0x30]
cmp r15, 5
jb 0x140018fa2
lea r10, [r11 - 8]
lea r10, [r10 + r15*2]
mov rcx, r11
lea r14, str.DEBUG
mov rax, r10
sub rax, rcx
sar rax, 1
je 0x140018fa2
cmp word [rcx], 0x44
je 0x140018f6b
add rcx, 2
sub rax, 1
jmp 0x140018f59
test rcx, rcx
je 0x140018fa2
mov r8d, 5
mov rdx, r14
mov r9, rcx
sub r9, r14
nop
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140018f9c
add rdx, 2
sub r8, 1
jne 0x140018f80
sub rcx, r11
sar rcx, 1
jmp 0x140018fa9
add rcx, 2
jmp 0x140018f50
mov rcx, 0xffffffffffffffff
mov eax, esi
or eax, 2
cmp rcx, 0xffffffffffffffff
cmove eax, esi
mov esi, r12d
test eax, eax
cmovne esi, eax
xor r15d, r15d
mov r14d, r15d
xor edx, edx
lea r8d, [r15 + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14003c660
test esi, esi
je 0x140019148
lea r12, vtable.HP::Shared::ChpLogListenerDebug.0
lea rdi, vtable.HP::Shared::ChpLogListenerConsole.0
xor ebx, ebx
nop dword [rax + rax]
test sil, 1
je 0x14001902a
and esi, 0xfffffffe
mov ecx, 0x20
call fcn.14001e180
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14001901c
mov edx, r13d
mov rcx, rax
call fcn.140017950
mov rcx, rax
jmp 0x14001901f
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 8
je 0x140019066
and esi, 0xfffffff7
mov ecx, 0x250
call fcn.14001e180
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140019058
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.140017ab0
mov rcx, rax
jmp 0x14001905b
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 4
je 0x1400190a2
and esi, 0xfffffffb
mov ecx, 0x250
call fcn.14001e180
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140019094
mov r8d, r13d
mov dl, 1
mov rcx, rax
call fcn.140017ab0
mov rcx, rax
jmp 0x140019097
mov rcx, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], rcx
inc r14d
test sil, 2
je 0x1400190eb
and esi, 0xfffffffd
mov ecx, SafeArrayPutElement
call fcn.14001e180
mov r15, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x1400190dd
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400178a0
nop
mov qword [r15], r12
jmp 0x1400190e0
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test sil, 0x10
je 0x140019134
and esi, 0xffffffef
mov ecx, SafeArrayPutElement
call fcn.14001e180
mov r15, rax
mov qword [rbp], rax
test rax, rax
je 0x140019126
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call fcn.1400178a0
nop
mov qword [r15], rdi
jmp 0x140019129
mov r15, rbx
movsxd rax, r14d
mov qword [rsp + rax*8 + 0x60], r15
inc r14d
test esi, esi
jne 0x140018ff0
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x50]
xor r15d, r15d
mov ecx, 0xb0
call fcn.14001e180
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x140019236
mov qword [rax], 0x200
mov dword [rax + 0x58], r15d
mov byte [rax + 0x64], 0
mov qword [rax + 0x68], r15
lea rcx, [rax + 0x70]
call fcn.140017820
nop
mov dword [rsi + 0x58], r14d
lea r14, [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, r14
call fcn.14003c660
mov dword [rsi + 0x5c], 0x63
mov dword [rsi + 0x60], 5
lea r12, [rsp + 0x60]
sub r12, rsi
nop dword [rax + rax]
cmp r15d, dword [rsi + 0x58]
jge 0x140019208
mov rax, qword [r12 + r14 - 8]
test rax, rax
je 0x1400191ff
mov qword [r14], rax
mov ecx, dword [rax + 8]
cmp ecx, dword [rsi + 0x5c]
jge 0x1400191ce
mov dword [rsi + 0x5c], ecx
mov rax, qword [r14]
mov ecx, dword [rax + 0xc]
cmp ecx, dword [rsi + 0x60]
jle 0x1400191dc
mov dword [rsi + 0x60], ecx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp eax, 4
je 0x1400191f8
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp eax, 8
jne 0x1400191ff
mov rax, qword [r14]
mov qword [rsi + 0x68], rax
inc r15d
add r14, 8
jmp 0x1400191b0
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x140019221
cmp dword [rax + 0xc], 6
jl 0x140019221
cmp dword [rax + 8], 6
jg 0x140019221
mov byte [rsi + 0x64], 1
cmp qword [rsi], 0x1fa0
jbe 0x140019231
mov qword [rsi], 0x1fa0
xor r15d, r15d
jmp 0x140019239
mov rsi, r15
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140019277
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019272
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400192c6
call fcn.14001e178
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x14001929a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x1400192a8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400416f8
nop
int3