Function at 0x1400c85d0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
lea rax, [0x140287ee0]
mov qword [rsp + 0x50], rax
lea rax, [0x140287ee8]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], ebx
lea rdx, str.Windows_
lea rcx, [rsp + 0x60]
call fcn.1400526f0
lea rcx, [rbp + 0xa0]
call fcn.1400cafb0
test al, al
jne 0x1400c86f9
lea rdx, [0x1402884fc]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400c8d80
nop
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x50], r14
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x4c], r8d
jmp 0x1400c8d31
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x68]
test rax, rax
je 0x1400c8735
call rax
jmp 0x1400c873b
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rbp + 0xa4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
mov edx, dword [rbp + 0xa8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
mov edx, dword [rbp + 0xac]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rdi, rbx
mov qword [rbp + 0x50], rbx
mov dword [rbp + 0x58], ebx
mov qword [rbp + 0x60], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140288520]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c87d4
mov eax, ebx
mov rdi, qword [rsp + 0x38]
mov qword [rbp + 0x50], rdi
mov dword [rbp + 0x58], ebx
test eax, eax
jne 0x1400c8839
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x140288580]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c8839
cmp dword [rsp + 0x38], 4
jne 0x1400c8839
lea rdx, [0x140274880]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
cmp word [rbp + 0x1b4], 0
jne 0x1400c884d
cmp word [rbp + 0x1b6], 0
je 0x1400c88ab
lea rdx, [0x140288588]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
movzx edx, word [rbp + 0x1b4]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
movzx edx, word [rbp + 0x1b6]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
mov edx, dword [rbp + 0xac]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14028858c]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
cmp dword [rbp + 0xb0], 2
jne 0x1400c8c74
mov eax, dword [rbp + 0xa4]
cmp eax, 4
jbe 0x1400c8c74
cmp eax, 6
je 0x1400c8b1f
cmp eax, 0xa
je 0x1400c8ad5
cmp eax, 5
jne 0x1400c8c85
mov eax, dword [rbp + 0xa8]
cmp eax, 2
jne 0x1400c8a36
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400c8918
lea rdx, str.Server2003_R2
jmp 0x1400c895d
movzx eax, word [rbp + 0x1b8]
bt ax, 0xd
jae 0x1400c892f
lea rdx, str.Storage_Server_2003
jmp 0x1400c895d
bt ax, 0xf
jae 0x1400c893f
lea rdx, str.Home_Server
jmp 0x1400c895d
cmp byte [rbp + 0x1ba], 1
jne 0x1400c8956
cmp word [rbp + 0x68], 9
lea rdx, str.WinXP_Pro_x64
je 0x1400c895d
lea rdx, str.Server2003
lea rcx, [rsp + 0x60]
call fcn.1400526f0
cmp byte [rbp + 0x1ba], 1
je 0x1400c8c85
movzx eax, word [rbp + 0x68]
cmp ax, 6
jne 0x1400c89a9
movzx eax, word [rbp + 0x1b8]
test al, al
jns 0x1400c8995
lea rdx, str._Datacenter_Itanium
jmp 0x1400c8c7b
test al, 2
je 0x1400c8c85
lea rdx, str._Enterprise_Itanium
jmp 0x1400c8c7b
cmp ax, 9
movzx eax, word [rbp + 0x1b8]
jne 0x1400c89df
test al, al
jns 0x1400c89c6
lea rdx, str._Datacenter_x64
jmp 0x1400c8c7b
test al, 2
lea rdx, str._Enterprise_x64
lea rax, str._Standard_x64
cmove rdx, rax
jmp 0x1400c8c7b
bt ax, 0xe
jae 0x1400c89f2
lea rdx, str._Compute_Cluster
jmp 0x1400c8c7b
test al, al
jns 0x1400c8a02
lea rdx, str._Datacenter
jmp 0x1400c8c7b
test al, 2
je 0x1400c8a12
lea rdx, str._Enterprise
jmp 0x1400c8c7b
lea rcx, [rsp + 0x60]
bt ax, 0xa
jae 0x1400c8a2a
lea rdx, str._Web
jmp 0x1400c8c80
lea rdx, str._Standard
jmp 0x1400c8c80
cmp eax, 1
jne 0x1400c8a6f
lea rdx, str.WinXP
lea rcx, [rsp + 0x60]
call fcn.1400526f0
mov eax, 0x200
test word [rbp + 0x1b8], ax
lea rax, str._Pro
lea rdx, str._Home
cmove rdx, rax
jmp 0x1400c8c7b
test eax, eax
jne 0x1400c8c85
lea rdx, str.Win2000
lea rcx, [rsp + 0x60]
call fcn.1400526f0
cmp byte [rbp + 0x1ba], 1
jne 0x1400c8a9d
lea rdx, str._Pro
jmp 0x1400c8c7b
movzx eax, word [rbp + 0x1b8]
test al, al
jns 0x1400c8ab4
lea rdx, str._Datacenter
jmp 0x1400c8c7b
lea rcx, [rsp + 0x60]
test al, 2
je 0x1400c8ac9
lea rdx, str._Advanced
jmp 0x1400c8c80
lea rdx, str._Server
jmp 0x1400c8c80
cmp byte [rbp + 0x1ba], 1
jne 0x1400c8b09
lea rdx, str.Win11
lea rax, str.Win10
cmp dword [rbp + 0xac], 0x55f0
cmovb rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400526f0
jmp 0x1400c8bec
lea rdx, str.ServerWin10
lea rcx, [rsp + 0x60]
call fcn.1400526f0
jmp 0x1400c8bec
mov eax, dword [rbp + 0xa8]
test eax, eax
jne 0x1400c8b39
lea rdx, str.Vista
lea rax, str.Server2008
jmp 0x1400c8b61
cmp eax, 1
jne 0x1400c8b4e
lea rdx, str.Win7
lea rax, str.Server2008_R2
jmp 0x1400c8b61
cmp eax, 2
jne 0x1400c8b78
lea rdx, str.Win8
lea rax, str.Server2012
cmp byte [rbp + 0x1ba], 1
cmovne rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400526f0
jmp 0x1400c8bec
lea rcx, [rsp + 0x60]
cmp eax, 3
jne 0x1400c8ba2
lea rdx, str.Win8.1
lea rax, str.Server2012_R2_
cmp byte [rbp + 0x1ba], 1
cmovne rdx, rax
call fcn.1400526f0
jmp 0x1400c8bec
mov edx, 6
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
movzx ebx, byte [rbp + 0x1ba]
mov edx, dword [rbp + 0xa8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140274880]
call fcn.1400526f0
movzx edx, bl
mov rcx, rax
call fcn.1400c2ff0
lea rdx, [0x14027cac8]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
mov rbx, rax
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x1c0]
call fcn.1400c7ee0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1400c8c22
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400c7d20
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x1400c8c85
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c8c6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c8c6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
jmp 0x1400c8c85
lea rdx, [0x1402884fc]
lea rcx, [rsp + 0x60]
call fcn.1400526f0
call fcn.1400cb060
test al, al
je 0x1400c8c9f
lea rdx, str._S_mode
lea rcx, [rsp + 0x60]
call fcn.1400526f0
cmp dword [rbp + 0xa4], 6
jb 0x1400c8ce2
call fcn.1400caff0
test al, al
je 0x1400c8cba
lea rdx, str.__ARM64
jmp 0x1400c8ce9
movzx eax, word [rbp + 0x68]
cmp ax, 0xc
jne 0x1400c8ccd
lea rdx, str.__Arm64
jmp 0x1400c8ce9
cmp ax, 9
je 0x1400c8cd9
cmp ax, 6
jne 0x1400c8ce2
lea rdx, str.__x64
jmp 0x1400c8ce9
lea rdx, str.__x86
lea rcx, [rsp + 0x60]
call fcn.1400526f0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400c8d80
nop
test rdi, rdi
je 0x1400c8d10
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.1400c31b0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret