Function at 0x140064cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15d, r8d
mov r14d, edx
mov rsi, rcx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x60]
call fcn.1400ec650
mov edx, 1
lea rcx, [rbp + 0x60]
call fcn.14001a6d0
lea rdx, [0x140137f68]
lea rcx, [rbp + 0x70]
call fcn.140016ed0
mov rcx, rax
mov edx, r14d
call fcn.140064300
mov rcx, rax
lea rdx, [0x140137f60]
call fcn.140016ed0
mov rcx, rax
mov edx, r15d
call fcn.140064300
mov rcx, rax
lea rdx, str.HIPM
call fcn.140016ed0
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov rcx, qword [rbp + 0xe8]
test cl, 2
jne 0x140064dc4
mov rax, qword [rbp + 0xb8]
mov r8, qword [rax]
test r8, r8
je 0x140064dc4
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xe0]
cmovb r8, qword [rbp + 0xe0]
sub r8, rdx
jmp 0x140064df5
test cl, 4
jne 0x140064e02
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140064e02
mov rax, qword [rbp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xc8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x30]
call fcn.140009900
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140064e7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064e75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065044
call fcn.1400e9cd4
cmp ebx, 2
je 0x140064e8f
test ebx, ebx
jne 0x140064e8a
cmp dword [rsp + 0x50], 1
je 0x140064e8f
xor dil, dil
jmp 0x140064e92
mov dil, 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400ec650
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14001a6d0
lea rdx, [0x140137f68]
lea rcx, [rsp + 0x70]
call fcn.140016ed0
mov rcx, rax
mov edx, r14d
call fcn.140064300
mov rcx, rax
lea rdx, [0x140137f60]
call fcn.140016ed0
mov rcx, rax
mov edx, r15d
call fcn.140064300
mov rcx, rax
lea rdx, str.DIPM
call fcn.140016ed0
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov rcx, qword [rbp - 0x18]
test cl, 2
jne 0x140064f43
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x140064f43
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x140064f6b
test cl, 4
jne 0x140064f78
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140064f78
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x30]
call fcn.140009900
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140064fec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006503e
call fcn.1400e9cd4
test dil, dil
je 0x140065005
cmp ebx, 2
je 0x140065001
test ebx, ebx
jne 0x140065005
cmp dword [rsp + 0x50], 1
jne 0x140065005
mov bl, 1
jmp 0x140065007
xor bl, bl
lea rcx, [rsp + 0x60]
call fcn.1400195a0
lea rcx, [rbp + 0x60]
call fcn.1400195a0
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400f8ad4
int3
call fcn.1400f8ad4
int3