Function at 0x1401b9960
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2760]
mov eax, 0x2860
call fcn.1401db830
sub rsp, rax
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x2710
call sub.VCRUNTIME140.dll_memset
xorps xmm1, xmm1
mov dword [rsp + 0x30], 0x9c
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x3c], rax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x34], xmm1
movups xmmword [rsp + 0x44], xmm1
movups xmmword [rsp + 0x54], xmm1
movups xmmword [rsp + 0x64], xmm1
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rbp - 0x7c], xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1401b9a1e
xor r14d, r14d
mov qword [rdi + 0x18], shutdown
mov qword [rdi], r14
lea rax, [rbp + 0x50]
mov qword [rdi + 0x10], r14
mov rbx, 0xffffffffffffffff
mov byte [rdi], r14b
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1401b9a10
jmp 0x1401b9fe0
lea rcx, [0x140280fd0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x30]
test rax, rax
je 0x1401b9a48
call rax
jmp 0x1401b9a4e
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 2
jne 0x1401b9fab
cmp dword [rsp + 0x34], 4
jbe 0x1401b9fab
lea r8, str.Microsoft
mov qword [rsp + 0x2880], rsi
lea rax, [rbp + 0x50]
mov edx, 0x2710
sub r8, rax
lea rcx, [rbp + 0x50]
lea rax, [rdx + 0x7fffd8ee]
test rax, rax
je 0x1401b9aa3
movzx eax, byte [rcx + r8]
test al, al
je 0x1401b9aa3
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1401b9a83
test rdx, rdx
lea rax, [rcx - 1]
lea rbx, str.Professional
cmovne rax, rcx
cmp dword [rsp + 0x34], 6
mov byte [rax], 0
jne case.0x1401b9b78.5
cmp dword [rsp + 0x38], 0
jne 0x1401b9aec
cmp byte [rbp - 0x36], 1
lea rcx, [rbp + 0x50]
mov edx, 0x2710
lea r8, str.Windows_Vista
je 0x1401b9ae7
lea r8, str.Windows_Server_2008
call fcn.1401b93a0
cmp dword [rsp + 0x38], 1
jne 0x1401b9b15
cmp byte [rbp - 0x36], 1
lea rcx, [rbp + 0x50]
mov edx, 0x2710
lea r8, str.Windows_7
je 0x1401b9b10
lea r8, str.Windows_Server_2008_R2
call fcn.1401b93a0
lea rcx, [0x140280fd0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x38]
lea rcx, [rbp + 0x2788]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x34]
xor r8d, r8d
call rax
mov eax, dword [rbp + 0x2788]
dec eax
cmp eax, 0x2f
ja case.0x1401b9b78.5
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x1ba050]
mov ecx, dword [rdx + rax*4 + 0x1ba008]
add rcx, rdx
jmp rcx
lea r8, str.Ultimate_Edition
jmp 0x1401b9c16
mov r8, rbx
jmp 0x1401b9c16
lea r8, str.Home_Premium_Edition
jmp 0x1401b9c16
lea r8, str.Home_Basic_Edition
jmp 0x1401b9c16
lea r8, str.Business_Edition
jmp 0x1401b9c16
lea r8, str.Starter_Edition
jmp 0x1401b9c16
lea r8, str.Cluster_Server_Edition
jmp 0x1401b9c16
lea r8, str.Datacenter_Edition
jmp 0x1401b9c16
lea r8, str.Datacenter_Edition__core_installation_
jmp 0x1401b9c16
lea r8, str.Enterprise_Edition
jmp 0x1401b9c16
lea r8, str.Enterprise_Edition__core_installation_
jmp 0x1401b9c16
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1401b9c16
lea r8, str.Small_Business_Server
jmp 0x1401b9c16
lea r8, str.Small_Business_Server_Premium_Edition
jmp 0x1401b9c16
lea r8, str.Standard_Edition
jmp 0x1401b9c16
lea r8, str.Standard_Edition__core_installation_
jmp 0x1401b9c16
lea r8, str.Web_Server_Edition
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
cmp dword [rsp + 0x34], 5
jne 0x1401b9e05
mov eax, dword [rsp + 0x38]
cmp eax, 2
jne 0x1401b9d69
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1401b9c52
lea r8, str.Windows_Server_2003_R2_
jmp 0x1401b9c91
movzx eax, word [rbp - 0x38]
bt ax, 0xd
jae 0x1401b9c66
lea r8, str.Windows_Storage_Server_2003
jmp 0x1401b9c91
bt ax, 0xf
jae 0x1401b9c76
lea r8, str.Windows_Home_Server
jmp 0x1401b9c91
cmp byte [rbp - 0x36], 1
jne 0x1401b9c8a
cmp word [rbp - 0x30], 9
lea r8, str.Windows_XP_Professional_x64_Edition
je 0x1401b9c91
lea r8, str.Windows_Server_2003_
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
cmp byte [rbp - 0x36], 1
je 0x1401b9d5a
movzx eax, word [rbp - 0x30]
cmp ax, 6
jne 0x1401b9cd8
movzx eax, byte [rbp - 0x38]
test al, al
jns 0x1401b9cc7
lea r8, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x1401b9d4c
test al, 2
je 0x1401b9d5a
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1401b9d4c
cmp ax, 9
jne 0x1401b9d05
movzx eax, byte [rbp - 0x38]
test al, al
jns 0x1401b9cef
lea r8, str.Datacenter_x64_Edition
jmp 0x1401b9d4c
test al, 2
lea r8, str.Enterprise_x64_Edition
lea rax, str.Standard_x64_Edition
cmove r8, rax
jmp 0x1401b9d4c
movzx ecx, word [rbp - 0x38]
bt cx, 0xe
jae 0x1401b9d19
lea r8, str.Compute_Cluster_Edition
jmp 0x1401b9d4c
movzx eax, byte [rbp - 0x38]
test al, al
jns 0x1401b9d2a
lea r8, str.Datacenter_Edition
jmp 0x1401b9d4c
test al, 2
je 0x1401b9d37
lea r8, str.Enterprise_Edition
jmp 0x1401b9d4c
bt cx, 0xa
lea r8, str.Web_Edition
jb 0x1401b9d4c
lea r8, str.Standard_Edition
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
cmp dword [rsp + 0x34], 5
jne 0x1401b9e05
mov eax, dword [rsp + 0x38]
cmp eax, 1
jne 0x1401b9db0
lea r8, str.Windows_XP
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
mov eax, 0x200
lea r8, str.Home_Edition
test word [rbp - 0x38], ax
lea rcx, [rbp + 0x50]
mov edx, 0x2710
cmove r8, rbx
call fcn.1401b93a0
cmp dword [rsp + 0x34], 5
jne 0x1401b9e05
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x1401b9e05
lea r8, str.Windows_2000
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
cmp byte [rbp - 0x36], 1
jne 0x1401b9dd4
mov r8, rbx
jmp 0x1401b9df7
movzx eax, byte [rbp - 0x38]
test al, al
jns 0x1401b9de5
lea r8, str.Datacenter_Server
jmp 0x1401b9df7
lea r8, str.Advanced_Server
test al, 2
jne 0x1401b9df7
lea r8, str.Server
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x44]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1401b9e14
xor r14d, r14d
mov esi, 0x7ffffffe
test rax, rax
je 0x1401b9ebc
lea r8, [0x140208cbc]
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
mov ecx, 0x2710
lea rax, [rbp + 0x50]
nop dword [rax]
cmp byte [rax], r14b
je 0x1401b9e5e
inc rax
sub rcx, 1
jne 0x1401b9e50
mov eax, 0x2710
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x1401b9ebc
mov edx, 0x2710
lea rcx, [rbp + 0x50]
lea rcx, [rcx + rax]
sub rdx, rax
je 0x1401b9eae
lea r9, [rsp + 0x44]
mov rax, rsi
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x1401b9eae
movzx r8d, byte [rcx + r9]
test r8b, r8b
je 0x1401b9eae
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x1401b9e90
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r14b
mov r9d, dword [rsp + 0x3c]
lea r8, str.__build__d_
mov edx, 0x50
lea rcx, [rbp]
call fcn.1401b9450
mov ecx, 0x2710
lea rax, [rbp + 0x50]
nop
cmp byte [rax], r14b
je 0x1401b9eee
inc rax
sub rcx, 1
jne 0x1401b9ee0
mov eax, 0x2710
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x1401b9f49
mov r8d, 0x2710
lea rcx, [rbp + 0x50]
lea rcx, [rcx + rax]
sub r8, rax
je 0x1401b9f3b
lea rdx, [rbp]
sub rdx, rcx
nop dword [rax]
test rsi, rsi
je 0x1401b9f3b
movzx eax, byte [rcx + rdx]
test al, al
je 0x1401b9f3b
mov byte [rcx], al
dec rsi
inc rcx
sub r8, 1
jne 0x1401b9f20
test r8, r8
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r14b
cmp dword [rsp + 0x34], 6
mov rsi, qword [rsp + 0x2880]
jb 0x1401b9f85
movzx eax, word [rbp - 0x30]
cmp ax, 9
jne 0x1401b9f6b
lea r8, str.__64_bit
jmp 0x1401b9f77
test ax, ax
jne 0x1401b9f85
lea r8, str.__32_bit
mov edx, 0x2710
lea rcx, [rbp + 0x50]
call fcn.1401b93a0
mov qword [rdi], r14
lea rax, [rbp + 0x50]
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], shutdown
mov byte [rdi], r14b
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1401b9fa0
jmp 0x1401b9fe0
lea rcx, str.This_sample_does_not_support_this_version_of_Windows._n
call fcn.14017e1d0
xor r14d, r14d
mov qword [rdi + 0x18], shutdown
mov qword [rdi], r14
lea rax, [rbp + 0x50]
mov qword [rdi + 0x10], r14
mov rbx, 0xffffffffffffffff
mov byte [rdi], r14b
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1401b9fd7
mov r8, rbx
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.140011b60
mov rbx, qword [rsp + 0x2890]
mov rax, rdi
add rsp, 0x2860
pop r14
pop rdi
pop rbp
ret