Function at 0x18030d080
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, [0x18048e4d0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x18030d243
lea rdx, [0x18048e4d6]
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.1804691b0
mov dword [rsp + 0xf0], 0x11c
lea rcx, [rsp + 0xf0]
call rdi
test eax, eax
jne 0x18030d343
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, [0x18048e510]
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.1802cdd20
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 0x18030d34e
cmp qword [rsp + 0x88], 0
je 0x18030d34e
cmp dword [rsp + 0xb8], 0xa
mov qword [rsp + 0xd0], rdi
jne 0x18030d3fc
cmp r12d, 0x55ef
jbe 0x18030d3fc
lea rax, [0x18048e510]
mov qword [rsp + 0xf0], rax
lea rax, [0x18048e519]
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.1802cdd20
mov dil, 1
jmp 0x18030d446
mov rax, qword [0x180528ce8]
mov rax, qword [rax]
test rax, rax
je 0x18030d343
lea rdx, [0x18048e4d0]
lea rdi, [rsp + 0x90]
mov r8d, 6
mov rcx, rdi
call fcn.180449760
mov qword [rsp + 0xd8], rdi
lea rax, [0x180206750]
mov qword [rsp + 0xe0], rax
lea rax, [0x18048e778]
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.180424ea0
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.180424d90
mov rdx, qword [rsp + 0x90]
lea rax, [rdx*2]
test rax, rax
je 0x18030d343
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.1802cbf20
xor r13d, r13d
mov rdi, r15
jmp 0x18030d930
mov rax, qword [0x180528ce8]
mov rax, qword [rax]
test rax, rax
je 0x18030d3e1
lea rax, [0x18048e630]
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.180424ea0
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.180424d90
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x220]
test rdx, rdx
jne 0x18030d659
jmp 0x18030d66a
lea rax, [0x18048e519]
mov qword [rsp + 0xf0], rax
lea rax, [0x18048e524]
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.1802cdd20
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 0x18030d4e8
cmp dword [rsp + 0x84], 1
jne 0x18030d4e8
mov r14d, dword [rsp + 0x3c]
test r14d, r14d
je 0x18030d4e8
mov eax, r14d
and eax, 1
jne 0x18030d4e8
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 0x18030d58d
mov edi, 2
xor r15d, r15d
jmp 0x18030d5a9
mov rax, qword [0x180528ce8]
mov rax, qword [rax]
test rax, rax
je 0x18030d57b
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.180424ea0
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.180424d90
mov rbx, r15
mov qword [rsp + 0x40], r15
mov r14, qword [rsp + 0x78]
jmp 0x18030d61e
mov edx, 2
mov rcx, r12
call fcn.1802cbf40
test rax, rax
je 0x18030dc24
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 0x18030d5ee
mov eax, dword [rsp + 0x3c]
cmp r12, rax
jne 0x18030d5ee
cmp r14d, 2
jae 0x18030d7a0
xor r8d, r8d
jmp 0x18030d7ae
mov qword [rsp + 0x40], rbx
test r15, r15
mov r12, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
je 0x18030d61e
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.1802cbf20
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x18030d63c
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.1802cbf20
mov r15, rbx
movzx ebx, word [rsp + 0x70]
mov rdi, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x220]
test rdx, rdx
je 0x18030d66a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.1802cbf20
mov rax, qword [rsp + 0xb8]
cmp rax, 5
je 0x18030d6bb
cmp eax, 6
je 0x18030d759
cmp eax, 0xa
jne case.default.0x18030d76d
test r14, r14
jne case.default.0x18030d76d
cmp bpl, 1
jne 0x18030d8eb
cmp r12d, 0x55f0
lea rax, [0x18048e662]
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 0x18030d872
test r14, r14
je 0x18030d85a
cmp r14d, 1
je 0x18030d86b
cmp r14d, 2
jne case.default.0x18030d76d
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
jne case.default.0x18030d76d
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 0x18030dbfe
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, [0x18048e711]
lea r14, [0x18048e734]
test al, al
cmovne r14, rcx
jmp 0x18030d8f7
cmp r14d, 3
ja case.default.0x18030d76d
lea rax, [0x18048e7b0]
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, [0x18048e6db]
lea r14, [0x18048e6e8]
cmove r14, rax
jmp 0x18030d8f7
mov rdi, r15
jmp 0x18030d92a
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.1804378a0
mov rcx, r12
call fcn.180432df0
mov r8, rdx
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1804331c0
cmp qword [rsp + 0x40], rbx
mov r14, qword [rsp + 0x78]
movzx ebp, byte [rsp + 0x3b]
jne 0x18030d83b
mov r12, qword [rsp + 0x50]
test r12, r12
js 0x18030dc31
mov rdx, qword [rsp + 0x48]
je 0x18030da66
movzx eax, byte [0x1805297c8]
mov eax, 1
mov qword [rsp + 0xc8], rax
mov r14, rdx
mov edx, 1
mov rcx, r12
call fcn.1802cbf10
mov rdx, r14
mov r14, rax
test rax, rax
jne 0x18030da6c
jmp 0x18030dc3b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm0
jmp 0x18030da94
lea r14, [0x18048e705]
mov edi, 0xc
jmp 0x18030d8f7
lea r14, [0x18048e6fb]
mov edi, 0xa
jmp 0x18030d8f7
cmp bpl, 1
mov eax, 9
mov edi, 0x16
cmove rdi, rax
lea rax, [0x18048e6bc]
lea r14, [0x18048e6c5]
cmove r14, rax
jmp 0x18030d8f7
cmp bpl, 1
mov eax, 9
mov edi, 0x13
cmove rdi, rax
lea rax, [0x18048e6a0]
lea r14, [0x18048e6a9]
cmove r14, rax
jmp 0x18030d8f7
cmp bpl, 1
mov eax, 0xb
mov edi, 0x16
cmove rdi, rax
lea rax, [0x18048e67f]
lea r14, [0x18048e68a]
cmove r14, rax
jmp 0x18030d8f7
lea r14, [0x18048e66c]
mov edi, 0x13
movzx eax, byte [0x1805297c8]
mov edx, 1
mov rcx, rdi
call fcn.1802cbf10
test rax, rax
je 0x18030dc17
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call fcn.180468b10
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.0x18030d97f.1
lea rcx, [0x18048e7c0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r14, r15
jmp rax
mov rbp, r15
lea r15, [0x18048e4cc]
jmp 0x18030d9a9
mov rbp, r15
lea r15, [0x18048e4c2]
mov r14d, 3
jmp 0x18030d9d3
mov rbp, r15
lea r15, [0x18048e4be]
mov r14d, 4
jmp 0x18030d9d3
mov rbp, r15
lea r15, str.x86_64ia64armaarch64i386ntdll
mov r14d, 6
jmp 0x18030d9d3
mov rbp, r15
lea r15, [0x18048e4c5]
mov r14d, 7
movzx eax, byte [0x1805297c8]
mov edx, 1
mov rcx, r14
call fcn.1802cbf10
test rax, rax
je 0x18030dc0a
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call fcn.180468b10
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.180468b10
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 0x18030dabc
mov rcx, qword [rsp + 0xf8]
mov r8d, 1
call fcn.1802cbf20
cmp byte [rsp + 0xc4], 0
je 0x18030db60
lea rax, [rsp + 0x90]
mov qword [rsp + 0x210], rax
lea rax, [0x180206750]
mov qword [rsp + 0x218], rax
lea rax, [0x18048e530]
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.1804484a0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x18030db7a
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.1802cbf20
jmp 0x18030db7a
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm0
test r15, r15
je 0x18030db93
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.1802cbf20
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x18030dbb1
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.1802cbf20
mov rdx, qword [rsp + 0x220]
test rdx, rdx
mov r15, rbx
je 0x18030dbd7
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0xd0]
call fcn.1802cbf20
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
movzx ebx, word [rsp + 0x70]
je 0x18030d66a
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
jmp 0x18030d92a
lea r14, [0x18048e747]
jmp 0x18030d8f2
mov ecx, 1
mov rdx, r14
call fcn.180407090
mov ecx, 1
mov rdx, rdi
call fcn.180407090
mov ecx, 2
mov rdx, r12
call fcn.180407090
xor eax, eax
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
mov rdx, r12
call fcn.180407090
int3