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, 0xb0
mov rax, qword [0x140012050]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x19], rcx
xor r13d, r13d
mov dword [rbp - 0x11], r13d
lea r9, [rbp - 0x11]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140007ed6
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x11]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
lea r9, [rbp - 0x11]
mov r8d, dword [rbp - 0x11]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140007e90
test eax, eax
js 0x1400082e4
xor eax, eax
mov dword [rbp - 0x49], eax
cmp dword [r13], eax
jbe 0x1400082e4
nop dword [rax]
imul rax, rax, 0x128
add rax, r13
mov qword [rbp - 9], rax
lea rdx, [rax + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], 0
mov qword [rbp + 0x1f], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007f20
lea rcx, [rbp + 7]
call fcn.1400065b0
nop
lea rsi, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
setae r12b
mov r15, qword [rbp + 7]
cmovae rsi, r15
mov r14, qword [rbp + 0x17]
cmp r14, 0xc
jb 0x140007fbc
lea rdi, [r14 + rsi]
lea r8, [rdi - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140007fbc
nop dword [rax]
nop word [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008020
inc rbx
lea r8, [rdi - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140007f80
lea rbx, [rbp + 7]
test r12b, r12b
cmovne rbx, r15
cmp r14, 4
jb 0x140008253
lea rdi, [r14 + rbx]
lea r8, [rdi - 3]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140008253
lea rsi, str.___
nop dword [rax]
xor edx, edx
movzx ecx, byte [rax + rdx]
inc rdx
cmp cl, byte [rsi + rdx - 1]
jne 0x140008175
cmp rdx, 4
jne 0x140008002
xor ecx, ecx
jmp 0x14000817a
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x140007fbc
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], 0
mov qword [rbp - 0x21], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140008054
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400065b0
nop
mov r8d, 1
lea rdx, [0x14000cf04]
lea rcx, [rbp - 0x39]
call fcn.140005f60
mov rsi, rax
lea r14, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r14, qword [rbp + 7]
mov rax, qword [rbp + 0x17]
cmp rax, 0xc
jb 0x1400080fc
lea rdi, [rax + r14]
lea r8, [rdi - 0xb]
sub r8, r14
mov edx, 0x5c
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400080fc
nop dword [rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008170
inc rbx
lea r8, [rdi - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400080c0
mov rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140008111
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140007880
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14000824f
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008166
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008348
call fcn.14000a0e4
jmp 0x14000824f
sub rbx, r14
jmp 0x140008103
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1400081a3
inc rax
lea r8, [rdi - 3]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140008000
jmp 0x140008253
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x140008253
lea rdi, [rbp + 7]
test r12b, r12b
cmovne rdi, r15
lea rbx, [r14 + rdi]
lea r8, [rbx - 3]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov r10, rax
test rax, rax
je 0x140008226
nop dword [rax + rax]
xor eax, eax
movzx ecx, byte [r10 + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x1400081fa
cmp rax, 4
jne 0x1400081e2
xor eax, eax
jmp 0x1400081ff
sbb eax, eax
or eax, 1
test eax, eax
je 0x140008340
inc r10
lea r8, [rbx - 3]
sub r8, r10
mov edx, 0x5c
mov rcx, r10
call sub.VCRUNTIME140.dll_memchr
mov r10, rax
test rax, rax
jne 0x1400081e0
mov r10, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
lea r9, [0x14000c943]
mov r8d, 4
mov rdx, r10
lea rcx, [rbp + 7]
call fcn.140007880
mov r15, qword [rbp + 7]
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, r15
mov qword [rbp - 1], rax
mov rax, qword [rbp - 9]
add rax, 8
mov qword [rbp - 9], rax
mov rbx, qword [rbp - 0x41]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400083b8
mov rax, qword [rcx]
lea r8, [rbp - 1]
lea rdx, [rbp - 9]
call qword [rax + 0x10]
test al, al
je 0x14000834f
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400082d2
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400082cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008393
call fcn.14000a0e4
mov eax, dword [rbp - 0x49]
inc eax
mov dword [rbp - 0x49], eax
cmp eax, dword [r13]
jb 0x140007ef0
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008313
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140009ba0
lea r11, [rsp + 0xb0]
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 r10, rdi
jmp 0x14000822d
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, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14000839f
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000839a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000839a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a0e4
mov qword [rbp + 0x17], 0
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
jmp 0x1400082f6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3