Function at 0x1400a9340
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x488]
sub rsp, 0x560
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r14, rcx
xor r13d, r13d
mov qword [rsp + 0x60], r13
lea rdx, [rcx + 0x10]
cmp qword [rcx + 0x28], 8
jb 0x1400a9399
mov rdx, qword [rcx + 0x10]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a98cd
xor r15b, r15b
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x50]
call fcn.1402dd440
mov r12d, r13d
mov dword [rsp + 0x54], 0x200
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x54]
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400a98ab
lea r8, [r14 + 0x10]
cmp qword [r14 + 0x28], 8
jb 0x1400a9432
mov r8, qword [r14 + 0x10]
lea r9, [rbp + 0x50]
lea rdx, [0x1403fea10]
lea rcx, [rbp - 0x50]
call fcn.1401349c0
mov rbx, rax
lea rax, [rbp - 0x70]
cmp rax, rbx
je 0x1400a947a
lea rcx, [rbp - 0x70]
call fcn.14007ec70
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp - 0x50]
call fcn.14007ec70
mov dword [rsp + 0x40], r13d
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], r13d
mov qword [rbp - 0x40], r13
mov rdx, 0xffffffff80000001
mov r9d, 0x20019
lea rcx, [rbp - 0x50]
call fcn.1400a5930
test eax, eax
jne 0x1400a94fe
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x140400b54]
mov rbx, qword [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x1400a950d
mov rcx, rbx
jmp 0x1400a9507
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400a950d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp], r13
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r13w
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea r9, [rbp - 0x10]
lea r8, [0x140400b30]
call fcn.140136c90
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea r9, [rbp - 0x30]
lea r8, [0x140400b40]
call fcn.140136c90
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r13w
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea r9, [rbp + 0x30]
lea r8, [0x140400b18]
call fcn.140136c90
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r13w
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea r9, [rbp + 0x10]
lea r8, [0x140400b28]
call fcn.140136c90
mov dword [rsp + 0x58], r13d
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], r13d
mov qword [rbp - 0x40], r13
mov rdx, 0xffffffff80000001
mov r9d, 0x20019
lea rcx, [rbp - 0x50]
call fcn.1400a5930
test eax, eax
jne 0x1400a9644
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x74]
xor r8d, r8d
lea rdx, [0x140400af0]
mov rbx, qword [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x1400a9653
mov rcx, rbx
jmp 0x1400a964d
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400a9653
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x50], 1
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], r13d
mov qword [rbp - 0x40], r13
mov rdx, 0xffffffff80000001
mov r9d, 0x20019
lea rcx, [rbp - 0x50]
call fcn.1400a5930
test eax, eax
jne 0x1400a96f1
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, [0x140400b08]
mov rdi, qword [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400a96dd
mov ebx, r13d
cmp dword [rsp + 0x6c], 4
mov eax, reloc.WS2_32.dll_listen
cmovne ebx, eax
test rdi, rdi
je 0x1400a96eb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a9719
jmp 0x1400a9700
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400a9700
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call fcn.1400a8cf0
mov r15b, 1
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x48], ecx
mov r8, qword [0x140492a10]
mov rdx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a9764
cmp dword [rax + 0x1c], ecx
jae 0x1400a9740
mov rax, qword [rax + 0x10]
jmp 0x1400a9746
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a9735
cmp rdx, r8
je 0x1400a9764
cmp ecx, dword [rdx + 0x1c]
jb 0x1400a9764
call fcn.1400aafb0
mov r10d, eax
mov dword [rsp + 0x40], eax
jmp 0x1400a97d6
mov rbx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400a9792
cmp dword [rax + 0x1c], ecx
jae 0x1400a977c
mov rax, qword [rax + 0x10]
jmp 0x1400a9782
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400a9771
cmp rbx, r8
je 0x1400a9792
cmp ecx, dword [rbx + 0x1c]
jae 0x1400a97cd
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
lea rcx, [0x140492a10]
call fcn.140086f10
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [0x140492a10]
call fcn.140086f40
mov rbx, qword [rbp - 0x80]
mov byte [rbx + 0x20], 1
mov r10d, dword [rsp + 0x40]
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rcx, qword [rbp + 0x30]
lea r9, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae r9, qword [rbp + 0x10]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov r8d, dword [rsp + 0x58]
mov edx, r10d
mov rcx, r14
call fcn.1400aa570
mov dword [rsp + 0x54], 0x200
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x50]
call fcn.1402dd440
inc r12d
lea rcx, [rbp + 0x10]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x30]
call fcn.14007ec70
nop
lea rcx, [rbp - 0x30]
call fcn.14007ec70
nop
lea rcx, [rbp - 0x10]
call fcn.14007ec70
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x54]
lea r8, [rbp + 0x50]
mov edx, r12d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400a9423
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15b, r15b
je 0x1400a98c4
mov rcx, r14
call fcn.1400a8f10
nop
lea rcx, [rbp - 0x70]
call fcn.14007ec70
cmp qword [r14 + 8], 0
jne 0x1400a98dc
mov rcx, r14
call fcn.1400aa190
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret