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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [0x140025928]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
movabs rbx, 0x8000000000000000
test rax, rax
je 0x140006e6a
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [rbp + 4]
mov r8d, 0x118
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp], 0x11c
mov rcx, rbp
call rdi
test eax, eax
jne 0x140006f4f
mov r14d, dword [rbp + 4]
mov r13d, dword [rbp + 8]
mov ebx, dword [rbp + 0xc]
movzx eax, word [rbp + 0x118]
mov word [rbp + 0x1a2], ax
movzx eax, byte [rbp + 0x11a]
mov byte [rbp + 0x1bf], al
mov qword [rbp + 0x160], r14
mov qword [rbp + 0x168], r13
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x158], 1
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductNameEditionIDWindows_11
mov qword [rbp], rax
lea rax, [0x140025968]
mov qword [rbp + 8], rax
mov word [rbp + 0x10], 0
mov dword [rbp + 0x18], 1
lea rcx, [rbp - 0x18]
mov rdx, rbp
call fcn.140005ee0
mov qword [rbp + 0x178], 0
mov rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rbp + 0x1b0], rdx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006f5d
cmp qword [rbp + 0x178], 0
je 0x140006f5d
cmp r14d, 0xa
sete al
cmp ebx, 0x55f0
setae r12b
and r12b, al
mov eax, r12d
xor al, 1
movzx eax, al
lea rcx, [0x140025973]
lea rdx, [0x140025968]
test r12b, r12b
cmovne rdx, rcx
lea rax, [rdx + rax*2 + 9]
mov qword [rbp], rdx
mov qword [rbp + 8], rax
mov word [rbp + 0x10], 0
mov dword [rbp + 0x18], 1
lea rcx, [rbp - 0x30]
mov rdx, rbp
call fcn.140005ee0
mov dword [rbp + 0x194], 0
mov dword [rbp + 0x1a4], 0
mov rcx, qword [rbp + 0x178]
mov rdx, qword [rbp - 0x28]
lea r15, [rbp + 0x1a4]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x194]
mov qword [rbp + 0x180], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006fbd
cmp dword [rbp + 0x194], 1
jne 0x140006fbd
mov ecx, dword [rbp + 0x1a4]
test ecx, ecx
je 0x140006fbd
mov eax, ecx
and eax, 1
jne 0x140006fbd
mov eax, ecx
shr eax, 1
mov qword [rbp + 0x1a8], rax
mov eax, 2
mov qword [rbp + 0x188], rcx
cmp ecx, 2
jb 0x140006e01
mov rax, qword [rbp + 0x1a8]
lea rdi, [rax + rax]
mov edx, 2
mov rcx, rdi
call fcn.140005c10
test rax, rax
je 0x1400075a9
mov rcx, qword [rbp + 0x178]
mov qword [rsp + 0x28], r15
mov qword [rbp + 0x198], rax
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp + 0x180]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007016
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x1a8]
lea rdi, [rcx + rcx]
cmp rdi, rax
jne 0x140007016
cmp dword [rbp + 0x188], 2
jae 0x140007200
xor r8d, r8d
mov rdx, qword [rbp + 0x198]
jmp 0x14000721c
mov rax, qword [0x140030010]
mov rax, qword [rax]
xor ecx, ecx
cmp rax, 1
setne cl
mov eax, 0xff
cmovbe eax, ecx
test al, al
je 0x140006e97
movzx eax, al
cmp eax, 0xff
jne 0x140006f4f
lea rdx, [0x140025928]
lea rdi, [rbp + 0x158]
mov r8d, 6
mov rcx, rdi
call fcn.14001bf60
mov qword [rbp + 0x120], rdi
lea rax, [0x1400015a0]
mov qword [rbp + 0x128], rax
lea rax, [0x140025bd0]
mov qword [rbp], rax
mov qword [rbp + 8], 2
mov qword [rbp + 0x20], 0
lea rax, [rbp + 0x120]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 1
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:UsersLoneNone.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.0_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0x124
call fcn.140007900
mov rdx, qword [rbp + 0x158]
movabs rdi, 0x8000000000000000
cmp rdx, rdi
je 0x140006f46
test rdx, rdx
je 0x140006f46
mov rcx, qword [rbp + 0x160]
mov r8d, 1
call fcn.140005bf0
mov qword [rbp + 0x1b0], rdi
jmp 0x140006f56
mov qword [rbp + 0x1b0], rbx
xor eax, eax
jmp 0x14000743c
mov rax, qword [0x140030010]
mov rax, qword [rax]
test rax, rax
je 0x140007059
lea rax, str.RegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.x86_64ia64armaarch64i386ntdll
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:UsersLoneNone.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.0_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0x9c
call fcn.140007900
jmp 0x140007059
mov rax, qword [0x140030010]
mov rax, qword [rax]
test rax, rax
je 0x14000703b
lea rax, str.RegQueryValueExW_failed
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.x86_64ia64armaarch64i386ntdll
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:UsersLoneNone.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.0_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0xb8
call fcn.140007900
jmp 0x14000703b
cmp dword [rbp + 0x188], 2
jb 0x14000703b
mov rdx, qword [rbp + 0x1a8]
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x198]
call fcn.140005bf0
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140007059
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.140005bf0
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140007077
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.140005bf0
movabs r15, 0x8000000000000000
cmp r14d, 5
je 0x14000711a
cmp r14d, 6
je 0x1400070d4
cmp r14d, 0xa
jne case.default.0x1400070eb
test r13d, r13d
jne case.default.0x1400070eb
cmp byte [rbp + 0x1bf], 1
jne 0x1400071ee
cmp ebx, 0x55f0
lea rax, [0x140025aba]
lea rdi, str.Windows_10Windows_11Windows_Server_2016Windows_8.1Windows_Server_2012_R2Windows_8Windows_Server_2012Windows_7Windows_Server_2008_R2Windows_VistaWindows_Server_2008Windows_XPWindows_2000Windows_XP_Professional_x64_EditionWindows_Server_2003Windows_Home_ServerGetModuleHandleA___failed
cmovae rdi, rax
mov r15d, 0xa
jmp 0x1400073e5
cmp r13d, 3
ja case.default.0x1400070eb
mov eax, r13d
lea rcx, [0x140025bf0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp byte [rbp + 0x1bf], 1
mov eax, 0xd
mov r15d, 0x13
cmove r15, rax
lea rax, [0x140025b33]
lea rdi, [0x140025b40]
cmove rdi, rax
jmp 0x1400073e5
test r13d, r13d
je 0x140007155
cmp r13d, 1
je 0x140007143
cmp r13d, 2
jne case.default.0x1400070eb
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x140007389
jmp 0x14000741a
lea rdi, [0x140025b53]
mov r15d, 0xa
jmp 0x1400073e5
lea rdi, [0x140025b5d]
mov r15d, 0xc
jmp 0x1400073e5
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x13
cmove r15, rax
lea rax, [0x140025af8]
lea rdi, [0x140025b01]
cmove rdi, rax
jmp 0x1400073e5
cmp byte [rbp + 0x1bf], 1
mov eax, 0xb
mov r15d, 0x16
cmove r15, rax
lea rax, [0x140025ad7]
lea rdi, [0x140025ae2]
cmove rdi, rax
jmp 0x1400073e5
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x16
cmove r15, rax
lea rax, [0x140025b14]
lea rdi, [0x140025b1d]
cmove rdi, rax
jmp 0x1400073e5
lea rdi, [0x140025ac4]
mov r15d, 0x13
jmp 0x1400073e5
mov rax, qword [rbp + 0x1a8]
lea r8, [rax - 1]
mov rdx, qword [rbp + 0x198]
cmp word [rdx + rax*2 - 2], 0
cmovne r8, rax
mov rcx, rbp
call fcn.14000c6f0
mov rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x10]
lea rcx, [rbp - 0x48]
mov qword [rbp + 0x150], rdx
call fcn.1400116f0
lea rcx, [rbp + 0x138]
lea r15, [rbp - 0x48]
mov rdx, r15
call fcn.140005e40
mov rdx, qword [rbp]
test rdx, rdx
je 0x14000726a
mov r8d, 1
mov rcx, qword [rbp + 0x150]
call fcn.140005bf0
test r12b, r12b
je 0x1400072fb
lea rax, [rbp + 0x138]
mov qword [rbp - 0x48], rax
lea rax, [0x1400015a0]
mov qword [rbp - 0x40], rax
lea rax, [0x140025988]
mov qword [rbp], rax
mov qword [rbp + 8], 1
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 1
lea rcx, [rbp + 0x120]
mov rdx, rbp
call fcn.14001bdb0
mov r15, qword [rbp + 0x120]
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x1a8], rax
mov r12, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x138]
test rdx, rdx
je 0x140007317
mov rcx, qword [rbp + 0x140]
mov r8d, 1
call fcn.140005bf0
jmp 0x140007317
mov r15, qword [rbp + 0x138]
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0x1a8], rax
mov r12, qword [rbp + 0x148]
cmp dword [rbp + 0x188], 2
mov rcx, qword [rbp + 0x198]
jb 0x140007335
mov r8d, 2
mov rdx, rdi
call fcn.140005bf0
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140007353
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.140005bf0
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140007371
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.140005bf0
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x140007077
jmp 0x14000741a
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov rcx, rbp
call qword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [rbp + 0x1a2], 0
js 0x14000757f
cmp byte [rbp + 0x1bf], 1
sete al
cmp word [rbp], 9
sete cl
and cl, al
movzx eax, cl
mov r15, rax
shl r15, 4
add r15, 0x13
lea rcx, [0x140025b69]
lea rdi, [0x140025b8c]
test al, al
cmovne rdi, rcx
movzx eax, byte [0x140030181]
mov edx, 1
mov rcx, r15
call fcn.140005be0
test rax, rax
je 0x14000759a
mov qword [rbp + 0x1a8], rax
mov rcx, rax
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov r12, r15
mov qword [rbp + 0x1b0], r15
lea rax, [rbp + 0x160]
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x10], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
mov eax, 1
mov qword [rbp + 0x158], rax
movaps xmm0, xmmword [rbp]
movups xmmword [rbp + 0x160], xmm0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x170], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov byte [rbp + 0x1be], 1
mov rcx, rbp
call qword [sym.imp.kernel32.dll_GetNativeSystemInfo]
movzx eax, word [rbp]
movups xmm0, xmmword [rbp + 0x158]
movups xmm1, xmmword [rbp + 0x168]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
movabs r15, 0x8000000000000000
mov rdi, r15
cmp rax, 0xc
ja case.0x1400074b6.1
lea rcx, [0x140025c00]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rdi, r15
jmp rax
lea rbx, [0x140025924]
jmp 0x1400074c8
lea rbx, [0x140025916]
mov edi, 4
jmp 0x1400074f7
lea rbx, [0x14002591a]
mov edi, 3
jmp 0x1400074f7
lea rbx, str.x86_64ia64armaarch64i386ntdll
mov edi, 6
jmp 0x1400074f7
lea rbx, [0x14002591d]
mov edi, 7
movzx eax, byte [0x140030181]
mov edx, 1
mov rcx, rdi
call fcn.140005be0
test rax, rax
je 0x14000758b
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + 0x69], 0x2e
movups xmm0, xmmword [rbp + 0x158]
movups xmm1, xmmword [rbp + 0x168]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov rax, qword [rbp + 0x1b0]
mov qword [rsi + 0x20], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x38], r15
mov byte [rsi + 0x68], 2
mov qword [rsi + 0x50], rdi
mov qword [rsi + 0x58], r14
mov qword [rsi + 0x60], rdi
mov rax, rsi
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdi, [0x140025b9f]
jmp 0x1400071f5
mov ecx, 1
mov rdx, rdi
call fcn.1400230b0
jmp 0x1400075b6
mov ecx, 1
mov rdx, r15
call fcn.1400230b0
jmp 0x1400075b6
mov ecx, 2
mov rdx, rdi
call fcn.1400230b0
ud2