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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140012080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
mov qword [rbp - 0x11], rcx
xor r12d, r12d
mov dword [rbp - 9], r12d
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140007ed8
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 9]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
lea r9, [rbp - 9]
mov r8d, dword [rbp - 9]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140007e90
test eax, eax
js 0x140008285
xor eax, eax
mov dword [rbp - 0x39], eax
cmp dword [r12], eax
jbe 0x140008285
nop
imul rax, rax, 0x128
add rax, r12
mov qword [rbp - 1], rax
lea rdx, [rax + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], 0
mov qword [rbp + 0x27], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007f20
lea rcx, [rbp + 0xf]
call fcn.1400065a0
nop
lea rdi, [rbp + 0xf]
mov rsi, qword [rbp + 0xf]
mov r14, qword [rbp + 0x27]
cmp r14, 0xf
cmova rdi, rsi
mov r15, qword [rbp + 0x1f]
cmp r15, 0xc
jb 0x140007fa8
lea rbx, [r15 + rdi]
lea r8, [rbx - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140007fa8
nop
movabs rcx, 0x526d65747379535c
cmp qword [rax], rcx
jne 0x140007f8c
cmp dword [rax + 8], 0x5c746f6f
je 0x14000800d
inc rax
lea r8, [rbx - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140007f70
lea rbx, [rbp + 0xf]
cmp r14, 0xf
cmova rbx, rsi
cmp r15, 4
jb 0x1400081f9
lea rdi, [r15 + rbx]
lea r8, [rdi - 3]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400081f9
nop
cmp dword [rax], 0x5c3f3f5c
je 0x140008161
inc rax
lea r8, [rdi - 3]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140007fe0
jmp 0x1400081f9
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140007fa8
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], 0
mov qword [rbp - 0x19], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140008041
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.1400065a0
nop
mov r8d, 1
lea rdx, [0x14000ce5c]
lea rcx, [rbp - 0x31]
call fcn.140005e70
mov rdi, rax
lea rsi, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rsi, qword [rbp + 0xf]
mov rax, qword [rbp + 0x1f]
cmp rax, 0xc
jb 0x1400080e8
lea rbx, [rax + rsi]
lea r8, [rbx - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400080e8
nop word [rax + rax]
movabs rcx, 0x526d65747379535c
cmp qword [rax], rcx
jne 0x1400080cc
cmp dword [rax + 8], 0x5c746f6f
je 0x14000815c
inc rax
lea r8, [rbx - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1400080b0
mov rax, 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400080fd
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140007870
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x1400081f1
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008152
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400082e9
call fcn.140009efc
jmp 0x1400081f1
sub rax, rsi
jmp 0x1400080ef
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x1400081f9
lea rdi, [rbp + 0xf]
cmp r14, 0xf
cmova rdi, rsi
lea rbx, [rdi + r15]
lea r8, [rbx - 3]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400081c8
nop word [rax + rax]
cmp dword [rax], 0x5c3f3f5c
je 0x1400082e1
inc rax
lea r8, [rbx - 3]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1400081a0
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
lea r9, [0x14000ce9c]
mov r8d, 4
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140007870
mov r14, qword [rbp + 0x27]
mov rsi, qword [rbp + 0xf]
lea rax, [rbp + 0xf]
cmp r14, 0xf
cmova rax, rsi
mov qword [rbp + 7], rax
mov rax, qword [rbp - 1]
add rax, 8
mov qword [rbp - 1], rax
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x140008359
mov rax, qword [rcx]
lea r8, [rbp + 7]
lea rdx, [rbp - 1]
call qword [rax + 0x10]
test al, al
je 0x1400082f0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140008273
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000826e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008334
call fcn.140009efc
mov eax, dword [rbp - 0x39]
inc eax
mov dword [rbp - 0x39], eax
cmp eax, dword [r12]
jb 0x140007ef0
mov r8d, 0x8000
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x1400082b4
cmp rcx, r13
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [r13 + 0x38], 0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140009b40
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rax, rdi
jmp 0x1400081cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140008340
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000833b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000833b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009efc
mov qword [rbp + 0x1f], 0
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
jmp 0x140008297
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3