Function at 0x140024b60
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 [0x140091fe8], 0
jne 0x140024ba7
call fcn.14002fe30
xor eax, eax
mov qword [0x14008fa30], rax
mov qword [0x14008fa38], rax
mov qword [0x14008fa40], rax
mov qword [0x14008fa48], rax
mov qword [0x14008fa50], rax
mov qword [0x14008fa58], rax
lea rcx, [0x14008fa30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0xf0]
call fcn.14003fab0
mov edx, 0x40
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.14000a680
mov edi, 1
mov r9d, edi
lea r8, [0x1400770bc]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140014e40
nop
lea rcx, [rbp - 0x50]
call fcn.140009de0
mov rdx, rax
lea r8, [rdi - 2]
lea rcx, [0x14008b014]
call fcn.1400166f0
lea r8, [rdi - 2]
lea rdx, [rbp + 0xf0]
lea rcx, [0x14008af94]
call fcn.14000bda0
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x2c]
call fcn.14003fab0
mov dword [rbp - 0x30], 8
lea rdx, str.RtlGetVersion
mov rcx, qword [0x140091fe8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140087b70], rax
test rax, rax
je 0x140024cc3
lea rcx, [rbp - 0x30]
call rax
mov r9d, dword [rbp - 0x2c]
mov dword [0x14008f36c], r9d
mov ecx, dword [rbp - 0x28]
mov dword [0x14008f370], ecx
mov edx, dword [rbp - 0x24]
mov dword [0x14008f374], edx
jmp 0x140024cd6
mov r9d, dword [0x14008f36c]
mov ecx, dword [0x14008f370]
mov edx, dword [0x14008f374]
cmp r9d, 6
jbe 0x140024ce4
mov dword [0x14008f2f0], edi
jmp 0x140024d00
cmp r9d, 5
jne 0x140024d00
test ecx, ecx
je 0x140024d00
mov eax, dword [0x14008f2f0]
cmp edx, 1
cmova eax, edi
mov dword [0x14008f2f0], 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.14000e2d0
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, [0x140089720]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
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 0x140024df2
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, [0x140061f20]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024de0
mov ebx, edi
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008f374]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008f370]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008f36c]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140089cf4]
call fcn.14000e2d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140024ec7
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str._ntoskrnl.exe
lea rcx, [rbp - 0x50]
call fcn.14000a840
lea rcx, [rbp - 0x50]
call fcn.14001f4f0
cmp eax, 1
je 0x140024e6e
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str._ntkrnlpa.exe
lea rcx, [rbp - 0x50]
call fcn.14000a840
lea rcx, [rbp - 0x50]
call fcn.14001f4f0
cmp eax, 1
je 0x140024e6e
lea rdx, [0x14008af94]
lea rcx, [rbp - 0x50]
call fcn.1400029b0
lea rdx, str.Kernel32.dll
lea rcx, [rbp - 0x50]
call fcn.14000a840
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.14001e040
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008f374]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008f370]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008f36c]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140089cf4]
call fcn.14000e2d0
inc dword [0x14008f3fc]
cmp dword [0x14008f36c], 9
jbe 0x140024f01
lea rcx, [0x14008e554]
cmp dword [0x14008f374], 0x55ef
jbe 0x140024ef5
lea rdx, str.Windows_11
jmp 0x140024f98
lea rdx, str.Windows_10
jmp 0x140024f98
cmp dword [0x14008f36c], 6
jne 0x1400255ca
cmp dword [0x14008f370], esi
jne 0x140024f39
lea rcx, [0x14008e554]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_Vista
je 0x140024f34
lea rdx, str.Windows_Server_2008
call fcn.1400029b0
cmp dword [0x14008f370], 1
jne 0x140024f65
lea rcx, [0x14008e554]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_7
je 0x140024f60
lea rdx, str.Windows_Server_2008_R2
call fcn.1400029b0
cmp dword [0x14008f370], 2
jne 0x140024f81
lea rdx, str.Windows_8
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f370], 3
jne 0x140024f9d
lea rdx, str.Windows_8.1
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f36c], 5
jbe 0x1400257e3
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 [0x140087c08], rax
test rax, rax
je 0x1400257e3
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp - 0x60]
mov r8d, dword [0x14008f374]
mov edx, dword [0x14008f370]
mov ecx, dword [0x14008f36c]
call rax
mov eax, dword [rbp - 0x58]
dec eax
cmp eax, 0xbe
ja case.0x140025025.16
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x258ac]
mov edx, dword [rcx + rax*4 + 0x25814]
add rdx, rcx
jmp rdx
lea rdx, str.Ultimate
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Professional
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Home_Premium
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Home_Basic
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Enterprise
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Business
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Starter
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Cluster_Server
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Datacenter
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Datacenter_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Enterprise_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Enterprise_Edition_for_Itanium_based_Systems
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Small_Business_Server
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Small_Business_Server_Premium
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Standard
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Standard_Edition__core_installation_
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Web_Server
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x90
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Home_Basic_N
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x91
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Home_Server_2011
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Storage_Server_2008_R2_Essentials
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.Hyper___V_Server
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x92
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x93
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
lea rdx, str.IoT_Core
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x94
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x95
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x96
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x97
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x98
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x99
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x9a
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x9b
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x9c
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x9d
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov edx, 0x9e
lea rcx, [0x14008ea20]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008e554]
call fcn.14000a840
jmp 0x1400257e3
mov qword [rbp - 0x70], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x170]
call fcn.14003fab0
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 0x1400257e3
lea edx, [rax + 0x3c]
lea rcx, [0x140089720]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
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 0x1400255bb
lea rdx, [rbp + 0x170]
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [0x14008f36c], 9
jbe 0x1400255bb
cmp dword [0x14008f374], 0x55ef
jbe 0x1400255bb
lea r9, str.Windows_11
lea r8, str.Windows_10
lea rdx, [0x14008e554]
lea rcx, [rsp + 0x70]
call fcn.1400153e0
lea rcx, [rsp + 0x70]
call fcn.140002990
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400257e3
cmp dword [0x14008f36c], 5
jne 0x140025731
cmp dword [0x14008f370], 2
jne 0x140025731
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400255fc
lea rdx, str.Windows_Server_2003_R2
jmp 0x14002564a
movzx eax, word [rbp + 0xe8]
mov ecx, 0x2000
test cx, ax
je 0x140025616
lea rdx, str.Windows_Storage_Server_2003
jmp 0x14002564a
mov ecx, 0x8000
test cx, ax
je 0x140025629
lea rdx, str.Windows_Home_Server
jmp 0x14002564a
cmp byte [rbp + 0xea], 1
jne 0x140025643
cmp word [0x14008fa30], 9
lea rdx, str.Windows_Professional
je 0x14002564a
lea rdx, str.Windows_Server_2003
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
je 0x140025731
mov rax, qword [0x14008fa30]
cmp ax, 6
jne 0x14002569b
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025687
lea rdx, str.Windows_Datacenter_Edition_for_Itanium_based_Systems
jmp 0x140025725
test al, 2
je 0x140025731
lea rdx, str.Windows_Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140025725
cmp ax, 9
jne 0x1400256d2
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x1400256b5
lea rdx, str.Windows_Datacenter_x64
jmp 0x140025725
lea rcx, [0x14008e554]
test al, 2
je 0x1400256c9
lea rdx, str.Windows_Enterprise_x64
jmp 0x14002572c
lea rdx, str.Windows_Standard_x64
jmp 0x14002572c
movzx ecx, word [rbp + 0xe8]
mov eax, 0x4000
test ax, cx
je 0x1400256ec
lea rdx, str.Windows_Compute_Cluster
jmp 0x140025725
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025700
lea rdx, str.Windows_Datacenter
jmp 0x140025725
test al, 2
je 0x14002570d
lea rdx, str.Windows_Enterprise
jmp 0x140025725
mov eax, 0x400
test ax, cx
lea rdx, str.Windows_Web
jne 0x140025725
lea rdx, str.Windows_Standard
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x1400257e3
mov eax, dword [rbp - 0x28]
cmp eax, 1
jne 0x140025787
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 0x140025779
lea rdx, str.Windows_Professional
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x1400257e3
mov eax, dword [rbp - 0x28]
test eax, eax
jne 0x1400257e3
lea rdx, str.Windows_2000
lea rcx, [0x14008e554]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
jne 0x1400257b0
lea rdx, str.Windows_Professional
jmp 0x1400257d6
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x1400257c4
lea rdx, str.Windows_Datacenter_Server
jmp 0x1400257d6
test al, 2
lea rdx, str.Windows_Advanced_Server
jne 0x1400257d6
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.14003e040
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