Function at 0x140003890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 0x21], rcx
xor r12d, r12d
mov dword [rbp - 0x49], r12d
mov qword [rbp + 0xf], r12
mov esi, r12d
mov qword [rbp + 0x1f], r12
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x27], r15
mov byte [rbp + 0xf], sil
mov qword [rbp - 0x21], r12
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003b49
mov dword [rbp - 0x19], r12d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductId
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003a79
xorps xmm0, xmm0
mov edi, dword [rbp - 0x19]
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
test rdi, rdi
je 0x1400039b4
cmp rdi, 0x1000
jb 0x14000398f
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140003bfa
call fcn.1400f89d8
mov rcx, rax
test rax, rax
je 0x140003c00
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003997
mov rcx, rdi
call fcn.1400f89d8
mov qword [rbp - 0x11], rax
lea rbx, [rax + rdi]
mov qword [rbp - 1], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400fb5b0
mov qword [rbp - 9], rbx
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140003a43
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductId
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003a3f
mov r8d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 0x41]
call fcn.1400035e0
mov rbx, rax
lea rax, [rbp + 0xf]
cmp rax, rbx
je 0x140003a36
lea rcx, [rbp + 0xf]
call fcn.1400091f0
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov r15, qword [rbp + 0x27]
mov rsi, qword [rbp + 0x1f]
lea rcx, [rbp - 0x41]
call fcn.1400091f0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140003a79
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c00
call fcn.1400f89d0
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140003b49
lea rbx, [rbp + 0xf]
cmp r15, 0x10
cmovae rbx, qword [rbp + 0xf]
cmp rsi, 0x10
jae 0x140003ac0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 7], reloc.WS2_32.dll_ntohs
mov qword [rbp - 1], rsi
lea rax, [rbp - 0x11]
mov ebx, 2
jmp 0x140003b7d
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140003b14
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003c06
mov rcx, rax
call fcn.1400f89d8
mov rcx, rax
test rax, rax
je 0x140003bf4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003b23
test rcx, rcx
je 0x140003b20
call fcn.1400f89d8
jmp 0x140003b23
mov rax, r12
mov qword [rbp - 0x11], rax
lea r8, [rsi + 1]
mov rdx, rbx
mov rcx, rax
call fcn.1400faf00
mov qword [rbp + 7], rdi
mov qword [rbp - 1], rsi
lea rax, [rbp - 0x11]
mov ebx, 2
jmp 0x140003b7d
mov qword [rbp - 0x41], r12
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov r8d, 7
lea rdx, str.UNKNOWN
lea rcx, [rbp - 0x41]
call fcn.140009250
lea rax, [rbp - 0x41]
mov ebx, 1
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 4
test bl, 2
je 0x140003bb1
and ebx, 0xfffffffd
lea rcx, [rbp - 0x11]
call fcn.1400091f0
nop
test bl, 1
je 0x140003bc0
lea rcx, [rbp - 0x41]
call fcn.1400091f0
nop
lea rcx, [rbp + 0xf]
call fcn.1400091f0
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14010347c
nop
call fcn.1400012e0
int3
call fcn.14010347c
int3
call fcn.1400012e0
int3