Function at 0x1401987dc
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x38], 0
lea rax, [rbp - 0x40]
xor edi, edi
mov qword [rsp + 0x20], rax
and qword [rbp - 0x28], rdi
mov r14, rdx
xor ebx, ebx
mov qword [rbp - 0x30], rdi
and qword [rbp - 0x40], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion_
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140198868
xor esi, esi
mov rdi, qword [rbp - 0x40]
and qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x40]
call fcn.140068d58
mov r12d, 0x8007000d
test esi, esi
jns 0x140198883
mov ecx, esi
call fcn.140078308
jmp 0x140198925
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140198836
mov ecx, esi
call fcn.140078308
jmp 0x140198842
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rdx, str.DigitalProductId4
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401988c1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x14019885c
test rbx, rbx
jne 0x1401988ff
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1401988f5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140198886
mov esi, 0x8007000e
jmp 0x14019885c
mov esi, 0x8000ffff
jmp 0x14019885c
cmp dword [rbp + 0x40], 3
je 0x140198910
mov esi, r12d
mov ecx, r12d
jmp 0x14019885e
mov qword [rbp - 0x38], rbx
xor ecx, ecx
call fcn.140078324
mov eax, dword [rbp + 0x30]
xor esi, esi
mov dword [rbp + 0x48], eax
xor ebx, ebx
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x140198945
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 0x28]
call fcn.140068d58
lea rcx, [rbp - 0x30]
call fcn.140068d58
test esi, esi
jns 0x140198967
mov ecx, esi
call fcn.140078308
jmp 0x140198a20
mov ecx, 0x4f8
cmp dword [rbp + 0x48], ecx
je 0x140198979
mov esi, r12d
mov ecx, r12d
jmp 0x14019895d
mov rax, qword [rbp - 0x38]
cmp dword [rax], ecx
jne 0x140198971
mov ecx, 9
lea edx, [rcx + 0x77]
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r14 + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r14 + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r14 + 0x60], xmm0
add r14, rdx
movups xmm1, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [r14 - 0x10], xmm1
sub rcx, 1
jne 0x140198989
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r14 + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r14 + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r14 + 0x60], xmm0
mov rax, qword [rax + 0x70]
mov qword [r14 + 0x70], rax
mov ecx, esi
call fcn.140078324
and qword [rbp - 0x10], 0
lea rax, [0x14001a7a0]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x70
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret