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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x30], 0x11c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
lea r8d, [rbx + 0x18]
lea rdx, str.unknown_OperatingSystem.
mov rcx, rdi
call fcn.14001ced0
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140022b90
mov eax, dword [rsp + 0x34]
sub eax, 4
je 0x140022a7a
sub eax, 1
je 0x1400228ea
sub eax, 1
je 0x140022696
cmp eax, 4
jne 0x140022b90
cmp dword [rsp + 0x38], ebx
jne 0x140022b90
cmp byte [rsp + 0x14a], 1
jne 0x140022655
cmp qword [rdi + 0x18], 0x14
jb 0x140022649
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_sendto
lea r8d, [rax + 0x10]
lea rdx, str.Microsoft_Windows_10
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x14], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_10
jmp 0x140022b80
cmp qword [rdi + 0x18], 0x2f
jb 0x140022685
mov rbx, qword [rdi]
mov qword [rdi + 0x10], gethostbyname
mov r8d, gethostbyname
lea rdx, str.Microsoft_Windows_Server_2016_Technical_Preview
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x2f], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2016_Technical_Preview
mov edx, 0x2f
jmp 0x140022b85
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14002285e
sub eax, 1
je 0x1400227d2
sub eax, 1
je 0x140022746
cmp eax, 1
jne 0x140022b90
cmp byte [rsp + 0x14a], al
jne 0x140022705
cmp qword [rdi + 0x18], 0x15
jb 0x1400226f4
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_setsockopt
lea r8d, [rax + 0x14]
lea rdx, str.Microsoft_Windows_8.1
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x15], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_8.1
mov edx, reloc.WS2_32.dll_setsockopt
jmp 0x140022b85
cmp qword [rdi + 0x18], 0x20
jb 0x140022735
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x20
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2012_R2
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x20], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2012_R2
mov edx, 0x20
jmp 0x140022b85
cmp byte [rsp + 0x14a], 1
jne 0x140022791
cmp qword [rdi + 0x18], 0x13
jb 0x140022780
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Microsoft_Windows_8
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x13], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_8
mov edx, reloc.WS2_32.dll_send
jmp 0x140022b85
cmp qword [rdi + 0x18], 0x1d
jb 0x1400227c1
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x1d
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2012
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x1d], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2012
mov edx, 0x1d
jmp 0x140022b85
cmp byte [rsp + 0x14a], 1
jne 0x14002281d
cmp qword [rdi + 0x18], 0x13
jb 0x14002280c
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Microsoft_Windows_7
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x13], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_7
mov edx, reloc.WS2_32.dll_send
jmp 0x140022b85
cmp qword [rdi + 0x18], 0x20
jb 0x14002284d
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x20
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2008_R2
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x20], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2008_R2
mov edx, 0x20
jmp 0x140022b85
cmp byte [rsp + 0x14a], 1
jne 0x1400228a9
cmp qword [rdi + 0x18], 0x17
jb 0x140022898
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_socket
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Microsoft_Windows_Vista
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x17], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Vista
mov edx, reloc.WS2_32.dll_socket
jmp 0x140022b85
cmp qword [rdi + 0x18], 0x1d
jb 0x1400228d9
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x1d
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2008
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x1d], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2008
mov edx, 0x1d
jmp 0x140022b85
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140022a39
sub eax, 1
je 0x1400229fd
cmp eax, 1
jne 0x140022b90
cmp byte [rsp + 0x14a], al
jne 0x14002295b
cmp word [rsp + 0x150], 9
jne 0x14002295b
cmp qword [rdi + 0x18], 0x2d
jb 0x14002294a
mov rbx, qword [rdi]
mov qword [rdi + 0x10], gethostbyname
lea r8d, [rax + 0x2c]
lea rdx, str.Microsoft_Windows_XP_Professional_x64_Edition
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x2d], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_XP_Professional_x64_Edition
mov edx, 0x2d
jmp 0x140022b85
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1400229a9
cmp qword [rdi + 0x18], 0x1d
jb 0x140022998
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x1d
lea r8d, [rax + 0x1d]
lea rdx, str.Microsoft_Windows_Server_2003
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x1d], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2003
mov edx, 0x1d
jmp 0x140022b85
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140022b90
cmp qword [rdi + 0x18], 0x20
jb 0x1400229ec
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x20
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2003_R2
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x20], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Server_2003_R2
mov edx, 0x20
jmp 0x140022b85
cmp qword [rdi + 0x18], 0x14
jb 0x140022a2d
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_sendto
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.Microsoft_Windows_XP
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x14], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_XP
jmp 0x140022b80
cmp qword [rdi + 0x18], 0x16
jb 0x140022a69
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_shutdown
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Microsoft_Windows_2000
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x16], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_2000
mov edx, reloc.WS2_32.dll_shutdown
jmp 0x140022b85
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140022b07
cmp eax, 0xa
je 0x140022ace
cmp eax, 0x5a
jne 0x140022b90
cmp qword [rdi + 0x18], 0x14
jb 0x140022ac2
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_sendto
lea r8d, [rax - 0x46]
lea rdx, str.Microsoft_Windows_Me
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x14], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_Me
jmp 0x140022b80
cmp qword [rdi + 0x18], 0x14
jb 0x140022afe
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_sendto
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.Microsoft_Windows_98
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x14], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_98
jmp 0x140022b80
mov eax, dword [rsp + 0x40]
cmp eax, 2
jne 0x140022b49
cmp qword [rdi + 0x18], 0x18
jb 0x140022b3b
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 0x18
lea r8d, [rax + 0x16]
lea rdx, str.Microsoft_Windows_NT_4.0
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x18], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_NT_4.0
mov edx, 0x18
jmp 0x140022b85
cmp eax, 1
jne 0x140022b90
cmp qword [rdi + 0x18], 0x14
jb 0x140022b79
mov rbx, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_sendto
lea r8d, [rax + 0x13]
lea rdx, str.Microsoft_Windows_95
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 0x14], 0
jmp 0x140022b90
lea r9, str.Microsoft_Windows_95
mov edx, reloc.WS2_32.dll_sendto
xor r8d, r8d
mov rcx, rdi
call fcn.1400152b0
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14003fb10
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret