Function at 0x180540dd0
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, [0x1806d4620]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180540f93
lea rdx, [0x1806d4626]
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.1806a7aa0
mov dword [rsp + 0xf0], 0x11c
lea rcx, [rsp + 0xf0]
call rdi
test eax, eax
jne 0x180541093
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, [0x1806d4660]
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.1804ccf00
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 0x18054109e
cmp qword [rsp + 0x88], 0
je 0x18054109e
cmp dword [rsp + 0xb8], 0xa
mov qword [rsp + 0xd0], rdi
jne 0x18054114c
cmp r12d, 0x55ef
jbe 0x18054114c
lea rax, [0x1806d4660]
mov qword [rsp + 0xf0], rax
lea rax, [0x1806d4669]
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.1804ccf00
mov dil, 1
jmp 0x180541196
mov rax, qword [0x1807af330]
mov rax, qword [rax]
test rax, rax
je 0x180541093
lea rdx, [0x1806d4620]
lea rdi, [rsp + 0x90]
mov r8d, 6
mov rcx, rdi
call fcn.180687b50
mov qword [rsp + 0xd8], rdi
lea rax, [0x18035b460]
mov qword [rsp + 0xe0], rax
lea rax, [0x1806d48c8]
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.180662ad0
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.1806629c0
mov rdx, qword [rsp + 0x90]
lea rax, [rdx*2]
test rax, rax
je 0x180541093
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.1804cafa0
xor r13d, r13d
mov rdi, r15
jmp 0x180541680
mov rax, qword [0x1807af330]
mov rax, qword [rax]
test rax, rax
je 0x180541131
lea rax, [0x1806d4780]
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.180662ad0
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.1806629c0
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x220]
test rdx, rdx
jne 0x1805413a9
jmp 0x1805413ba
lea rax, [0x1806d4669]
mov qword [rsp + 0xf0], rax
lea rax, [0x1806d4674]
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.1804ccf00
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 0x180541238
cmp dword [rsp + 0x84], 1
jne 0x180541238
mov r14d, dword [rsp + 0x3c]
test r14d, r14d
je 0x180541238
mov eax, r14d
and eax, 1
jne 0x180541238
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 0x1805412dd
mov edi, 2
xor r15d, r15d
jmp 0x1805412f9
mov rax, qword [0x1807af330]
mov rax, qword [rax]
test rax, rax
je 0x1805412cb
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.180662ad0
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.1806629c0
mov rbx, r15
mov qword [rsp + 0x40], r15
mov r14, qword [rsp + 0x78]
jmp 0x18054136e
mov edx, 2
mov rcx, r12
call fcn.1804cafc0
test rax, rax
je 0x180541974
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 0x18054133e
mov eax, dword [rsp + 0x3c]
cmp r12, rax
jne 0x18054133e
cmp r14d, 2
jae 0x1805414f0
xor r8d, r8d
jmp 0x1805414fe
mov qword [rsp + 0x40], rbx
test r15, r15
mov r12, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
je 0x18054136e
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.1804cafa0
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x18054138c
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.1804cafa0
mov r15, rbx
movzx ebx, word [rsp + 0x70]
mov rdi, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x220]
test rdx, rdx
je 0x1805413ba
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.1804cafa0
mov rax, qword [rsp + 0xb8]
cmp rax, 5
je 0x18054140b
cmp eax, 6
je 0x1805414a9
cmp eax, 0xa
jne case.default.0x1805414bd
test r14, r14
jne case.default.0x1805414bd
cmp bpl, 1
jne 0x18054163b
cmp r12d, 0x55f0
lea rax, [0x1806d47b2]
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 0x1805415c2
test r14, r14
je 0x1805415aa
cmp r14d, 1
je 0x1805415bb
cmp r14d, 2
jne case.default.0x1805414bd
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
jne case.default.0x1805414bd
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 0x18054194e
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, [0x1806d4861]
lea r14, [0x1806d4884]
test al, al
cmovne r14, rcx
jmp 0x180541647
cmp r14d, 3
ja case.default.0x1805414bd
lea rax, [0x1806d4900]
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, [0x1806d482b]
lea r14, [0x1806d4838]
cmove r14, rax
jmp 0x180541647
mov rdi, r15
jmp 0x18054167a
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.180675dd0
mov rcx, r12
call fcn.1804cda80
mov r8, rdx
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.180671650
cmp qword [rsp + 0x40], rbx
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
jne 0x18054158b
mov r12, qword [rsp + 0x50]
test r12, r12
js 0x180541981
mov rdx, qword [rsp + 0x48]
je 0x1805417b6
movzx eax, byte [0x1807afe04]
mov eax, 1
mov qword [rsp + 0xc8], rax
mov r14, rdx
mov edx, 1
mov rcx, r12
call fcn.1804caf90
mov rdx, r14
mov r14, rax
test rax, rax
jne 0x1805417bc
jmp 0x18054198b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm0
jmp 0x1805417e4
lea r14, [0x1806d4855]
mov edi, 0xc
jmp 0x180541647
lea r14, [0x1806d484b]
mov edi, 0xa
jmp 0x180541647
cmp bpl, 1
mov eax, 9
mov edi, 0x16
cmove rdi, rax
lea rax, [0x1806d480c]
lea r14, [0x1806d4815]
cmove r14, rax
jmp 0x180541647
cmp bpl, 1
mov eax, 9
mov edi, 0x13
cmove rdi, rax
lea rax, [0x1806d47f0]
lea r14, [0x1806d47f9]
cmove r14, rax
jmp 0x180541647
cmp bpl, 1
mov eax, 0xb
mov edi, 0x16
cmove rdi, rax
lea rax, [0x1806d47cf]
lea r14, [0x1806d47da]
cmove r14, rax
jmp 0x180541647
lea r14, [0x1806d47bc]
mov edi, 0x13
movzx eax, byte [0x1807afe04]
mov edx, 1
mov rcx, rdi
call fcn.1804caf90
test rax, rax
je 0x180541967
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call fcn.1806a7400
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.0x1805416cf.1
lea rcx, [0x1806d4910]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r14, r15
jmp rax
mov rbp, r15
lea r15, [0x1806d461c]
jmp 0x1805416f9
mov rbp, r15
lea r15, [0x1806d4612]
mov r14d, 3
jmp 0x180541723
mov rbp, r15
lea r15, [0x1806d460e]
mov r14d, 4
jmp 0x180541723
mov rbp, r15
lea r15, str.x86_64ia64armaarch64i386ntdll
mov r14d, 6
jmp 0x180541723
mov rbp, r15
lea r15, [0x1806d4615]
mov r14d, 7
movzx eax, byte [0x1807afe04]
mov edx, 1
mov rcx, r14
call fcn.1804caf90
test rax, rax
je 0x18054195a
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call fcn.1806a7400
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.1806a7400
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 0x18054180c
mov rcx, qword [rsp + 0xf8]
mov r8d, 1
call fcn.1804cafa0
cmp byte [rsp + 0xc4], 0
je 0x1805418b0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x210], rax
lea rax, [0x18035b460]
mov qword [rsp + 0x218], rax
lea rax, [0x1806d4680]
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.180686890
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x1805418ca
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.1804cafa0
jmp 0x1805418ca
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm0
test r15, r15
je 0x1805418e3
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.1804cafa0
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x180541901
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.1804cafa0
mov rdx, qword [rsp + 0x220]
test rdx, rdx
mov r15, rbx
je 0x180541927
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0xd0]
call fcn.1804cafa0
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
movzx ebx, word [rsp + 0x70]
je 0x1805413ba
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
jmp 0x18054167a
lea r14, [0x1806d4897]
jmp 0x180541642
mov ecx, 1
mov rdx, r14
call fcn.18063bc30
mov ecx, 1
mov rdx, rdi
call fcn.18063bc30
mov ecx, 2
mov rdx, r12
call fcn.18063bc30
xor eax, eax
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
mov rdx, r12
call fcn.18063bc30
int3