Function at 0x140024cf0
Capabilities:
Get common file path
Get system information on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x288]
sub rsp, 0x380
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14007c668]
xor rax, rsp
mov qword [rbp + 0x270], rax
cmp qword [0x140091f78], 0
jne 0x140024d37
call fcn.14002ffd0
xor eax, eax
mov qword [0x14008fa40], rax
mov qword [0x14008fa48], rax
mov qword [0x14008fa50], rax
mov qword [0x14008fa58], rax
mov qword [0x14008fa60], rax
mov qword [0x14008fa68], rax
lea rcx, [0x14008fa40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0xf0]
call fcn.14003fc80
mov edx, 0x40
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.14000a750
mov edi, 1
mov r9d, edi
lea r8, [0x1400770bc]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140014f40
nop
lea rcx, [rbp - 0x50]
call fcn.140009eb0
mov rdx, rax
lea r8, [rdi - 2]
lea rcx, [0x14008b014]
call fcn.1400167f0
lea r8, [rdi - 2]
lea rdx, [rbp + 0xf0]
lea rcx, [0x14008af94]
call fcn.14000be70
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x2c]
call fcn.14003fc80
mov dword [rbp - 0x30], 8
lea rdx, str.RtlGetVersion
mov rcx, qword [0x140091f78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140087b70], rax
test rax, rax
je 0x140024e53
lea rcx, [rbp - 0x30]
call rax
mov r9d, dword [rbp - 0x2c]
mov dword [0x14008f380], r9d
mov ecx, dword [rbp - 0x28]
mov dword [0x14008f384], ecx
mov edx, dword [rbp - 0x24]
mov dword [0x14008f388], edx
jmp 0x140024e66
mov r9d, dword [0x14008f380]
mov ecx, dword [0x14008f384]
mov edx, dword [0x14008f388]
cmp r9d, 6
jbe 0x140024e74
mov dword [0x14008f300], edi
jmp 0x140024e90
cmp r9d, 5
jne 0x140024e90
test ecx, ecx
je 0x140024e90
mov eax, dword [0x14008f300]
cmp edx, 1
cmova eax, edi
mov dword [0x14008f300], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea r8, str._d._d._d
mov edx, 0x80
lea rcx, [0x140089cf4]
call fcn.14000e3d0
xor esi, esi
mov qword [rbp - 0x68], rsi
mov ebx, esi
mov dword [rbp - 0x5c], 8
mov dword [rbp - 0x54], 4
mov dword [rbp - 0x60], esi
lea edx, [rsi + 0x5b]
lea rcx, [0x140089728]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024f82
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x54]
xor r8d, r8d
lea rdx, [0x140061f30]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024f70
mov ebx, edi
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008f388]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008f384]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008f380]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140089cf4]
call fcn.14000e3d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140025057
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str._ntoskrnl.exe
lea rcx, [rbp - 0x50]
call fcn.14000a910
lea rcx, [rbp - 0x50]
call fcn.14001f670
cmp eax, 1
je 0x140024ffe
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str._ntkrnlpa.exe
lea rcx, [rbp - 0x50]
call fcn.14000a910
lea rcx, [rbp - 0x50]
call fcn.14001f670
cmp eax, 1
je 0x140024ffe
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str.Kernel32.dll
lea rcx, [rbp - 0x50]
call fcn.14000a910
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14001e1c0
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008f388]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008f384]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008f380]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140089cf4]
call fcn.14000e3d0
inc dword [0x14008f43c]
cmp dword [0x14008f380], 9
jbe 0x140025091
lea rcx, [0x14008e554]
cmp dword [0x14008f388], 0x55ef
jbe 0x140025085
lea rdx, str.Windows_11
jmp 0x140025128
lea rdx, str.Windows_10
jmp 0x140025128
cmp dword [0x14008f380], 6
jne 0x14002575a
cmp dword [0x14008f384], esi
jne 0x1400250c9
lea rcx, [0x14008e554]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_Vista
je 0x1400250c4
lea rdx, str.Windows_Server_2008
call fcn.1400029b0
cmp dword [0x14008f384], 1
jne 0x1400250f5
lea rcx, [0x14008e554]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_7
je 0x1400250f0
lea rdx, str.Windows_Server_2008_R2
call fcn.1400029b0
cmp dword [0x14008f384], 2
jne 0x140025111
lea rdx, str.Windows_8
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f384], 3
jne 0x14002512d
lea rdx, str.Windows_8.1
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f380], 5
jbe 0x140025973
mov dword [rbp - 0x58], esi
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140087c10], rax
test rax, rax
je 0x140025973
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp - 0x60]
mov r8d, dword [0x14008f388]
mov edx, dword [0x14008f384]
mov ecx, dword [0x14008f380]
call rax
mov eax, dword [rbp - 0x58]
dec eax
cmp eax, 0xbe
ja case.0x1400251b5.16
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x25a3c]
mov edx, dword [rcx + rax*4 + 0x259a4]
add rdx, rcx
jmp rdx
lea rdx, str.Ultimate
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Professional
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Home_Premium
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Home_Basic
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Enterprise
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Business
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Starter
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Cluster_Server
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Datacenter
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Datacenter_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Enterprise_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Enterprise_Edition_for_Itanium_based_Systems
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Small_Business_Server
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Small_Business_Server_Premium
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Standard
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Standard_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Web_Server
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x90
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Home_Basic_N
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x91
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Home_Server_2011
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Storage_Server_2008_R2_Essentials
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.Hyper___V_Server
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x92
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x93
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
lea rdx, str.IoT_Core
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x94
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x95
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x96
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x97
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x98
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x99
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x9a
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x9b
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x9c
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x9d
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov edx, 0x9e
lea rcx, [0x14008ea28]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a910
jmp 0x140025973
mov qword [rbp - 0x70], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x170]
call fcn.14003fc80
mov dword [rbp - 0x5c], 0x100
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025973
lea edx, [rax + 0x3c]
lea rcx, [0x140089728]
call fcn.14000a850
mov rcx, rax
call fcn.140009eb0
lea rcx, [rbp - 0x5c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002574b
lea rdx, [rbp + 0x170]
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f380], 9
jbe 0x14002574b
cmp dword [0x14008f388], 0x55ef
jbe 0x14002574b
lea r9, str.Windows_11
lea r8, str.Windows_10
lea rdx, [0x14008e554]
lea rcx, [rsp + 0x70]
call fcn.1400154e0
lea rcx, [rsp + 0x70]
call fcn.140002990
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140025973
cmp dword [0x14008f380], 5
jne 0x1400258c1
cmp dword [0x14008f384], 2
jne 0x1400258c1
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14002578c
lea rdx, str.Windows_Server_2003_R2
jmp 0x1400257da
movzx eax, word [rbp + 0xe8]
mov ecx, 0x2000
test cx, ax
je 0x1400257a6
lea rdx, str.Windows_Storage_Server_2003
jmp 0x1400257da
mov ecx, 0x8000
test cx, ax
je 0x1400257b9
lea rdx, str.Windows_Home_Server
jmp 0x1400257da
cmp byte [rbp + 0xea], 1
jne 0x1400257d3
cmp word [0x14008fa40], 9
lea rdx, str.Windows_Professional
je 0x1400257da
lea rdx, str.Windows_Server_2003
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
je 0x1400258c1
mov rax, qword [0x14008fa40]
cmp ax, 6
jne 0x14002582b
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025817
lea rdx, str.Windows_Datacenter_Edition_for_Itanium_based_Systems
jmp 0x1400258b5
test al, 2
je 0x1400258c1
lea rdx, str.Windows_Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1400258b5
cmp ax, 9
jne 0x140025862
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025845
lea rdx, str.Windows_Datacenter_x64
jmp 0x1400258b5
lea rcx, [0x14008e554]
test al, 2
je 0x140025859
lea rdx, str.Windows_Enterprise_x64
jmp 0x1400258bc
lea rdx, str.Windows_Standard_x64
jmp 0x1400258bc
movzx ecx, word [rbp + 0xe8]
mov eax, 0x4000
test ax, cx
je 0x14002587c
lea rdx, str.Windows_Compute_Cluster
jmp 0x1400258b5
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025890
lea rdx, str.Windows_Datacenter
jmp 0x1400258b5
test al, 2
je 0x14002589d
lea rdx, str.Windows_Enterprise
jmp 0x1400258b5
mov eax, 0x400
test ax, cx
lea rdx, str.Windows_Web
jne 0x1400258b5
lea rdx, str.Windows_Standard
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x140025973
mov eax, dword [rbp - 0x28]
cmp eax, 1
jne 0x140025917
lea rdx, str.Windows_XP
lea rcx, [0x14008e554]
call fcn.1400029b0
mov eax, 0x200
lea rcx, [0x14008e554]
test word [rbp + 0xe8], ax
lea rdx, str.Windows_Home
jne 0x140025909
lea rdx, str.Windows_Professional
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x140025973
mov eax, dword [rbp - 0x28]
test eax, eax
jne 0x140025973
lea rdx, str.Windows_2000
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
jne 0x140025940
lea rdx, str.Windows_Professional
jmp 0x140025966
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025954
lea rdx, str.Windows_Datacenter_Server
jmp 0x140025966
test al, 2
lea rdx, str.Windows_Advanced_Server
jne 0x140025966
lea rdx, str.Windows_Server
lea rcx, [0x14008e554]
call fcn.1400029b0
nop
lea rcx, [rbp - 0x50]
call fcn.140002990
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14003e210
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret