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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x1c]
call fcn.140171ae0
mov dword [rbp - 0x20], 0x11c
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400699d6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
or rdi, 0xffffffffffffffff
mov eax, dword [rbp - 0x1c]
cmp eax, 6
jne 0x14006931e
mov eax, dword [rbp - 0x18]
cmp eax, 2
jne 0x14006929e
lea rcx, [rsp + 0x60]
cmp byte [rbp + 0xfa], 1
jne 0x140069287
lea r8d, [rsi + 9]
lea rdx, str.Windows_8
call fcn.14000dc20
jmp 0x1400695c8
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.Windows_8_Server
call fcn.14000dc20
jmp 0x1400695c8
cmp eax, 1
jne 0x1400692dc
lea rcx, [rsp + 0x60]
cmp byte [rbp + 0xfa], al
jne 0x1400692c5
lea r8d, [rax + 8]
lea rdx, str.Windows_7
call fcn.14000dc20
jmp 0x1400695c8
mov r8d, socket
lea rdx, str.Windows_Server_2008_R2
call fcn.14000dc20
jmp 0x1400695c8
test eax, eax
jne 0x140069438
lea rcx, [rsp + 0x60]
cmp byte [rbp + 0xfa], 1
jne 0x140069307
lea r8d, [rax + 0xd]
lea rdx, str.Windows_Vista
call fcn.14000dc20
jmp 0x1400695c8
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Windows_Server_2008
call fcn.14000dc20
jmp 0x1400695c8
cmp eax, 5
jne 0x140069438
mov eax, dword [rbp - 0x18]
cmp eax, 2
jne 0x1400693fb
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14006935c
mov r8d, socket
lea rdx, str.Windows_Server_2003_R2
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
cmp dword [rbp - 0x1c], 5
jne 0x140069438
mov eax, dword [rbp - 0x18]
cmp eax, 2
jne 0x1400693fb
mov eax, 0x8000
cmp word [rbp + 0xf8], ax
jne 0x14006939c
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Windows_Home_Server
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
cmp byte [rbp + 0xfa], 1
jne 0x1400693c9
cmp word [rsp + 0x30], 9
jne 0x1400693c9
mov r8d, 0x26
lea rdx, str.Windows_XP_Professional_64_bit_Edition
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1400693f2
lea r8d, [rax + 0x13]
lea rdx, str.Windows_Server_2003
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
cmp dword [rbp - 0x1c], 5
jne 0x140069438
mov eax, dword [rbp - 0x18]
cmp eax, 1
jne 0x14006941a
lea r8d, [rax + 9]
lea rdx, str.Windows_XP
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
test eax, eax
jne 0x140069438
lea r8d, [rax + 0xc]
lea rdx, str.Windows_2000
lea rcx, [rsp + 0x60]
call fcn.14000dc20
jmp 0x1400695c8
lea rdx, str.UNKNOWN_OS__1_._2_
lea rcx, [rbp + 0x100]
call fcn.140021a10
mov rbx, rax
cmp byte [rax + 0x44], 0
je 0x14006945c
mov rcx, rax
call fcn.140009270
lea rdx, [rbp - 0x1c]
mov rcx, rbx
call fcn.14001a310
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x1400694cf
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x1400694cf
mov r10, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x1400694ab
mov rax, rcx
neg rax
je 0x1400694ab
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r10
sub r8, rax
jmp 0x1400694b6
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1400694cf
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x140069482
cmp byte [rbx + 0x44], 0
je 0x1400694dd
mov rcx, rbx
call fcn.140009270
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14001a310
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x140069550
mov r10d, dword [rbx + 0x40]
cmp edx, r10d
jge 0x140069550
mov r9, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x14006952c
mov rax, rcx
neg rax
je 0x14006952c
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r9
sub r8, rax
jmp 0x140069537
mov rax, rcx
shr rax, 5
lea r8, [r9 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x140069550
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r10d
jl 0x140069503
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14000dbe0
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rbx
je 0x14006959c
cmp qword [rsp + 0x78], 8
jb 0x14006957b
mov rcx, qword [rsp + 0x60]
call fcn.1401669a0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000d860
nop
cmp qword [rbp - 0x48], 8
jb 0x1400695ac
mov rcx, qword [rbp - 0x60]
call fcn.1401669a0
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
lea rcx, [rbp + 0x100]
call fcn.1400090e0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
movzx eax, word [rsp + 0x30]
cmp ax, 9
jne 0x1400695f4
lea rdx, str.64_bit
jmp 0x140069607
test ax, ax
lea rdx, str.32_bit
je 0x140069607
lea rdx, str.___bit
mov r8d, 6
lea rcx, [rbp - 0x80]
call fcn.14000dc20
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea rdx, str._1___5____Build:__2____SP:__3_._4__
lea rcx, [rbp + 0x100]
call fcn.140021a10
mov rbx, rax
cmp byte [rax + 0x44], 0
je 0x14006964d
mov rcx, rax
call fcn.140009270
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000caa0
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x1400696c1
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x1400696c1
mov r10, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x14006969d
mov rax, rcx
neg rax
je 0x14006969d
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r10
sub r8, rax
jmp 0x1400696a8
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1400696c1
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x140069674
cmp byte [rbx + 0x44], 0
je 0x1400696cf
mov rcx, rbx
call fcn.140009270
lea rdx, [rbp - 0x14]
mov rcx, rbx
call fcn.14001a310
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x140069742
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x140069742
mov r10, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x14006971e
mov rax, rcx
neg rax
je 0x14006971e
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r10
sub r8, rax
jmp 0x140069729
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x140069742
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x1400696f5
cmp byte [rbx + 0x44], 0
je 0x140069750
mov rcx, rbx
call fcn.140009270
lea rdx, [rbp + 0xf4]
mov rcx, rbx
call fcn.14006a300
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x1400697cd
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x1400697cd
mov r10, qword [rbx + 0x18]
nop dword [rax]
movsxd rcx, edx
test edx, edx
jns 0x1400697a9
mov rax, rcx
neg rax
je 0x1400697a9
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r10
sub r8, rax
jmp 0x1400697b4
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1400697cd
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x140069780
cmp byte [rbx + 0x44], 0
je 0x1400697db
mov rcx, rbx
call fcn.140009270
lea rdx, [rbp + 0xf6]
mov rcx, rbx
call fcn.14006a300
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x140069851
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x140069851
mov r10, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x14006982d
mov rax, rcx
neg rax
je 0x14006982d
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r10
sub r8, rax
jmp 0x140069838
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x140069851
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x140069804
cmp byte [rbx + 0x44], 0
je 0x14006985f
mov rcx, rbx
call fcn.140009270
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001a440
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x1400698d3
mov r10d, dword [rbx + 0x40]
cmp edx, r10d
jge 0x1400698d3
mov r9, qword [rbx + 0x18]
movsxd rcx, edx
test edx, edx
jns 0x1400698af
mov rax, rcx
neg rax
je 0x1400698af
mov rax, rdi
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r9
sub r8, rax
jmp 0x1400698ba
mov rax, rcx
shr rax, 5
lea r8, [r9 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1400698d3
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r10d
jl 0x140069886
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14000dbe0
nop
lea rcx, [rbp + 0x100]
call fcn.1400090e0
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
lea r8, str.Running_on_OS:__s
mov edx, 0x100
lea rcx, [rbp + 0x200]
call fcn.140167410
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
cmp word [rbp + 0x200], 0
jne 0x14006993a
mov rdi, rsi
jmp 0x14006994b
lea rax, [rbp + 0x200]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140069941
mov r8, rdi
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x60]
call fcn.14000dc20
nop
mov r8d, 4
lea rdx, [rbp - 0x60]
call fcn.140078560
nop
cmp qword [rbp - 0x28], 8
jb 0x14006997f
mov rcx, qword [rbp - 0x40]
call fcn.1401669a0
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
cmp qword [rbp - 0x68], 8
jb 0x14006999f
mov rcx, qword [rbp - 0x80]
call fcn.1401669a0
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
cmp qword [rsp + 0x78], 8
jb 0x1400699c1
mov rcx, qword [rsp + 0x60]
call fcn.1401669a0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov al, 1
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret