Function at 0x14000dde0
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, 0xd0
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, r9
mov qword [rbp - 0x71], r9
mov rsi, r8
mov qword [rbp - 0x41], r8
mov rdi, rdx
mov qword [rbp - 0x31], rdx
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov qword [rbp - 0x79], r12
xor r15d, r15d
mov eax, dword [r12]
cmp dword [0x140029a4c], eax
jle 0x14000e32b
lea rcx, [0x140029a4c]
call fcn.140010760
cmp dword [0x140029a4c], 0xffffffff
jne 0x14000e32b
xor esi, esi
mov r15d, esi
mov dword [rbp - 0x29], esi
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000dec8
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
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 r15, 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 0x14000de82
test eax, eax
jns 0x14000dee2
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000e306
mov r12d, esi
cmp dword [r15], esi
jbe 0x14000e2f1
mov edi, 0x5a4d
nop dword [rax]
nop word [rax + rax]
mov eax, r12d
imul rcx, rax, 0x128
lea r13, [rcx + r15]
movzx edx, word [r13 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r15
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000df33
lea rcx, [rbp - 1]
call fcn.140002750
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
lea rdx, [0x1400129f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000e2aa
lea rdx, [r13 + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000df84
lea rcx, [rbp - 0x21]
call fcn.140002750
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 - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rsi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000dfc0
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140002750
nop
mov r8d, 1
lea rdx, [0x14001289c]
lea rcx, [rbp - 0x61]
call fcn.140002620
mov rsi, rax
lea r14, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r14, qword [rbp - 0x21]
mov rax, qword [rbp - 0x11]
cmp rax, 0xc
jb 0x14000e071
lea rdi, [rax + r14]
lea r8, [rdi - 0xb]
sub r8, r14
mov edx, 0x5c
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000e06c
nop dword [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000e23d
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 0x14000e030
mov edi, 0x5a4d
mov rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14000e086
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140002470
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14000e0d6
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e0d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e427
call fcn.140010400
xor esi, esi
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], 0xf
mov byte [rbp - 0x61], sil
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rcx, qword [rbp - 0x21]
xor edx, edx
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
cmp word [rax], di
jne 0x14000e4b9
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x14000e42e
mov edx, dword [rcx + rax + 0x88]
test edx, edx
je 0x14000e42e
mov r11d, dword [rdx + rax + 0x1c]
lea rbx, [rax + r11]
mov r8d, dword [rdx + rax + 0x20]
add r8, rax
mov edi, dword [rdx + rax + 0x24]
add rdi, rax
mov r9d, esi
test r11d, r11d
je 0x14000e25a
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8]
add rdx, r10
mov rax, rsi
nop dword [rax]
lea rcx, [0x14001fc48]
movzx ecx, byte [rcx + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x14000e24a
cmp rax, 7
jne 0x14000e170
movsxd rax, r9d
movzx ecx, word [rdi + rax*2]
mov ebx, dword [rbx + rcx*4]
add rbx, qword [r13 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14000e1e9
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e1e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4ef
call fcn.140010400
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e234
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e22f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4f6
call fcn.140010400
mov r12, qword [rbp - 0x79]
jmp 0x14000e309
sub rbx, r14
mov edi, 0x5a4d
jmp 0x14000e078
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x14000e160
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14000e295
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e290
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4ef
call fcn.140010400
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov edi, 0x5a4d
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e2e5
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e2e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4f6
call fcn.140010400
inc r12d
cmp r12d, dword [r15]
jb 0x14000df00
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r12, qword [rbp - 0x79]
mov rbx, rsi
mov qword [0x140029a70], rbx
lea rcx, [0x140029a4c]
call fcn.1400106f4
mov rdi, qword [rbp - 0x31]
mov rsi, qword [rbp - 0x41]
mov r14, qword [rbp - 0x71]
xor r15d, r15d
mov rbx, qword [0x140029a70]
mov eax, dword [r12]
cmp dword [0x140029820], eax
jle 0x14000e383
lea rcx, [0x140029820]
call fcn.140010760
cmp dword [0x140029820], 0xffffffff
jne 0x14000e383
lea rcx, [0x140012be8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140029a38], rax
lea rcx, [0x140029820]
call fcn.1400106f4
mov eax, dword [r12]
cmp dword [0x140029798], eax
jle 0x14000e406
lea rcx, [0x140029798]
call fcn.140010760
cmp dword [0x140029798], 0xffffffff
jne 0x14000e406
mov dword [0x140029a80], r15d
mov qword [0x140029a88], r15
mov qword [0x140029a90], r15
xorps xmm0, xmm0
movups xmmword [0x140029a98], xmm0
movups xmmword [0x140029aa8], xmm0
movups xmmword [0x140029ab8], xmm0
mov qword [0x140029ac8], 0
mov edx, 2
lea rcx, [0x140029a80]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140011d80]
call fcn.14001066c
lea rcx, [0x140029798]
call fcn.1400106f4
lea rcx, [0x140029a80]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000e4fd
mov ecx, 5
call qword [sym.imp.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 - 9]
cmp rdx, 0xf
jbe 0x14000e469
inc rdx
mov rcx, qword [rbp - 0x21]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000e464
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4ef
call fcn.140010400
mov byte [rbp - 0x21], 0
mov qword [rbp - 9], 0xf
mov qword [rbp - 0x11], rsi
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e302
inc rdx
mov rcx, qword [rbp - 1]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000e4af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e4f6
call fcn.140010400
jmp 0x14000e302
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14000e469
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e464
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e464
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
cmp dword [0x140029acc], 0x7fffffff
jne 0x14000e51f
mov dword [0x140029acc], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp - 0x71], 0x25ff
mov word [rbp - 0x6d], 0
mov qword [rbp - 0x6b], rbx
mov rcx, qword [0x140029638]
mov r8d, 0xe
lea rdx, [rbp - 0x41]
call fcn.1400073b0
mov rcx, qword [0x140029638]
mov r8d, 0xe
lea rdx, [rbp - 0x71]
call fcn.140007550
mov rax, qword [0x140029a38]
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call rax
mov rbx, rax
mov rcx, qword [0x140029638]
mov r8d, 0xe
lea rdx, [rbp - 0x41]
call fcn.140007550
lea rcx, [0x140029a80]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
setne al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400103e0
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret