Function at 0x14006a150
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x14008f240]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r9
mov qword [rbp - 0x79], r9
mov r14, r8
mov qword [rbp - 0x49], r8
mov rsi, rdx
mov qword [rbp - 0x39], rdx
mov ecx, dword [0x14008fb60]
mov rax, qword gs:[0x58]
mov edx, 4
mov rdi, qword [rax + rcx*8]
add rdi, rdx
mov qword [rsp + 0x38], rdi
mov eax, dword [rdi]
cmp dword [0x14008fac0], eax
jg 0x14006a4b7
mov rbx, qword [0x14008fab8]
mov eax, dword [rdi]
cmp dword [0x14008faf0], eax
jg 0x14006a7ee
lea rcx, [0x14008f1c0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14006a83c
cmp dword [0x14008f20c], 0x7fffffff
je 0x14006a31e
mov dword [rbp - 0x79], 0x25ff
mov word [rbp - 0x75], ax
mov qword [rbp - 0x73], rbx
mov rcx, qword [0x14008fa00]
nop
mov r8d, 0xe
lea rdx, [rbp - 0x49]
call fcn.140064c50
mov rcx, qword [0x14008fa00]
nop
mov r8d, 0xe
lea rdx, [rbp - 0x79]
call fcn.1400670f0
mov rax, qword [0x14008fae8]
mov r8, r15
mov rdx, r14
mov rcx, rsi
call rax
mov rbx, rax
mov rcx, qword [0x14008fa00]
nop
mov r8d, 0xe
lea rdx, [rbp - 0x49]
call fcn.1400670f0
lea rcx, [0x14008f1c0]
call sub.MSVCP140.dll__Mtx_unlock
test rbx, rbx
setne al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14006bf70
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
inc r8
cmp byte [rdx + r8], 0
je 0x14006a333
jmp 0x14006a2a0
inc r8
cmp byte [rdx + r8], 0
je 0x14006a37f
jmp 0x14006a2b0
inc r8
cmp byte [rax + r8], 0
je 0x14006a3b1
jmp 0x14006a2c0
movabs rcx, 0x526d65747379535c
cmp qword [rax], rcx
jne 0x14006a609
cmp dword [rax + 8], 0x5c746f6f
je 0x14006a3fa
jmp 0x14006a609
movzx ecx, byte [r14 + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x14006a71e
cmp rax, 7
je 0x14006a409
jmp 0x14006a300
mov dword [0x14008f20c], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rbp - 9]
call fcn.1400147a0
nop
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
lea rdx, [0x14007cfe8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14006a769
lea rdx, [r13 + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov r8, 0xffffffffffffffff
jmp 0x14006a2b0
lea rcx, [rbp - 0x29]
call fcn.1400147a0
nop
lea rcx, [0x14007d750]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
mov r8, 0xffffffffffffffff
jmp 0x14006a2c0
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.1400147a0
nop
mov rcx, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x51]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14006a5aa
lea rax, [rcx + 1]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x69]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x69]
mov word [rax + rcx], 0x5c
lea rsi, [rbp - 0x69]
jmp 0x14006a5cf
sub rax, rdi
lea r14, [0x140083e10]
jmp 0x14006a637
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov ebx, dword [rdi + rcx*4]
add rbx, qword [r13 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14006a464
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a45f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a90f
call fcn.14006bce4
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14006a4af
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a4aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a965
call fcn.14006bce4
mov r15, rbx
jmp 0x14006a7c5
lea rcx, [0x14008fac0]
call fcn.14006c278
cmp dword [0x14008fac0], 0xffffffff
jne 0x14006a1bd
xor r15d, r15d
mov r12d, r15d
mov dword [rbp - 0x31], r15d
lea r9, [rbp - 0x31]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14006a53b
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x31]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
lea r9, [rbp - 0x31]
mov r8d, dword [rbp - 0x31]
mov rdx, rax
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x14006a4f4
test eax, eax
jns 0x14006a555
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14006a7ca
mov edi, r15d
mov dword [rsp + 0x34], r15d
cmp dword [r12], r15d
jbe 0x14006a7b4
lea r14, [0x140083e10]
movzx ebx, byte [rsp + 0x30]
mov eax, edi
imul rcx, rax, 0x128
lea r13, [rcx + r12]
movzx edx, word [r13 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r12
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov r8, 0xffffffffffffffff
jmp 0x14006a2a0
mov qword [rsp + 0x20], 1
lea r9, [0x14007d75c]
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 0x69]
call fcn.140055200
mov rsi, rax
lea rdi, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdi, qword [rbp - 0x29]
mov rax, qword [rbp - 0x19]
cmp rax, 0xc
jb 0x14006a630
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 0x14006a629
jmp 0x14006a2d0
inc rax
lea r8, [r14 - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14006a2d0
lea r14, [0x140083e10]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14006a645
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rcx
mov r9, rsi
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140068e20
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14006a69b
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a847
call fcn.14006bce4
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rcx, qword [rbp - 0x29]
xor edx, edx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x14006a8dd
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rcx + r10], 0x4550
jne 0x14006a84e
mov edx, dword [rcx + r10 + 0x88]
test edx, edx
je 0x14006a84e
mov r11d, dword [rdx + r10 + 0x1c]
lea rdi, [r10 + r11]
mov r8d, dword [rdx + r10 + 0x20]
add r8, r10
mov esi, dword [rdx + r10 + 0x24]
add rsi, r10
mov r9d, r15d
test r11d, r11d
je 0x14006a72a
nop dword [rax]
mov edx, dword [r8]
add rdx, r10
mov rax, r15
jmp 0x14006a300
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x14006a710
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14006a765
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a760
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a90f
call fcn.14006bce4
mov edi, dword [rsp + 0x34]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14006a7a4
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a79f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a96c
call fcn.14006bce4
inc edi
mov dword [rsp + 0x34], edi
cmp edi, dword [r12]
jb 0x14006a573
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x38]
mov qword [0x14008fab8], r15
lea rcx, [0x14008fac0]
call fcn.14006c20c
mov rsi, qword [rbp - 0x39]
mov r14, qword [rbp - 0x49]
mov r15, qword [rbp - 0x79]
jmp 0x14006a1bd
lea rcx, [0x14008faf0]
call fcn.14006c278
cmp dword [0x14008faf0], 0xffffffff
jne 0x14006a1d2
lea rcx, [0x140075e40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008fae8], rax
lea rcx, [0x14008faf0]
call fcn.14006c20c
jmp 0x14006a1d2
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14006a889
inc rdx
mov rcx, qword [rbp - 0x29]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14006a884
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a90f
call fcn.14006bce4
mov byte [rbp - 0x29], 0
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], r15
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14006a7c5
inc rdx
mov rcx, qword [rbp - 9]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14006a8d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a965
call fcn.14006bce4
jmp 0x14006a7c5
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14006a91b
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a916
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a916
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006bce4
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14006a7c5
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a8d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a8d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3