Function at 0x408580
Capabilities:
Check os version
Encode data using xor
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x443010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x110
lea eax, [ebp - 0x1c4]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c8], 0x114
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.00419fd0
mov eax, dword [ebp - 0x1c4]
add esp, 4
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x78], 0x80
push eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x30], 0x10
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00419eb0
mov dl, byte [edi + 1]
lea ecx, [ebp - 0x24]
add esp, 8
mov esi, 0x10
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor dl, al
sub esi, 1
jne 0x408650
xorps xmm0, xmm0
mov byte [edi + 1], dl
lea eax, [ebp - 0xac]
mov dword [ebp - 0x8c], esi
push eax
movups xmmword [ebp - 0xac], xmm0
movups xmmword [ebp - 0x9c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x5c
lea eax, [ebp - 0x88]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.00419fd0
mov eax, dword [ebp - 0x94]
add esp, 4
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x6c], eax
movzx eax, word [ebp - 0x8c]
mov dword [ebp - 0x68], eax
movzx eax, word [ebp - 0x8a]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x78], 0x80
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x30], 0x10
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00419eb0
mov cl, byte [edi + 2]
lea eax, [ebp - 0x24]
mov dl, byte [edi + 3]
add esp, 8
mov esi, 0x10
xor cl, byte [eax]
lea eax, [eax + 2]
xor dl, byte [eax - 1]
sub esi, 1
jne 0x408707
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.d3d9.dll
mov byte [edi + 2], cl
mov byte [edi + 3], dl
call ebx
mov esi, eax
test esi, esi
je 0x408802
push 0x44c
lea eax, [ebp - 0x500]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.Direct3DCreate9
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x20
call eax
lea edx, [ebp - 0x500]
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.00419fd0
mov eax, dword [ebp - 0xd8]
add esp, 4
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x78], 0x80
push eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x30], 0x10
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00419eb0
mov dl, byte [edi + 4]
lea ecx, [ebp - 0x24]
add esp, 8
mov esi, 0x10
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor dl, al
sub esi, 1
jne 0x4087f3
mov byte [edi + 4], dl
push str.IPHLPAPI.dll
call ebx
mov esi, eax
test esi, esi
je 0x40890a
push 0x1440
mov dword [ebp - 0x28], 0x1440
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408858
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xa
movups xmmword [ecx], xmm0
push str.____oom_:_
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.0040dfc0
call fcn.0040d740
add esp, 0x18
jmp 0x40890a
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x28]
push ecx
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebx + 0x1a0], 6
jne 0x408900
push 0x5c
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.00419fd0
mov eax, dword [ebx + 0x194]
add esp, 4
mov ecx, dword [ebx + 0x198]
xorps xmm0, xmm0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0x30
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x74], 0
push eax
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x6c], ecx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00419eb0
mov dl, byte [edi + 6]
lea ecx, [ebp - 0x24]
add esp, 8
mov esi, 0x10
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor dl, al
sub esi, 1
jne 0x4088f1
mov byte [edi + 6], dl
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, edi
call fcn.00408930
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041abe3
mov esp, ebp
pop ebp
ret