Function at 0x140008e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r9
mov rax, r8
mov rbx, rcx
mov qword [rbp - 0x48], rcx
xor esi, esi
mov dword [rbp - 0x50], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], sil
mov dword [rbp - 0x50], 1
cmp qword [r8 + 0x18], 0xf
jbe 0x140008edc
mov rax, qword [r8]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400090c3
mov dword [rbp - 0x40], esi
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140008f16
mov rdx, qword [r14]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400090b9
mov eax, dword [rbp - 0x10]
dec eax
cmp eax, 1
ja 0x1400090b9
mov edi, dword [rbp - 0x40]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
cmp rdi, 0xf
ja 0x140008f80
mov qword [rbp - 0x20], rdi
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140080e20
mov byte [rbp + rdi - 0x30], 0
jmp 0x140008ff1
mov r15, rdi
or r15, 0xf
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp r15, rax
cmovb r15, rax
lea rcx, [r15 + 1]
cmp rcx, 0x1000
jb 0x140008fcc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400090ef
mov rcx, rax
call fcn.14000de6c
test rax, rax
je 0x1400090e9
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140008fd4
call fcn.14000de6c
mov rsi, rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], r15
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140080e20
mov byte [rsi + rdi], 0
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rax, qword [rbp - 0x30]
cmp qword [r14 + 0x18], 0xf
jbe 0x140009009
mov r14, qword [r14]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140009082
lea rax, [rbp - 0x30]
cmp rbx, rax
je 0x140009082
mov rdi, qword [rbp - 0x20]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova r9, qword [rbp - 0x30]
mov rax, qword [rbx + 0x18]
cmp rdi, rax
ja 0x140009076
mov rsi, rbx
cmp rax, 0xf
jbe 0x14000905e
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.1400811e0
mov byte [rsi + rdi], 0
jmp 0x140009082
mov rdx, rdi
mov rcx, rbx
call fcn.140007da0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x1400090b9
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400090b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400090e9
call fcn.14000deb0
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000dbb0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140065400
int3
call fcn.140001180
int3