Function at 0x1400599c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400f2010]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x20], rcx
xor r15d, r15d
mov qword [rbp + 0x20], r15
mov eax, dword [rdx + 0x20]
cmp eax, 1
jne 0x140059a09
mov ebx, 0x20219
jmp 0x140059a19
mov ebx, 0x20019
mov ecx, 0x20119
cmp eax, 2
cmove ebx, ecx
lea rcx, [rsp + 0x40]
call fcn.140006870
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140059a91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059a8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059c4a
call fcn.140085050
test ebx, ebx
jne 0x140059c50
mov eax, 2
mov dword [rbp + 0x28], eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov rcx, r15
mov qword [rbp + 0x40], rcx
mov r8d, eax
and r8d, 1
shr rax, 1
add r8, rax
mov r9, qword [rbp + 0x38]
mov rax, r9
mov rdx, qword [rbp + 0x30]
sub rax, rdx
sar rax, 1
cmp r8, rax
jae 0x140059add
lea rax, [rdx + r8*2]
mov qword [rbp + 0x38], rax
jmp 0x140059b17
jbe 0x140059b17
sub rcx, rdx
sar rcx, 1
cmp r8, rcx
jbe 0x140059afb
lfence
mov rdx, r8
lea rcx, [rbp + 0x30]
call fcn.140057a80
jmp 0x140059b13
sub r8, rax
add r8, r8
lea rbx, [r9 + r8]
xor edx, edx
mov rcx, r9
call fcn.14008b8d0
mov qword [rbp + 0x38], rbx
mov rdx, qword [rbp + 0x30]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140059b24
mov r8, qword [rdi]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 0xea
jne 0x140059b5a
mov eax, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x40]
jmp 0x140059ab0
test eax, eax
jne 0x140059c86
mov ecx, dword [rbp + 0x28]
test cl, 1
jne 0x140059cc1
mov edx, ecx
and edx, 1
mov eax, ecx
shr rax, 1
add rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400578b0
mov rcx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x38]
cmp rcx, r8
je 0x140059cfa
add r8, 0xfffffffffffffffe
mov qword [rbp + 0x38], r8
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
cmp rcx, r8
je 0x140059bca
sub r8, rcx
sar r8, 1
mov rdx, rcx
mov rcx, rsi
call fcn.140006eb0
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140059c0f
mov rax, qword [rbp + 0x40]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059bfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059c44
call fcn.140085050
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r15
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140059c1e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140085030
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14008fffc
nop
call fcn.14008fffc
int3
mov r9, r14
mov r8d, ebx
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rbp - 0x40]
call fcn.140058920
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002740
lea rdx, [0x1400eff08]
lea rcx, [rsp + 0x60]
call fcn.14008b7f4
nop
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8d, eax
lea rdx, str.Failed_to_query_registry_key
lea rcx, [rbp - 0x20]
call fcn.140058c00
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140002740
lea rdx, [0x1400eff08]
lea rcx, [rsp + 0x78]
call fcn.14008b7f4
nop
mov qword [rsp + 0x20], rdi
mov r9, r14
xor r8d, r8d
lea rdx, str.Invalid_registry_value_data_length
lea rcx, [rbp]
call fcn.140058c00
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140002740
lea rdx, [0x1400eff08]
lea rcx, [rbp - 0x70]
call fcn.14008b7f4
nop
lea rdx, str.String_values_should_always_have_at_least_a_null_terminating_character
lea rcx, [rbp - 0x58]
call fcn.14000be60
lea rdx, [0x1400eff08]
lea rcx, [rbp - 0x58]
call fcn.14008b7f4
int3