Function at 0x140007490
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x140012050]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, rdx
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rbp - 0x29], r14d
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140007529
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x29]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
lea r9, [rbp - 0x29]
mov r8d, dword [rbp - 0x29]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400074e3
test eax, eax
js 0x1400075e6
mov ebx, r14d
cmp dword [rsi], ebx
jbe 0x1400075e6
nop dword [rax]
mov eax, ebx
imul rcx, rax, 0x128
lea r13, [rcx + rsi]
movzx edx, word [r13 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007572
lea rcx, [rbp - 1]
call fcn.1400065b0
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140007627
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1400075dc
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007620
call fcn.14000a0e4
inc ebx
cmp ebx, dword [rsi]
jb 0x140007540
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140009ba0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [r13 + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007641
lea rcx, [rbp - 0x21]
call fcn.1400065b0
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140007680
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400065b0
nop
mov r8d, 1
lea rdx, [0x14000cf04]
lea rcx, [rbp - 0x49]
call fcn.140005f60
mov rdi, rax
lea r15, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r15, qword [rbp - 0x21]
mov rax, qword [rbp - 0x11]
cmp rax, 0xc
jb 0x14000772f
lea r14, [rax + r15]
lea r8, [r14 - 0xb]
sub r8, r15
mov edx, 0x5c
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000772c
nop dword [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007798
inc rbx
lea r8, [r14 - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400076f0
xor r14d, r14d
mov rbx, 0xffffffffffffffff
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140007744
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140007880
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x1400077a5
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400077a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400077a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rbx, r15
xor r14d, r14d
jmp 0x140007736
call fcn.14000a0e4
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov rdi, qword [r13 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rax, rbx
lea rbx, [rax + rdi]
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140007828
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007823
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007823
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a0e4
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140007876
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007871
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007871
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a0e4
mov rax, rbx
jmp 0x1400075f9