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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1402fe080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov rax, qword [0x1402ff990]
test rax, rax
jne 0x14007315f
xor edx, edx
mov r8d, 1
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140300f20], rax
mov r13d, r15d
mov dword [rbp - 0x51], r15d
lea r9, [rbp - 0x51]
xor r8d, r8d
xor edx, edx
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140072a28
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x51]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
lea r9, [rbp - 0x51]
mov r8d, dword [rbp - 0x51]
mov rdx, rax
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400729e0
test eax, eax
js 0x140072d2f
mov edi, r15d
mov dword [rbp - 0x79], r15d
cmp dword [r13], r15d
jbe 0x140072d2f
movabs r14, 0x526d65747379535c
mov r12d, 0x5a4d
mov eax, edi
imul rcx, rax, 0x128
lea rbx, [rcx + r13]
movzx edx, word [rbx + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r13
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140072a82
lea rcx, [rbp - 9]
call fcn.140031e50
nop
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140072ce5
lea rdx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140072ad3
lea rcx, [rbp - 0x49]
call fcn.140031e50
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 - 0x71], xmm0
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140072b10
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.140031e50
nop
mov r8d, 1
lea rdx, [0x1402ebaa4]
lea rcx, [rbp - 0x71]
call fcn.14006db90
mov rdi, rax
lea rsi, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rsi, qword [rbp - 0x49]
mov rax, qword [rbp - 0x39]
cmp rax, 0xc
jb 0x140072ba3
lea rbx, [rax + rsi]
lea r8, [rbx - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140072ba3
cmp qword [rax], r14
jne 0x140072b87
cmp dword [rax + 8], 0x5c746f6f
je 0x140072e1b
inc rax
lea r8, [rbx - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140072b75
mov rax, 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140072bb8
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140071960
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 0xf
jbe 0x140072c08
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072c03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072e23
call fcn.1400d6a14
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rcx, qword [rbp - 0x49]
xor edx, edx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r12w
jne 0x140072f69
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140072eda
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x140072eda
mov r14d, dword [rcx + rsi + 0x1c]
lea r15, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov r12d, dword [rcx + rsi + 0x24]
add r12, rsi
xor edi, edi
test r14d, r14d
je 0x140072c94
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.NtShutdownSystem
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140072e2a
inc edi
add rbx, 4
cmp edi, r14d
jb 0x140072c70
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140072ccf
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072cca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072f9b
call fcn.1400d6a14
mov r12d, 0x5a4d
movabs r14, 0x526d65747379535c
xor r15d, r15d
mov edi, dword [rbp - 0x79]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140072d20
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072d1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072ff8
call fcn.1400d6a14
inc edi
mov dword [rbp - 0x79], edi
cmp edi, dword [r13]
jb 0x140072a51
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r15d
mov dword [0x140300f1c], ebx
mov eax, 0xfff
and bx, ax
mov word [0x140300f18], bx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov qword [rbp - 0x11], r15
mov rbx, qword [0x140300ee0]
mov rbx, qword [rbx]
mov rsi, qword [rbp - 0x29]
cmp byte [rbx + 0x19], 0
jne 0x140073083
lea r14, [0x1400740a0]
nop dword [rax]
nop word [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400d69d0
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140074570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140073073
mov rdx, qword [rbp - 0x19]
cmp rdx, qword [rbp - 0x11]
je 0x140072fff
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp - 0x19]
add rdi, 0x10
mov qword [rbp - 0x19], rdi
jmp 0x140073010
sub rax, rsi
jmp 0x140072baa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rax, edi
movzx ecx, word [r12 + rax*2]
mov ebx, dword [r15 + rcx*4]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140072e83
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072e7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072f9b
call fcn.1400d6a14
xor r15d, r15d
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x49], r15b
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140072d43
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072ed0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072ff1
call fcn.1400d6a14
jmp 0x140072d43
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140072f15
inc rdx
mov rcx, qword [rbp - 0x49]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140072f10
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072f9b
call fcn.1400d6a14
mov byte [rbp - 0x49], 0
mov qword [rbp - 0x31], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x39], r15
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140072d40
inc rdx
mov rcx, qword [rbp - 9]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140072f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072ff1
call fcn.1400d6a14
jmp 0x140072d40
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140072fa7
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072fa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140072fa2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140072d40
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140072f5f
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]
nop
lea r8, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.140074340
mov rdi, qword [rbp - 0x19]
cmp dword [rbp - 0x41], 0
jne 0x14007306c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140073048
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140073043
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140073043
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140073030
mov rbx, rax
jmp 0x140073060
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140073060
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140073054
cmp byte [rbx + 0x19], 0
je 0x140072d90
jmp 0x140073087
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x41], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x21]
cmp rbx, rdi
je 0x1400730d7
cmp dword [rbx + 8], 0
je 0x140073142
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140073136
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14007312a
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140073090
mov rdi, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x140073162
mov rax, rbx
cmp rbx, rdi
je 0x1400730f7
cmp dword [rax + 8], 0
jne 0x14007314e
add rax, 0x10
cmp rax, rdi
jne 0x1400730e8
mov rdx, qword [rbp - 0x11]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140073155
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140073155
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
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_terminate]
int3
mov rcx, rbx
call fcn.1400d6a14
jmp 0x140073162
mov rsi, rcx
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400d6710
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret