Function at 0x140007100
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 r13, rdx
mov r14, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rbp - 0x29], r15d
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 0x140007199
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 0x140007153
test eax, eax
js 0x140007264
mov ebx, r15d
cmp dword [rsi], r15d
jbe 0x140007264
nop dword [rax]
mov r12d, ebx
imul rcx, r12, 0x128
lea rdi, [rcx + rsi]
movzx eax, word [rdi + 0x2e]
add rax, rcx
lea rdx, [rsi + 0x30]
add rdx, rax
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400071f0
lea rcx, [rbp - 1]
call fcn.140005c00
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400072a5
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x14000725a
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000729e
call fcn.140009eb4
inc ebx
cmp ebx, dword [rsi]
jb 0x1400071b0
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.140009970
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, [rdi + 0x30]
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400072c4
lea rcx, [rbp - 0x21]
call fcn.140005c00
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], 0xf
mov byte [rbp - 0x49], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140007300
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140005c00
nop
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000734c
lea rax, [rcx + 1]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x49]
mov word [rax + rcx], 0x5c
lea rdi, [rbp - 0x49]
jmp 0x14000736d
mov qword [rsp + 0x20], 1
lea r9, [0x14000ced4]
mov edx, 1
lea rcx, [rbp - 0x49]
call fcn.1400067e0
mov rdi, rax
lea r14, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r14, qword [rbp - 0x21]
mov rax, qword [rbp - 0x11]
cmp rax, 0xc
jb 0x1400073ef
lea r15, [rax + r14]
lea r8, [r15 - 0xb]
sub r8, r14
mov edx, 0x5c
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400073ec
nop word [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007458
inc rbx
lea r8, [r15 - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400073b0
xor r15d, r15d
mov rbx, 0xffffffffffffffff
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140007404
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8d, 0xc
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.1400078d0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x140007465
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007460
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007460
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rbx, r14
xor r15d, r15d
jmp 0x1400073f6
call fcn.140009eb4
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
imul rcx, r12, 0x128
mov rdi, qword [rcx + rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
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 0x1400074f0
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400074eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009eb4
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x14000753e
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009eb4
mov rax, rbx
jmp 0x140007277