Function at 0x18000c840
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18009c600]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
and dword [rsp + 0x20], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdx, str.UnKnown
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea esi, [rax + 1]
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18000cd26
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x60]
call rdi
test eax, eax
jne 0x18000cd00
mov eax, dword [rsp + 0x64]
sub eax, 4
je 0x18000cc3f
sub eax, esi
je 0x18000cb23
sub eax, esi
je 0x18000c993
cmp eax, 4
jne 0x18000cd4a
cmp dword [rsp + 0x68], 0
jne 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000c96a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_10
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2016
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18000cac7
sub eax, esi
je 0x18000ca6b
sub eax, esi
je 0x18000ca0f
cmp eax, esi
jne 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000c9e6
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_8.1
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2012_R2
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000ca42
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_8
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2012
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000ca9e
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_7
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2008_R2
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000cafa
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Vista
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2008
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18000cc16
sub eax, esi
je 0x18000cbed
cmp eax, esi
jne 0x18000cd4a
cmp byte [rsp + 0x17a], sil
jne 0x18000cb7a
cmp word [rsp + 0x30], 9
jne 0x18000cb7a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_XP_Professional_x64_Edition
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
mov edi, 0x59
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x18000cbb4
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2003
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
mov ecx, edi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Server_2003_R2
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_XP
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_2000
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18000cca7
cmp eax, 0xa
je 0x18000cc7e
cmp eax, 0x5a
jne 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_Me
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_98
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
cmp dword [rsp + 0x70], 2
jne 0x18000ccd4
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_NT_4.0
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
cmp dword [rsp + 0x70], esi
jne 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.Win_95
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.UnKnown_error
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
jmp 0x18000cd4a
xor eax, eax
mov rcx, rbp
lea rdx, str.UnKnown_addr_error
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002aa4
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.1800126c4
nop
lea rdx, [rdi - 0x18]
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
test ecx, ecx
jg 0x18000cd75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800520e0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret