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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rsi, rcx
movabs r15, 0x8000000000000000
lea rcx, [0x180208de0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180095503
lea rdx, [0x180208de6]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [rsp + 0xf4]
mov r8d, 0x118
xor edx, edx
call fcn.1801f1450
mov dword [rsp + 0xf0], 0x11c
lea rcx, [rsp + 0xf0]
call rdi
test eax, eax
jne 0x180095603
mov eax, dword [rsp + 0xf4]
mov qword [rsp + 0xb8], rax
mov r14d, dword [rsp + 0xf8]
mov r12d, dword [rsp + 0xfc]
movzx ebx, word [rsp + 0x208]
movzx ebp, byte [rsp + 0x20a]
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionEditionIDProductNameWindows_11
mov qword [rsp + 0xf0], rax
lea rax, [0x180208e20]
mov qword [rsp + 0xf8], rax
mov word [rsp + 0x100], 0
mov dword [rsp + 0x108], 1
lea rcx, [rsp + 0x220]
lea rdx, [rsp + 0xf0]
call fcn.180059460
mov qword [rsp + 0x88], 0
mov rdi, qword [rsp + 0x228]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rdi
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0x78], r14
jne 0x18009560e
cmp qword [rsp + 0x88], 0
je 0x18009560e
cmp dword [rsp + 0xb8], 0xa
mov qword [rsp + 0xd0], rdi
jne 0x1800956bc
cmp r12d, 0x55ef
jbe 0x1800956bc
lea rax, [0x180208e20]
mov qword [rsp + 0xf0], rax
lea rax, [0x180208e29]
mov qword [rsp + 0xf8], rax
mov word [rsp + 0x100], 0
mov dword [rsp + 0x108], 1
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0xf0]
call fcn.180059460
mov dil, 1
jmp 0x180095706
mov rax, qword [0x180280780]
mov rax, qword [rax]
test rax, rax
je 0x180095603
lea rdx, [0x180208de0]
lea rdi, [rsp + 0x90]
mov r8d, 6
mov rcx, rdi
call fcn.1801d1710
mov qword [rsp + 0xd8], rdi
lea rax, [0x180011530]
mov qword [rsp + 0xe0], rax
lea rax, [0x180209088]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 2
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 1
lea rcx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
call fcn.1801ab500
lea rcx, str.os_info::imp::winapiRegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xf0]
lea r8, [rsp + 0x40]
mov edx, 1
xor r9d, r9d
call fcn.1801ab3f0
mov rdx, qword [rsp + 0x90]
lea rax, [rdx*2]
test rax, rax
je 0x180095603
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.180057680
xor r13d, r13d
mov rdi, r15
jmp 0x180095bf0
mov rax, qword [0x180280780]
mov rax, qword [rax]
test rax, rax
je 0x1800956a1
lea rax, [0x180208f40]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 1
mov qword [rsp + 0x100], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x108], xmm0
lea rcx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
call fcn.1801ab500
lea rcx, str.os_info::imp::winapiRegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xf0]
lea r8, [rsp + 0x40]
mov edx, 1
xor r9d, r9d
call fcn.1801ab3f0
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x220]
test rdx, rdx
jne 0x180095919
jmp 0x18009592a
lea rax, [0x180208e29]
mov qword [rsp + 0xf0], rax
lea rax, [0x180208e34]
mov qword [rsp + 0xf8], rax
mov word [rsp + 0x100], 0
mov dword [rsp + 0x108], 1
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0xf0]
call fcn.180059460
xor edi, edi
mov dword [rsp + 0x84], 0
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0xe0]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x84]
mov r13, rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov word [rsp + 0x70], bx
jne 0x1800957a8
cmp dword [rsp + 0x84], 1
jne 0x1800957a8
mov r14d, dword [rsp + 0x3c]
test r14d, r14d
je 0x1800957a8
mov eax, r14d
and eax, 1
jne 0x1800957a8
mov dword [rsp + 0xc4], edi
mov byte [rsp + 0x3b], bpl
mov ebp, r14d
shr ebp, 1
lea r12, [rbp*2]
mov rbx, r15
cmp r14d, 2
jae 0x18009584d
mov edi, 2
xor r15d, r15d
jmp 0x180095869
mov rax, qword [0x180280780]
mov rax, qword [rax]
test rax, rax
je 0x18009583b
lea rax, str.RegQueryValueExW_failed
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 1
mov qword [rsp + 0x100], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x108], xmm0
lea rcx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.2_srcwindowswinapi.rs
call fcn.1801ab500
lea rcx, str.os_info::imp::winapiRegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xf0]
lea r8, [rsp + 0x40]
mov edx, 1
xor r9d, r9d
call fcn.1801ab3f0
mov rbx, r15
mov qword [rsp + 0x40], r15
mov r14, qword [rsp + 0x78]
jmp 0x1800958de
mov edx, 2
mov rcx, r12
call fcn.1800576a0
test rax, rax
je 0x180095ee4
mov rdi, rax
mov r15, rbp
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov rdx, r13
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800958ae
mov eax, dword [rsp + 0x3c]
cmp r12, rax
jne 0x1800958ae
cmp r14d, 2
jae 0x180095a60
xor r8d, r8d
jmp 0x180095a6e
mov qword [rsp + 0x40], rbx
test r15, r15
mov r12, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
je 0x1800958de
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.180057680
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x1800958fc
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.180057680
mov r15, rbx
movzx ebx, word [rsp + 0x70]
mov rdi, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x220]
test rdx, rdx
je 0x18009592a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.180057680
mov rax, qword [rsp + 0xb8]
cmp rax, 5
je 0x18009597b
cmp eax, 6
je 0x180095a19
cmp eax, 0xa
jne case.default.0x180095a2d
test r14, r14
jne case.default.0x180095a2d
cmp bpl, 1
jne 0x180095bab
cmp r12d, 0x55f0
lea rax, [0x180208f72]
lea r14, 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 r14, rax
jmp 0x180095b32
test r14, r14
je 0x180095b1a
cmp r14d, 1
je 0x180095b2b
cmp r14d, 2
jne case.default.0x180095a2d
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
jne case.default.0x180095a2d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
lea rcx, [rsp + 0xf0]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
test bx, bx
js 0x180095ebe
cmp bpl, 1
sete al
cmp word [rsp + 0xf0], 9
sete cl
and cl, al
movzx eax, cl
mov rdi, rax
shl rdi, 4
add rdi, 0x13
lea rcx, [0x180209021]
lea r14, [0x180209044]
test al, al
cmovne r14, rcx
jmp 0x180095bb7
cmp r14d, 3
ja case.default.0x180095a2d
lea rax, [0x1802090c0]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
cmp bpl, 1
mov eax, 0xd
mov edi, 0x13
cmove rdi, rax
lea rax, [0x180208feb]
lea r14, [0x180208ff8]
cmove r14, rax
jmp 0x180095bb7
mov rdi, r15
jmp 0x180095bea
lea r8, [rbp - 1]
cmp word [rdi + rbp*2 - 2], 0
cmovne r8, rbp
lea r12, [rsp + 0xf0]
mov rcx, r12
mov rdx, rdi
call fcn.1801bfbd0
mov rcx, r12
call fcn.1801b9990
mov r8, rdx
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1801b9d60
cmp qword [rsp + 0x40], rbx
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
jne 0x180095afb
mov r12, qword [rsp + 0x50]
test r12, r12
js 0x180095ef1
mov rdx, qword [rsp + 0x48]
je 0x180095d26
movzx eax, byte [0x180281288]
mov eax, 1
mov qword [rsp + 0xc8], rax
mov r14, rdx
mov edx, 1
mov rcx, r12
call fcn.180057670
mov rdx, r14
mov r14, rax
test rax, rax
jne 0x180095d2c
jmp 0x180095efb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm0
jmp 0x180095d54
lea r14, [0x180209015]
mov edi, 0xc
jmp 0x180095bb7
lea r14, [0x18020900b]
mov edi, 0xa
jmp 0x180095bb7
cmp bpl, 1
mov eax, 9
mov edi, 0x16
cmove rdi, rax
lea rax, [0x180208fcc]
lea r14, [0x180208fd5]
cmove r14, rax
jmp 0x180095bb7
cmp bpl, 1
mov eax, 9
mov edi, 0x13
cmove rdi, rax
lea rax, [0x180208fb0]
lea r14, [0x180208fb9]
cmove r14, rax
jmp 0x180095bb7
cmp bpl, 1
mov eax, 0xb
mov edi, 0x16
cmove rdi, rax
lea rax, [0x180208f8f]
lea r14, [0x180208f9a]
cmove r14, rax
jmp 0x180095bb7
lea r14, [0x180208f7c]
mov edi, 0x13
movzx eax, byte [0x180281288]
mov edx, 1
mov rcx, rdi
call fcn.180057670
test rax, rax
je 0x180095ed7
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call fcn.1801f0cd0
mov qword [rsp + 0x70], rdi
mov r13d, 1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
lea rcx, [rsp + 0xf0]
call qword [sym.imp.kernel32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0xf0]
mov r14, r15
cmp rax, 0xc
ja case.0x180095c3f.1
lea rcx, [0x1802090d0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r14, r15
jmp rax
mov rbp, r15
lea r15, [0x180208ddc]
jmp 0x180095c69
mov rbp, r15
lea r15, [0x180208dd2]
mov r14d, 3
jmp 0x180095c93
mov rbp, r15
lea r15, [0x180208dce]
mov r14d, 4
jmp 0x180095c93
mov rbp, r15
lea r15, str.x86_64ia64armaarch64i386ntdll
mov r14d, 6
jmp 0x180095c93
mov rbp, r15
lea r15, [0x180208dd5]
mov r14d, 7
movzx eax, byte [0x180281288]
mov edx, 1
mov rcx, r14
call fcn.180057670
test rax, rax
je 0x180095eca
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call fcn.1801f0cd0
mov r15, rbp
mov qword [rsi], r13
mov rax, qword [rsp + 0xb8]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x28], rbx
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], r15
mov word [rsi + 0x68], 0x2e02
mov qword [rsi + 0x50], r14
mov qword [rsi + 0x58], r12
mov qword [rsi + 0x60], r14
mov rax, rsi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
mov rcx, r14
mov r8, r12
call fcn.1801f0cd0
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r12
mov r14, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
mov r12, qword [rsp + 0xb0]
je 0x180095d7c
mov rcx, qword [rsp + 0xf8]
mov r8d, 1
call fcn.180057680
cmp byte [rsp + 0xc4], 0
je 0x180095e20
lea rax, [rsp + 0x90]
mov qword [rsp + 0x210], rax
lea rax, [0x180011530]
mov qword [rsp + 0x218], rax
lea rax, [0x180208e40]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 1
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0x210]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xf0]
call fcn.1801d2010
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x180095e3a
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.180057680
jmp 0x180095e3a
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm0
test r15, r15
je 0x180095e53
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.180057680
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x180095e71
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.180057680
mov rdx, qword [rsp + 0x220]
test rdx, rdx
mov r15, rbx
je 0x180095e97
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0xd0]
call fcn.180057680
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
movzx ebx, word [rsp + 0x70]
je 0x18009592a
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
jmp 0x180095bea
lea r14, [0x180209057]
jmp 0x180095bb2
mov ecx, 1
mov rdx, r14
call fcn.18018dc30
mov ecx, 1
mov rdx, rdi
call fcn.18018dc30
mov ecx, 2
mov rdx, r12
call fcn.18018dc30
xor eax, eax
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
mov rdx, r12
call fcn.18018dc30
int3