Function at 0x1400248d0
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 [0x14007b658]
xor rax, rsp
mov qword [rbp + 0x270], rax
cmp qword [0x14008eb58], 0
jne 0x140024917
call fcn.14002fa70
xor eax, eax
mov qword [0x14008ea20], rax
mov qword [0x14008ea28], rax
mov qword [0x14008ea30], rax
mov qword [0x14008ea38], rax
mov qword [0x14008ea40], rax
mov qword [0x14008ea48], rax
lea rcx, [0x14008ea20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0xf0]
call fcn.14003f490
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, [0x1400760ac]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140014bb0
nop
lea rcx, [rbp - 0x50]
call fcn.140009de0
mov rdx, rax
lea r8, [rdi - 2]
lea rcx, [0x14008a004]
call fcn.140016460
lea r8, [rdi - 2]
lea rdx, [rbp + 0xf0]
lea rcx, [0x140089f84]
call fcn.14000bda0
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x2c]
call fcn.14003f490
mov dword [rbp - 0x30], 8
lea rdx, str.RtlGetVersion
mov rcx, qword [0x14008eb58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140086b60], rax
test rax, rax
je 0x140024a33
lea rcx, [rbp - 0x30]
call rax
mov r9d, dword [rbp - 0x2c]
mov dword [0x14008e35c], r9d
mov ecx, dword [rbp - 0x28]
mov dword [0x14008e360], ecx
mov edx, dword [rbp - 0x24]
mov dword [0x14008e364], edx
jmp 0x140024a46
mov r9d, dword [0x14008e35c]
mov ecx, dword [0x14008e360]
mov edx, dword [0x14008e364]
cmp r9d, 6
jbe 0x140024a54
mov dword [0x14008e2e0], edi
jmp 0x140024a70
cmp r9d, 5
jne 0x140024a70
test ecx, ecx
je 0x140024a70
mov eax, dword [0x14008e2e0]
cmp edx, 1
cmova eax, edi
mov dword [0x14008e2e0], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea r8, str._d._d._d
mov edx, 0x80
lea rcx, [0x140088ce4]
call fcn.14000e0c0
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, [0x140088710]
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 0x140024b62
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, [0x140061f00]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024b50
mov ebx, edi
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008e364]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008e360]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008e35c]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140088ce4]
call fcn.14000e0c0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140024c37
lea rdx, [0x140089f84]
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.14001f260
cmp eax, 1
je 0x140024bde
lea rdx, [0x140089f84]
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.14001f260
cmp eax, 1
je 0x140024bde
lea rdx, [0x140089f84]
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.14001ddb0
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [0x14008e364]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14008e360]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14008e35c]
lea r8, str._d._d._d._d
mov edx, 0x80
lea rcx, [0x140088ce4]
call fcn.14000e0c0
inc dword [0x14008e3ec]
cmp dword [0x14008e35c], 9
jbe 0x140024c71
lea rcx, [0x14008d544]
cmp dword [0x14008e364], 0x55ef
jbe 0x140024c65
lea rdx, str.Windows_11
jmp 0x140024d08
lea rdx, str.Windows_10
jmp 0x140024d08
cmp dword [0x14008e35c], 6
jne 0x14002533a
cmp dword [0x14008e360], esi
jne 0x140024ca9
lea rcx, [0x14008d544]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_Vista
je 0x140024ca4
lea rdx, str.Windows_Server_2008
call fcn.1400029b0
cmp dword [0x14008e360], 1
jne 0x140024cd5
lea rcx, [0x14008d544]
cmp byte [rbp + 0xea], 1
lea rdx, str.Windows_7
je 0x140024cd0
lea rdx, str.Windows_Server_2008_R2
call fcn.1400029b0
cmp dword [0x14008e360], 2
jne 0x140024cf1
lea rdx, str.Windows_8
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp dword [0x14008e360], 3
jne 0x140024d0d
lea rdx, str.Windows_8.1
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp dword [0x14008e35c], 5
jbe 0x140025553
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 [0x140086bf8], rax
test rax, rax
je 0x140025553
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp - 0x60]
mov r8d, dword [0x14008e364]
mov edx, dword [0x14008e360]
mov ecx, dword [0x14008e35c]
call rax
mov eax, dword [rbp - 0x58]
dec eax
cmp eax, 0xbe
ja case.0x140024d95.16
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x2561c]
mov edx, dword [rcx + rax*4 + 0x25584]
add rdx, rcx
jmp rdx
lea rdx, str.Ultimate
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Professional
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Home_Premium
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Home_Basic
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Enterprise
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Business
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Starter
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Cluster_Server
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Datacenter
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Datacenter_Edition__core_installation_
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Enterprise_Edition__core_installation_
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Enterprise_Edition_for_Itanium_based_Systems
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Small_Business_Server
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Small_Business_Server_Premium
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Standard
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Standard_Edition__core_installation_
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Web_Server
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x90
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Home_Basic_N
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x91
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Home_Server_2011
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Storage_Server_2008_R2_Essentials
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.Hyper___V_Server
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x92
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x93
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
lea rdx, str.IoT_Core
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x94
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x95
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x96
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x97
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x98
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x99
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x9a
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x9b
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x9c
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x9d
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov edx, 0x9e
lea rcx, [0x14008da10]
call fcn.14000a780
mov rcx, rax
call fcn.140009de0
mov rdx, rax
lea rcx, [0x14008d544]
call fcn.14000a840
jmp 0x140025553
mov qword [rbp - 0x70], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x170]
call fcn.14003f490
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 0x140025553
lea edx, [rax + 0x3c]
lea rcx, [0x140088710]
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 0x14002532b
lea rdx, [rbp + 0x170]
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp dword [0x14008e35c], 9
jbe 0x14002532b
cmp dword [0x14008e364], 0x55ef
jbe 0x14002532b
lea r9, str.Windows_11
lea r8, str.Windows_10
lea rdx, [0x14008d544]
lea rcx, [rsp + 0x70]
call fcn.140015150
lea rcx, [rsp + 0x70]
call fcn.140002990
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140025553
cmp dword [0x14008e35c], 5
jne 0x1400254a1
cmp dword [0x14008e360], 2
jne 0x1400254a1
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14002536c
lea rdx, str.Windows_Server_2003_R2
jmp 0x1400253ba
movzx eax, word [rbp + 0xe8]
mov ecx, 0x2000
test cx, ax
je 0x140025386
lea rdx, str.Windows_Storage_Server_2003
jmp 0x1400253ba
mov ecx, 0x8000
test cx, ax
je 0x140025399
lea rdx, str.Windows_Home_Server
jmp 0x1400253ba
cmp byte [rbp + 0xea], 1
jne 0x1400253b3
cmp word [0x14008ea20], 9
lea rdx, str.Windows_Professional
je 0x1400253ba
lea rdx, str.Windows_Server_2003
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
je 0x1400254a1
mov rax, qword [0x14008ea20]
cmp ax, 6
jne 0x14002540b
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x1400253f7
lea rdx, str.Windows_Datacenter_Edition_for_Itanium_based_Systems
jmp 0x140025495
test al, 2
je 0x1400254a1
lea rdx, str.Windows_Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140025495
cmp ax, 9
jne 0x140025442
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025425
lea rdx, str.Windows_Datacenter_x64
jmp 0x140025495
lea rcx, [0x14008d544]
test al, 2
je 0x140025439
lea rdx, str.Windows_Enterprise_x64
jmp 0x14002549c
lea rdx, str.Windows_Standard_x64
jmp 0x14002549c
movzx ecx, word [rbp + 0xe8]
mov eax, 0x4000
test ax, cx
je 0x14002545c
lea rdx, str.Windows_Compute_Cluster
jmp 0x140025495
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025470
lea rdx, str.Windows_Datacenter
jmp 0x140025495
test al, 2
je 0x14002547d
lea rdx, str.Windows_Enterprise
jmp 0x140025495
mov eax, 0x400
test ax, cx
lea rdx, str.Windows_Web
jne 0x140025495
lea rdx, str.Windows_Standard
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x140025553
mov eax, dword [rbp - 0x28]
cmp eax, 1
jne 0x1400254f7
lea rdx, str.Windows_XP
lea rcx, [0x14008d544]
call fcn.1400029b0
mov eax, 0x200
lea rcx, [0x14008d544]
test word [rbp + 0xe8], ax
lea rdx, str.Windows_Home
jne 0x1400254e9
lea rdx, str.Windows_Professional
call fcn.1400029b0
cmp dword [rbp - 0x2c], 5
jne 0x140025553
mov eax, dword [rbp - 0x28]
test eax, eax
jne 0x140025553
lea rdx, str.Windows_2000
lea rcx, [0x14008d544]
call fcn.1400029b0
cmp byte [rbp + 0xea], 1
jne 0x140025520
lea rdx, str.Windows_Professional
jmp 0x140025546
movzx eax, byte [rbp + 0xe8]
test al, al
jns 0x140025534
lea rdx, str.Windows_Datacenter_Server
jmp 0x140025546
test al, 2
lea rdx, str.Windows_Advanced_Server
jne 0x140025546
lea rdx, str.Windows_Server
lea rcx, [0x14008d544]
call fcn.1400029b0
nop
lea rcx, [rbp - 0x50]
call fcn.140002990
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14003da20
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