Function at 0x1400c9c20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, rcx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
xor r14d, r14d
mov qword [rbp - 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c9e88
mov word [rbp - 0x20], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x1e]
call fcn.14012ce40
mov dword [rbp - 0x60], 0x104
mov dword [rsp + 0x78], r14d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, r14d
cmp dword [rsp + 0x78], r14d
jbe 0x1400c9e47
lea rsi, [0x140148e78]
nop dword [rax]
mov dword [rbp - 0x5c], 0xff
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x5c]
lea r8, [rbp + 0x1f0]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400c9e3b
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1400c9e3b
mov qword [rbp - 0x80], r14
lea rcx, [rbp - 0x80]
call fcn.1400055e0
nop
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400c7dc0
cmp al, 1
jne 0x1400c9e1b
mov rdx, rsi
mov rcx, qword [rbp - 0x80]
call fcn.1401103e4
test eax, eax
je 0x1400c9df2
mov rdx, qword [rbp - 0x80]
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x1400c9e1b
add rax, 2
cmp rax, 0x1b
je 0x1400c9df2
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
je 0x1400c9dd0
jmp 0x1400c9e1b
mov rdx, qword [rbp - 0x70]
cmp rdx, qword [rbp - 0x68]
je 0x1400c9e0d
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp - 0x70], rdx
jmp 0x1400c9e1b
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.140047b90
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c9e3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x1400c9d30
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x70]
mov rax, rdi
mov rsi, qword [rbp - 0x78]
sub rax, rsi
sar rax, 4
cmp rax, 1
jbe 0x1400c9e90
cmp rsi, rdi
jae 0x1400c9e90
mov rbx, rsi
mov rdx, rbx
xor ecx, ecx
call qword [0x14017be48]
add rbx, 0x10
cmp rbx, rdi
jb 0x1400c9e72
jmp 0x1400c9e90
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub rdi, rsi
sar rdi, 4
test rsi, rsi
je 0x1400c9ed0
mov rdx, qword [rbp - 0x68]
sub rdx, rsi
and rdx, 0xfffffffffffffff0
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400c9ec8
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9efe
mov rcx, rsi
call fcn.1400ff054
mov eax, edi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400ff350
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14010b448
int3