Function at 0x140007220
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, [0x140028e00]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
movabs rbx, 0x8000000000000000
test rax, rax
je 0x1400074da
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 0x1400075bf
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, [0x140028e40]
mov qword [rbp + 8], rax
mov word [rbp + 0x10], 0
mov dword [rbp + 0x18], 1
lea rcx, [rbp - 0x18]
mov rdx, rbp
call fcn.140006740
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 0x1400075cd
cmp qword [rbp + 0x178], 0
je 0x1400075cd
cmp r14d, 0xa
sete al
cmp ebx, 0x55f0
setae r12b
and r12b, al
mov eax, r12d
xor al, 1
movzx eax, al
lea rcx, [0x140028e4b]
lea rdx, [0x140028e40]
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.140006740
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 0x14000762d
cmp dword [rbp + 0x194], 1
jne 0x14000762d
mov ecx, dword [rbp + 0x1a4]
test ecx, ecx
je 0x14000762d
mov eax, ecx
and eax, 1
jne 0x14000762d
mov eax, ecx
shr eax, 1
mov qword [rbp + 0x1a8], rax
mov eax, 2
mov qword [rbp + 0x188], rcx
cmp ecx, 2
jb 0x140007471
mov rax, qword [rbp + 0x1a8]
lea rdi, [rax + rax]
mov edx, 2
mov rcx, rdi
call fcn.140006220
test rax, rax
je 0x140007c19
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 0x140007686
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x1a8]
lea rdi, [rcx + rcx]
cmp rdi, rax
jne 0x140007686
cmp dword [rbp + 0x188], 2
jae 0x140007870
xor r8d, r8d
mov rdx, qword [rbp + 0x198]
jmp 0x14000788c
mov rax, qword [0x140034010]
mov rax, qword [rax]
xor ecx, ecx
cmp rax, 1
setne cl
mov eax, 0xff
cmovbe eax, ecx
test al, al
je 0x140007507
movzx eax, al
cmp eax, 0xff
jne 0x1400075bf
lea rdx, [0x140028e00]
lea rdi, [rbp + 0x158]
mov r8d, 6
mov rcx, rdi
call fcn.14001d7a0
mov qword [rbp + 0x120], rdi
lea rax, [0x1400013d0]
mov qword [rbp + 0x128], rax
lea rax, [0x1400290a8]
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:Users_nlaocs.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0x124
call fcn.140007f70
mov rdx, qword [rbp + 0x158]
movabs rdi, 0x8000000000000000
cmp rdx, rdi
je 0x1400075b6
test rdx, rdx
je 0x1400075b6
mov rcx, qword [rbp + 0x160]
mov r8d, 1
call fcn.140006200
mov qword [rbp + 0x1b0], rdi
jmp 0x1400075c6
mov qword [rbp + 0x1b0], rbx
xor eax, eax
jmp 0x140007aac
mov rax, qword [0x140034010]
mov rax, qword [rax]
test rax, rax
je 0x1400076c9
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:Users_nlaocs.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0x9c
call fcn.140007f70
jmp 0x1400076c9
mov rax, qword [0x140034010]
mov rax, qword [rax]
test rax, rax
je 0x1400076ab
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:Users_nlaocs.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
mov rcx, rbp
mov edx, 1
mov r9d, 0xb8
call fcn.140007f70
jmp 0x1400076ab
cmp dword [rbp + 0x188], 2
jb 0x1400076ab
mov rdx, qword [rbp + 0x1a8]
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x198]
call fcn.140006200
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400076c9
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.140006200
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1400076e7
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.140006200
movabs r15, 0x8000000000000000
cmp r14d, 5
je 0x14000778a
cmp r14d, 6
je 0x140007744
cmp r14d, 0xa
jne case.default.0x14000775b
test r13d, r13d
jne case.default.0x14000775b
cmp byte [rbp + 0x1bf], 1
jne 0x14000785e
cmp ebx, 0x55f0
lea rax, [0x140028f92]
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 0x140007a55
cmp r13d, 3
ja case.default.0x14000775b
mov eax, r13d
lea rcx, [0x1400290c8]
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, [0x14002900b]
lea rdi, [0x140029018]
cmove rdi, rax
jmp 0x140007a55
test r13d, r13d
je 0x1400077c5
cmp r13d, 1
je 0x1400077b3
cmp r13d, 2
jne case.default.0x14000775b
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1400079f9
jmp 0x140007a8a
lea rdi, [0x14002902b]
mov r15d, 0xa
jmp 0x140007a55
lea rdi, [0x140029035]
mov r15d, 0xc
jmp 0x140007a55
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x13
cmove r15, rax
lea rax, [0x140028fd0]
lea rdi, [0x140028fd9]
cmove rdi, rax
jmp 0x140007a55
cmp byte [rbp + 0x1bf], 1
mov eax, 0xb
mov r15d, 0x16
cmove r15, rax
lea rax, [0x140028faf]
lea rdi, [0x140028fba]
cmove rdi, rax
jmp 0x140007a55
cmp byte [rbp + 0x1bf], 1
mov eax, 9
mov r15d, 0x16
cmove r15, rax
lea rax, [0x140028fec]
lea rdi, [0x140028ff5]
cmove rdi, rax
jmp 0x140007a55
lea rdi, [0x140028f9c]
mov r15d, 0x13
jmp 0x140007a55
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.14000d880
mov rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x10]
lea rcx, [rbp - 0x48]
mov qword [rbp + 0x150], rdx
call fcn.1400149a0
lea rcx, [rbp + 0x138]
lea r15, [rbp - 0x48]
mov rdx, r15
call fcn.1400064e0
mov rdx, qword [rbp]
test rdx, rdx
je 0x1400078da
mov r8d, 1
mov rcx, qword [rbp + 0x150]
call fcn.140006200
test r12b, r12b
je 0x14000796b
lea rax, [rbp + 0x138]
mov qword [rbp - 0x48], rax
lea rax, [0x1400013d0]
mov qword [rbp - 0x40], rax
lea rax, [0x140028e60]
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.14001d5f0
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 0x140007987
mov rcx, qword [rbp + 0x140]
mov r8d, 1
call fcn.140006200
jmp 0x140007987
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 0x1400079a5
mov r8d, 2
mov rdx, rdi
call fcn.140006200
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400079c3
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x180]
call fcn.140006200
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1400079e1
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.140006200
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x1400076e7
jmp 0x140007a8a
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 0x140007bef
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, [0x140029041]
lea rdi, [0x140029064]
test al, al
cmovne rdi, rcx
movzx eax, byte [0x140034181]
mov edx, 1
mov rcx, r15
call fcn.1400061f0
test rax, rax
je 0x140007c0a
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.0x140007b26.1
lea rcx, [0x1400290d8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rdi, r15
jmp rax
lea rbx, [0x140028dfc]
jmp 0x140007b38
lea rbx, [0x140028dee]
mov edi, 4
jmp 0x140007b67
lea rbx, [0x140028df2]
mov edi, 3
jmp 0x140007b67
lea rbx, str.x86_64ia64armaarch64i386ntdll
mov edi, 6
jmp 0x140007b67
lea rbx, [0x140028df5]
mov edi, 7
movzx eax, byte [0x140034181]
mov edx, 1
mov rcx, rdi
call fcn.1400061f0
test rax, rax
je 0x140007bfb
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, [0x140029077]
jmp 0x140007865
mov ecx, 1
mov rdx, rdi
call fcn.1400262e0
jmp 0x140007c26
mov ecx, 1
mov rdx, r15
call fcn.1400262e0
jmp 0x140007c26
mov ecx, 2
mov rdx, rdi
call fcn.1400262e0
ud2