Function at 0x140008884
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
add rcx, 0x10
call fcn.140001cc0
lea rcx, [rsp + 0x50]
xor r13d, r13d
mov byte [rbx + 0x42], r13b
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x54]
lea rdx, [rsp + 0x64]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x5c]
lea rcx, [rbx + 0x10]
mov dword [rbx + 8], eax
mov dword [rbx], r11d
call fcn.1400025a8
or r10, 0xffffffffffffffff
mov r8d, r13d
lea rsi, [0x14008b6c0]
cmp qword [rbx + 0x18], r13
jbe 0x140008932
mov rax, qword [rbx + 0x10]
mov r9, r13
mov rcx, r13
mov edx, SafeArrayAllocDescriptor
cmp word [rax], dx
jne 0x140008913
inc rcx
inc r9
movzx edx, word [rsi + r9*2]
test dx, dx
jne 0x14000890b
test rcx, rcx
je 0x140008935
inc r8
add rax, 2
cmp r8, qword [rbx + 0x18]
jb 0x140008900
mov r8, r10
xor edx, edx
lea rcx, [rbx + 0x10]
cmp r8, r10
jne 0x140008943
mov r8, r10
call fcn.1400027e4
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.140008b0c
mov ecx, dword [rbx]
mov byte [rbx + 0x3e], r13b
sub ecx, 5
mov qword [rbx + 0x30], r13
mov dword [rbx + 0x38], r13d
mov word [rbx + 0x3c], r13w
je 0x1400089c8
dec ecx
jne 0x140008a13
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
mov byte [rbx + 0x35], 1
cmp dword [rbx + 4], r13d
jne 0x1400089a0
cmp byte [rbp + 0x6a], 1
jne 0x140008994
mov word [rbx + 0x36], 0x101
jmp 0x140008a13
mov byte [rbx + 0x37], 1
mov word [rbx + 0x38], 0x101
jmp 0x140008a13
cmp dword [rbx + 4], 1
jne 0x140008a13
cmp byte [rbp + 0x6a], 1
mov byte [rbx + 0x37], 1
mov byte [rbx + 0x39], 1
jne 0x1400089bc
mov word [rbx + 0x3a], 0x101
jmp 0x140008a13
mov byte [rbx + 0x3b], 1
mov word [rbx + 0x3c], 0x101
jmp 0x140008a13
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1400089d7
mov word [rbx + 0x30], 0x101
jmp 0x140008a08
cmp eax, 1
jne 0x1400089e7
mov byte [rbx + 0x31], al
mov word [rbx + 0x32], 0x101
jmp 0x140008a08
cmp eax, 2
jne 0x140008a08
cmp byte [rbp + 0x6a], 1
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
mov byte [rbx + 0x35], 1
jne 0x140008a04
mov byte [rbx + 0x32], 1
jmp 0x140008a08
mov byte [rbx + 0x34], 1
mov al, byte [rbp + 0x68]
shr al, 6
and al, 1
mov byte [rbx + 0x42], al
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140008a66
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140008a66
mov dword [rbp + 0x90], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x90]
mov rcx, rax
call rdi
cmp dword [rbp + 0x90], 1
jne 0x140008a66
mov byte [rbx + 0x3e], 1
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], r13d
lea r8d, [rdx + 0x2c]
call fcn.14006fdf0
cmp byte [rbx + 0x3e], r13b
je 0x140008acf
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140008ab4
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008ab4
lea rcx, [rsp + 0x20]
call rax
jmp 0x140008abf
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
test rdi, rdi
je 0x140008ada
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008ada
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
mov word [rbx + 0x40], ax
test rsi, rsi
je 0x140008af1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x170]
mov rax, rbx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret