Function at 0x140007480
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 [0x140012080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, rdx
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rbp - 0x29], r14d
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000751d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x29]
xor ecx, ecx
mov r9d, 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 0x1400074d5
test eax, eax
js 0x1400075d6
mov ebx, r14d
cmp dword [rsi], ebx
jbe 0x1400075d6
mov eax, ebx
imul rcx, rax, 0x128
lea r15, [rcx + rsi]
movzx edx, word [r15 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007562
lea rcx, [rbp - 1]
call fcn.1400065a0
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140007617
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x1400075cc
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007610
call fcn.140009efc
inc ebx
cmp ebx, dword [rsi]
jb 0x140007530
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.140009b40
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, [r15 + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140007631
lea rcx, [rbp - 0x21]
call fcn.1400065a0
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140007670
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400065a0
nop
mov r8d, 1
lea rdx, [0x14000ce5c]
lea rcx, [rbp - 0x49]
call fcn.140005e70
mov rbx, rax
lea rdi, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdi, qword [rbp - 0x21]
mov rax, qword [rbp - 0x11]
cmp rax, 0xc
jb 0x140007711
lea r14, [rax + rdi]
lea r8, [r14 - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14000770e
movabs r13, 0x526d65747379535c
nop
cmp qword [rax], r13
jne 0x1400076f2
cmp dword [rax + 8], 0x5c746f6f
je 0x14000777a
inc rax
lea r8, [r14 - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1400076e0
xor r14d, r14d
mov rax, 0xffffffffffffffff
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140007726
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140007870
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140007787
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007782
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007782
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rax, rdi
xor r14d, r14d
jmp 0x140007718
call fcn.140009efc
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rcx, qword [rbp - 0x21]
xor edx, edx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov rdi, qword [r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rax, rbx
lea rbx, [rax + rdi]
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14000780c
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007807
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009efc
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000785a
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007855
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007855
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009efc
mov rax, rbx
jmp 0x1400075e9