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 - 0x21], 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 0x140008337
xor eax, eax
mov dword [rbp - 0x49], eax
cmp dword [r13], eax
jbe 0x140008337
nop dword [rax]
imul rax, rax, 0x128
add rax, r13
mov qword [rbp - 9], rax
lea rdx, [rax + 0x30]
mov qword [rbp + 7], 0
mov qword [rbp + 0x17], 0
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007f25
lea rcx, [rbp + 7]
call fcn.140005c00
nop
lea rsi, [rbp + 7]
mov r14, qword [rbp + 7]
mov r15, qword [rbp + 0x1f]
cmp r15, 0x10
cmovae rsi, r14
mov r12, qword [rbp + 0x17]
cmp r12, 0xc
jb 0x140007fbc
lea rdi, [r12 + 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 word [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000804c
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
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x140008165
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x41], 0
mov qword [rbp - 0x31], 0
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140008000
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140005c00
nop
mov rcx, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x29]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140008054
lea rax, [rcx + 1]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x41]
mov word [rax + rcx], 0x5c
lea rsi, [rbp - 0x41]
jmp 0x140008075
sub rbx, rsi
jmp 0x140007fc3
mov qword [rsp + 0x20], 1
lea r9, [0x14000ced4]
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.1400067e0
mov rsi, rax
lea rdi, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdi, qword [rbp + 7]
mov rax, qword [rbp + 0x17]
cmp rax, 0xc
jb 0x1400080ec
lea r14, [rax + rdi]
lea r8, [r14 - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400080ec
nop dword [rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008160
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 0x1400080b0
mov rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140008101
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.1400078d0
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14000829f
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008156
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000839b
call fcn.140009eb4
jmp 0x14000829f
sub rbx, rdi
jmp 0x1400080f3
lea rbx, [rbp + 7]
cmp r15, 0x10
cmovae rbx, r14
cmp r12, 4
jb 0x1400082a7
lea rdi, [r12 + rbx]
lea r8, [rdi - 3]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x1400082a7
lea rsi, str.___
nop word [rax + rax]
xor edx, edx
movzx ecx, byte [r9 + rdx]
inc rdx
cmp cl, byte [rsi + rdx - 1]
jne 0x1400081ca
cmp rdx, 4
jne 0x1400081b2
xor eax, eax
jmp 0x1400081cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400081f7
inc r9
lea r8, [rdi - 3]
sub r8, r9
mov edx, 0x5c
mov rcx, r9
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
jne 0x1400081b0
jmp 0x1400082a7
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x1400082a7
lea rdi, [rbp + 7]
cmp r15, 0x10
cmovae rdi, r14
lea rbx, [r12 + 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 0x140008276
xor eax, eax
movzx ecx, byte [r10 + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x14000824a
cmp rax, 4
jne 0x140008232
xor eax, eax
jmp 0x14000824f
sbb eax, eax
or eax, 1
test eax, eax
je 0x140008393
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 0x140008230
mov r10, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
lea r9, [0x14000c8fb]
mov r8d, 4
mov rdx, r10
lea rcx, [rbp + 7]
call fcn.1400078d0
mov r15, qword [rbp + 0x1f]
mov r14, qword [rbp + 7]
lea rax, [rbp + 7]
cmp r15, 0x10
cmovae rax, r14
mov qword [rbp - 1], rax
mov rax, qword [rbp - 9]
add rax, 8
mov qword [rbp - 9], rax
mov rbx, qword [rbp - 0x21]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000840b
mov rax, qword [rcx]
lea r8, [rbp - 1]
lea rdx, [rbp - 9]
call qword [rax + 0x10]
test al, al
je 0x1400083a2
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140008325
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400083e6
call fcn.140009eb4
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 0x140008366
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.140009970
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 0x14000827d
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 0x1400083f2
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009eb4
mov qword [rbp + 0x17], 0
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
jmp 0x140008349
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3