Function at 0x140008160
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x141a750c0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, r8
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x48], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x48], 1
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140008717
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x68]
mov qword [rsp + 0x50], r14
mov r12, qword [rbp - 0x60]
mov qword [rsp + 0x40], r12
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140014720
nop
lea rdi, [rbp - 0x20]
mov r8, qword [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdi, r8
lea rcx, [rbp - 0x20]
cmova rcx, r8
mov rsi, qword [rbp - 0x10]
add rsi, rcx
lea rbx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x14000824b
sub rdi, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x140008237
cmp r14, r12
jae 0x1400086c0
movabs rbx, 0x7fffffffffffffff
nop
mov r9d, Ordinal_50
lea r8, [rsp + 0x60]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1400086c0
cmp dword [rbp - 0x80], 0x1000
jne 0x1400086ad
mov eax, dword [rbp - 0x7c]
cmp eax, 1
je 0x1400086ad
cmp eax, 0x100
je 0x1400086ad
mov rdi, qword [rsp + 0x78]
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
xor esi, esi
mov qword [rbp + 0x10], rsi
test rdi, rdi
je 0x14000831f
cmp rdi, rbx
ja 0x14000874d
cmp rdi, 0x1000
jb 0x1400082fa
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140008747
call fcn.1400fb838
mov rcx, rax
test rax, rax
je 0x14000870a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140008302
mov rcx, rdi
call fcn.1400fb838
mov qword [rbp], rax
lea rbx, [rax + rdi]
mov qword [rbp + 0x10], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 8], rbx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbp]
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000866d
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov r14, qword [rbp]
mov rbx, qword [rbp + 8]
cmp r14, rbx
jne 0x14000837a
mov rcx, rsi
mov qword [rbp - 0x30], rcx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x40], cl
jmp 0x140008453
sub rbx, r14
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140008741
cmp rbx, 0xf
ja 0x1400083bb
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x40], 0
jmp 0x14000844b
mov rdi, rbx
or rdi, 0xf
cmp rdi, rax
jbe 0x1400083da
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140008406
cmp rdi, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
je 0x14000842d
cmp rcx, 0x1000
jb 0x140008425
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008753
mov rcx, rax
call fcn.1400fb838
test rax, rax
je 0x140008703
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000842d
call fcn.1400fb838
mov rsi, rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov r14, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
lea rdi, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
mov qword [rsp + 0x30], r8
cmp r14, 0xf
cmova rdi, r8
lea rsi, [rbp - 0x40]
cmova rsi, r8
add rsi, rcx
lea rbx, [rbp - 0x40]
cmp r14, 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x1400084a8
sub rdi, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x140008487
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x40]
mov qword [rsp + 0x30], r8
lea rsi, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rsi, qword [rbp - 0x20]
lea r14, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r14, r8
mov rdi, qword [rbp - 0x10]
cmp rdi, rcx
ja 0x14000862d
sub rcx, rdi
test rdi, rdi
jne 0x1400084dc
xor ebx, ebx
jmp 0x140008543
lea r15, [r14 + rcx]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, r14
mov edx, r12d
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000861e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008536
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140008502
jmp 0x14000861e
sub rbx, r14
cmp rbx, 0xffffffffffffffff
je 0x14000861e
mov rcx, qword [rsp + 0x60]
add rcx, rbx
mov qword [rsp + 0x30], rcx
mov rdx, qword [r13 + 8]
cmp rdx, qword [r13 + 0x10]
je 0x140008564
mov qword [rdx], rcx
add qword [r13 + 8], 8
jmp 0x140008571
lea r8, [rsp + 0x30]
mov rcx, r13
call fcn.140016e80
inc rbx
lea rsi, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rsi, qword [rbp - 0x20]
lea r12, [rbp - 0x40]
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rbp - 0x28], 0xf
cmova r12, rax
mov rdi, qword [rbp - 0x10]
mov rax, qword [rbp - 0x30]
cmp rdi, rax
ja 0x14000861e
sub rax, rdi
cmp rbx, rax
ja 0x14000861e
test rdi, rdi
je 0x140008614
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000861e
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008611
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400085e0
jmp 0x14000861e
sub rbx, r12
cmp rbx, 0xffffffffffffffff
jne 0x140008543
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x28]
cmp rcx, 0xf
jbe 0x140008668
lea rdx, [rcx + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140008660
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008703
mov rcx, r8
call fcn.1400fb710
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400086a3
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000869e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000870a
call fcn.1400fb710
movabs rbx, 0x7fffffffffffffff
add r14, qword [rsp + 0x78]
mov qword [rsp + 0x50], r14
cmp r14, r12
jb 0x140008260
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140008717
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008711
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400fb710
nop
mov rax, r13
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400fb6f0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140005370
nop
call fcn.1400052d0
int3
call fcn.140016d50
nop
call fcn.1400052d0
int3