Function at 0x1400030d0
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 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, rdx
mov qword [rbp - 0x11], rdx
mov rdi, rcx
mov qword [rbp - 0x71], rcx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov qword [rbp - 0x39], rsi
mov eax, dword [rsi]
cmp dword [0x14001ad28], eax
jle 0x140003516
lea rcx, [0x14001ad28]
call fcn.140012308
cmp dword [0x14001ad28], 0xffffffff
jne 0x140003516
xor r14d, r14d
mov edi, r14d
mov qword [rbp - 0x79], r14
mov dword [rsp + 0x50], r14d
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400031bd
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x50]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140003170
mov qword [rbp - 0x79], rdi
test eax, eax
jns 0x1400031d7
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400034fb
mov esi, r14d
mov dword [rsp + 0x58], r14d
cmp dword [rdi], r14d
jbe 0x1400034e6
mov r15d, 0x5a4d
nop
mov eax, esi
imul rcx, rax, 0x128
lea rbx, [rcx + rdi]
movzx eax, word [rbx + 0x2e]
add rax, rcx
lea rdx, [rdi + 0x30]
add rdx, rax
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140003226
lea rcx, [rbp - 0x31]
call fcn.14000e8b0
nop
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000349d
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], al
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003280
lea rcx, [rbp - 0x59]
call fcn.14000e8b0
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400032c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000e8b0
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140003313
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x5c
lea rbx, [rsp + 0x30]
jmp 0x140003335
mov qword [rsp + 0x20], 1
lea r9, [0x14001499c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000fb80
mov rbx, rax
lea rcx, [rbp - 0x59]
call fcn.14000de80
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000334c
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14000e700
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000339e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003399
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400035d3
call fcn.14001214c
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0x10
cmovae rcx, qword [rbp - 0x59]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r15w
jne 0x140003726
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000369b
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000369b
mov r15d, dword [rcx + rsi + 0x1c]
lea r12, [rsi + r15]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov r13d, dword [rcx + rsi + 0x24]
add r13, rsi
mov edi, r14d
test r15d, r15d
je 0x140003444
nop dword [rax + rax]
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.ExAllocatePoolWithTag
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400035da
inc edi
add rbx, 4
cmp edi, r15d
jb 0x140003420
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x14000347f
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000347a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000375c
call fcn.14001214c
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], 0
mov rdi, qword [rbp - 0x79]
mov esi, dword [rsp + 0x58]
mov r15d, 0x5a4d
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400034d8
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003763
call fcn.14001214c
inc esi
mov dword [rsp + 0x58], esi
cmp esi, dword [rdi]
jb 0x1400031f0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rbp - 0x39]
mov qword [0x14001ad90], r14
lea rcx, [0x14001ad28]
call fcn.1400122a8
mov rdi, qword [rbp - 0x71]
mov r14, qword [rbp - 0x11]
mov rbx, qword [0x14001ad90]
mov eax, dword [rsi]
cmp dword [0x14001ad24], eax
jle 0x14000356c
lea rcx, [0x14001ad24]
call fcn.140012308
cmp dword [0x14001ad24], 0xffffffff
jne 0x14000356c
lea rcx, [0x1400149e0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001aea8], rax
lea rcx, [0x14001ad24]
call fcn.1400122a8
mov eax, dword [rsi]
cmp dword [0x14001ad9c], eax
jle 0x1400035b5
lea rcx, [0x14001ad9c]
call fcn.140012308
cmp dword [0x14001ad9c], 0xffffffff
jne 0x1400035b5
mov edx, 2
lea rcx, [0x14001add0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140013ec0]
call fcn.140012650
lea rcx, [0x14001ad9c]
call fcn.1400122a8
lea rcx, [0x14001add0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000376a
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rax, edi
movzx ecx, word [r13 + rax*2]
mov ebx, dword [r12 + rcx*4]
mov eax, dword [rsp + 0x58]
imul rcx, rax, 0x128
mov rax, qword [rbp - 0x79]
add rbx, qword [rcx + rax + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x140003648
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003643
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000375c
call fcn.14001214c
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140003693
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000368e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003763
call fcn.14001214c
mov r14, rbx
jmp 0x1400034f7
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x1400036d6
inc rdx
mov rcx, qword [rbp - 0x59]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400036d1
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000375c
call fcn.14001214c
mov byte [rbp - 0x59], 0
mov qword [rbp - 0x41], 0xf
mov qword [rbp - 0x49], r14
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400034f7
inc rdx
mov rcx, qword [rbp - 0x31]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000371c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003763
call fcn.14001214c
jmp 0x1400034f7
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x1400036d6
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp - 1], 0x25ff
mov word [rbp + 3], 0
mov qword [rbp + 5], rbx
mov rax, qword [0x14001ae20]
mov qword [rbp - 0x11], 0xe
lea rcx, [rbp + 0xf]
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x79], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x1400037a6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x11]
lea r8, [rbp - 0x71]
lea rdx, [rbp - 0x79]
call qword [rax + 0x10]
mov rax, qword [0x14001ae20]
mov qword [rbp - 0x39], 0xe
lea rcx, [rbp - 1]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x1400037e5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x39]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [rax + 0x10]
mov rax, qword [0x14001aea8]
mov r8d, 0x62346c6c
mov rdx, r14
xor ecx, ecx
call rax
mov rbx, rax
mov rcx, qword [0x14001ae20]
mov qword [rbp - 9], 0xe
lea rax, [rbp + 0xf]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rcx
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x14000383b
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 9]
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
call qword [rax + 0x10]
lea rcx, [0x14001add0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, rbx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400120f0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret