Function at 0x140007d10
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 0x140007db6
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 0x140007d70
test eax, eax
js 0x140008217
xor eax, eax
mov dword [rbp - 0x49], eax
cmp dword [r13], eax
jbe 0x140008217
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 0x140007e05
lea rcx, [rbp + 7]
call fcn.140005b20
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 0x140007e9c
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 0x140007e9c
nop word [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007f2c
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 0x140007e60
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x140008045
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 0x140007ee0
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140005b20
nop
mov rcx, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x29]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140007f34
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 0x140007f55
sub rbx, rsi
jmp 0x140007ea3
mov qword [rsp + 0x20], 1
lea r9, [0x14000cda4]
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.140006700
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 0x140007fcc
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 0x140007fcc
nop dword [rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140008040
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 0x140007f90
mov rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140007fe1
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.1400077b0
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14000817f
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008036
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000827b
call fcn.140009cb4
jmp 0x14000817f
sub rbx, rdi
jmp 0x140007fd3
lea rbx, [rbp + 7]
cmp r15, 0x10
cmovae rbx, r14
cmp r12, 4
jb 0x140008187
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 0x140008187
lea rsi, str.___
nop word [rax + rax]
xor edx, edx
movzx ecx, byte [r9 + rdx]
inc rdx
cmp cl, byte [rsi + rdx - 1]
jne 0x1400080aa
cmp rdx, 4
jne 0x140008092
xor eax, eax
jmp 0x1400080af
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400080d7
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 0x140008090
jmp 0x140008187
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x140008187
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 0x140008156
xor eax, eax
movzx ecx, byte [r10 + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x14000812a
cmp rax, 4
jne 0x140008112
xor eax, eax
jmp 0x14000812f
sbb eax, eax
or eax, 1
test eax, eax
je 0x140008273
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 0x140008110
mov r10, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
lea r9, [0x14000c8db]
mov r8d, 4
mov rdx, r10
lea rcx, [rbp + 7]
call fcn.1400077b0
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 0x1400082eb
mov rax, qword [rcx]
lea r8, [rbp - 1]
lea rdx, [rbp - 9]
call qword [rax + 0x10]
test al, al
je 0x140008282
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140008205
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008200
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400082c6
call fcn.140009cb4
mov eax, dword [rbp - 0x49]
inc eax
mov dword [rbp - 0x49], eax
cmp eax, dword [r13]
jb 0x140007dd0
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 0x140008246
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.140009770
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 0x14000815d
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 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
jbe 0x1400082cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009cb4
mov qword [rbp + 0x17], 0
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
jmp 0x140008229
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3