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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x494034], ebx
je 0x43bb17
mov esi, 0x494038
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43baea
sub ecx, edi
sar ecx, 1
je 0x43c093
test edx, edx
je 0x43c093
push esi
push dword [ebp + 0xc]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x43c088
push 9
pop eax
mov ecx, eax
lea edi, [ebp - 0xcc]
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1e4]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1e8], 0x11c
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43c093
push 0x4865e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x43c093
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0xcc]
push eax
test esi, esi
je 0x43bb94
mov ecx, esi
call dword [0x44b788]
call esi
jmp 0x43bb9a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x1d8], 2
jne 0x43c08d
cmp dword [ebp - 0x1e4], 4
jbe 0x43c08d
push str.Microsoft
push 0x100
mov esi, 0x494038
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
imul eax, dword [ebp - 0x1e4], 0xa
add esp, 0xc
push 6
add eax, dword [ebp - 0x1e0]
cmp dword [ebp - 0x1e4], 0xa
mov dword [0x494034], eax
pop eax
jne 0x43bc28
cmp dword [ebp - 0x1e0], ebx
jne 0x43bfea
cmp byte [ebp - 0xce], 1
jne 0x43bc07
push str.Windows_10
jmp 0x43bc0c
push str.Windows_Server_2016
push 0x100
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [0x494034], 0x64
push 6
pop eax
cmp dword [ebp - 0x1e4], eax
jne case.0x43bd63.5
cmp dword [ebp - 0x1e0], ebx
jne 0x43bc6a
cmp byte [ebp - 0xce], 1
jne 0x43bc4c
push str.Windows_Vista
jmp 0x43bc51
push str.Windows_Server_2008
push 0x100
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [0x494034], 0x3c
cmp dword [ebp - 0x1e0], 1
jne 0x43bca1
cmp byte [ebp - 0xce], 1
jne 0x43bc83
push str.Windows_7
jmp 0x43bc88
push str.Windows_Server_2008_R2
push 0x100
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [0x494034], 0x3d
cmp dword [ebp - 0x1e0], 2
jne 0x43bcd8
cmp byte [ebp - 0xce], 1
jne 0x43bcba
push str.Windows_8
jmp 0x43bcbf
push str.Windows_Server_2012
push 0x100
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [0x494034], 0x3e
cmp dword [ebp - 0x1e0], 3
jne 0x43bd0f
cmp byte [ebp - 0xce], 1
jne 0x43bcf1
push str.Windows_8.1
jmp 0x43bcf6
push str.Windows_Server_2012_R2
push 0x100
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [0x494034], 0x3f
push str.GetProductInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43c093
lea eax, [ebp - 0xa8]
mov ecx, edi
push eax
push ebx
push ebx
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e4]
call dword [0x44b788]
call edi
mov eax, dword [ebp - 0xa8]
cmp eax, 0x19
ja 0x43bded
je 0x43bde6
dec eax
cmp eax, 0x11
ja case.0x43bd63.5
jmp dword [eax*4 + 0x43c0a9]
push str.Ultimate_Edition
mov edi, 0x100
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
jmp 0x43be06
push str.Home_Premium_Edition
jmp 0x43bd6f
push str.Home_Basic_Edition
jmp 0x43bd6f
push str.Business_Edition
jmp 0x43bd6f
push str.Starter_Edition
jmp 0x43bd6f
push str.Cluster_Server_Edition
jmp 0x43bd6f
push str.Datacenter_Edition
jmp 0x43bd6f
push str.Datacenter_Edition__core_installation_
jmp 0x43bd6f
push str.Enterprise_Edition
jmp 0x43bd6f
push str.Enterprise_Edition__core_installation_
jmp 0x43bd6f
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x43bd6f
push str.Small_Business_Server
jmp 0x43bd6f
push str.Standard_Edition
jmp 0x43bd6f
push str.Standard_Edition__core_installation_
jmp 0x43bd6f
push str.Web_Server_Edition
jmp 0x43bd6f
push str.Small_Business_Server_Premium_Edition
jmp 0x43bd6f
mov edi, 0x100
cmp eax, 0x30
jne 0x43be06
push str.Professional
jmp 0x43bd74
mov edi, 0x100
cmp dword [ebp - 0x1e4], 5
jne 0x43bfea
cmp dword [ebp - 0x1e0], 2
jne 0x43bf4d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x43be33
push str.Windows_Server_2003_R2_
jmp 0x43be7a
test dword [ebp - 0xd0], 0x2000
je 0x43be46
push str.Windows_Storage_Server_2003
jmp 0x43be7a
test dword [ebp - 0xd0], 0x8000
je 0x43be59
push str.Windows_Home_Server
jmp 0x43be7a
cmp byte [ebp - 0xce], 1
jne 0x43be75
push 9
pop eax
cmp word [ebp - 0xcc], ax
jne 0x43be75
push str.Windows_XP_Professional_x64_Edition
jmp 0x43be7a
push str.Windows_Server_2003_
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp byte [ebp - 0xce], 1
je 0x43bf40
push 6
pop eax
cmp word [ebp - 0xcc], ax
jne 0x43bec5
test byte [ebp - 0xd0], 0x80
je 0x43beb1
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x43bf35
test byte [ebp - 0xd0], 2
je 0x43bf40
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x43bf35
push 9
pop eax
cmp word [ebp - 0xcc], ax
jne 0x43bef8
test byte [ebp - 0xd0], 0x80
je 0x43bee1
push str.Datacenter_x64_Edition
jmp 0x43bf35
test byte [ebp - 0xd0], 2
je 0x43bef1
push str.Enterprise_x64_Edition
jmp 0x43bf35
push str.Standard_x64_Edition
jmp 0x43bf35
mov eax, dword [ebp - 0xd0]
test eax, 0x4000
je 0x43bf0c
push str.Compute_Cluster_Edition
jmp 0x43bf35
test al, al
jns 0x43bf17
push str.Datacenter_Edition
jmp 0x43bf35
test al, 2
je 0x43bf22
push str.Enterprise_Edition
jmp 0x43bf35
test eax, 0x400
je 0x43bf30
push str.Web_Edition
jmp 0x43bf35
push str.Standard_Edition
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp dword [ebp - 0x1e4], 5
jne 0x43bfea
cmp dword [ebp - 0x1e0], 1
jne 0x43bf92
push str.Windows_XP
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test dword [ebp - 0xd0], 0x200
je 0x43bf79
push str.Home_Edition
jmp 0x43bf7e
push str.Professional
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp dword [ebp - 0x1e4], 5
jne 0x43bfea
cmp dword [ebp - 0x1e0], ebx
jne 0x43bfea
push str.Windows_2000
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp byte [ebp - 0xce], 1
jne 0x43bfba
push str.Professional
jmp 0x43bfdf
test byte [ebp - 0xd0], 0x80
je 0x43bfca
push str.Datacenter_Server
jmp 0x43bfdf
test byte [ebp - 0xd0], 2
je 0x43bfda
push str.Advanced_Server
jmp 0x43bfdf
push str.Server
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea ecx, [ebp - 0x1d4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43bff3
sub ecx, edx
mov ebx, 0x100
sar ecx, 1
je 0x43c028
push 0x485610
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x1d4]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x18
push dword [ebp - 0x1dc]
lea eax, [ebp - 0xa4]
push str.__build__d_
push 0x50
push eax
call fcn.0040b306
lea eax, [ebp - 0xa4]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x1c
push 6
pop eax
cmp dword [ebp - 0x1e4], eax
jb 0x43c093
push 9
pop eax
cmp word [ebp - 0xcc], ax
jne 0x43c071
push str.__64_bit
jmp 0x43c080
cmp word [ebp - 0xcc], 0
jne 0x43c093
push str.__32_bit
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
jmp 0x43c093
mov dword [0x494034], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [0x494034]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00444460
leave
ret