Function at 0x1800014d0
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 qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
xor r14d, r14d
mov rbx, rcx
mov qword [rcx + 0x38], r14
mov rcx, qword [0x18005f578]
test rcx, rcx
je 0x180001511
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x78], r14
mov rcx, qword [0x18005f5b8]
test rcx, rcx
je 0x18000152e
mov rax, qword [rcx]
lea rdx, [rbx + 0x40]
call qword [rax]
mov qword [rbx + 0x78], rax
mov rax, qword [0x18005f8d0]
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xe0], r12
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xd0], r15
movaps xmmword [rsp + 0xc0], xmm6
test rax, rax
jne 0x180001c6f
xor edx, edx
lea r8d, [rax + 1]
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor edx, edx
mov dword [rbp + 0x77], r14d
lea r9, [rbp + 0x77]
mov qword [0x18005fb10], rax
xor r8d, r8d
mov r13, r14
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1800015f6
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x77]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x77]
lea r9, [rbp + 0x77]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1800015b0
test eax, eax
js 0x1800018f5
mov edi, r14d
mov dword [rbp + 0x6f], r14d
cmp dword [r13], r14d
jbe 0x1800018f5
mov r15d, 0x5a4d
nop word [rax + rax]
mov eax, edi
lea rdx, [r13 + 0x30]
imul rcx, rax, 0x128
movzx eax, word [rcx + r13 + 0x2e]
mov r8, 0xffffffffffffffff
add rax, rcx
mov qword [rbp - 0x31], r14
add rdx, rax
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], recv
lea rbx, [rcx + r13]
inc r8
cmp byte [rdx + r8], 0
jne 0x180001654
lea rcx, [rbp - 0x31]
call fcn.1800028b0
cmp qword [rbp - 0x19], 0x10
lea rcx, [rbp - 0x31]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800018ab
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x69], r14
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x61], recv
inc r8
cmp byte [rdx + r8], 0
jne 0x1800016a5
lea rcx, [rbp - 0x79]
call fcn.1800028b0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], recv
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800016e0
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1800028b0
mov r8, qword [rbp + 7]
lea rcx, [rbp - 0x11]
mov rdx, qword [rbp - 1]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x180001734
lea rax, [rdx + 1]
cmp r8, 0x10
mov qword [rbp - 1], rax
lea rbx, [rbp - 0x11]
cmovae rcx, qword [rbp - 0x11]
movzx eax, byte [0x18004f88c]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x18000174a
mov edx, 1
mov qword [rsp + 0x20], 1
call fcn.180002f90
mov rbx, rax
lea rcx, [rbp - 0x79]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x180001761
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rbp - 0x79]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1800017b0
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800017ab
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
cmp qword [rbp - 0x61], 0x10
lea rcx, [rbp - 0x79]
mov qword [rbp - 1], r14
cmovae rcx, qword [rbp - 0x79]
xor edx, edx
mov qword [rbp + 7], recv
mov byte [rbp - 0x11], 0
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r15w
jne 0x180001a84
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x180001a84
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x180001a84
mov r14d, dword [rcx + rsi + 0x1c]
xor edi, edi
mov ebx, dword [rcx + rsi + 0x20]
mov r12d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r12, rsi
lea r15, [rsi + r14]
test r14d, r14d
je 0x180001854
nop word [rax + rax]
mov edx, dword [rbx]
lea rcx, str.NtShutdownSystem
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1800019d5
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180001830
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x18000188f
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000188a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
mov edi, dword [rbp + 0x6f]
xor r14d, r14d
mov qword [rbp - 0x69], r14
mov r15d, 0x5a4d
mov byte [rbp - 0x79], r14b
mov qword [rbp - 0x61], recv
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1800018e6
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800018e1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x6f], edi
cmp edi, dword [r13]
jb 0x180001620
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r14d
mov rsi, qword [rbp + 0x67]
mov eax, 0xfff
mov dword [0x18005fb0c], ebx
xorps xmm0, xmm0
and bx, ax
mov qword [rbp - 0x39], r14
mov word [0x18005fb08], bx
mov rbx, qword [0x18005fb18]
movdqu xmmword [rbp - 0x49], xmm0
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x180001b93
lea r15, [0x180002370]
nop dword [rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.18004de24
movdqa xmm0, xmm6
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
lea r8, [0x180003420]
psrldq xmm0, 8
xor ecx, ecx
mov r9, rax
movq qword [rax], xmm0
xor edx, edx
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r15
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x180001b83
mov rdx, qword [rbp - 0x41]
cmp rdx, qword [rbp - 0x39]
je 0x180001b12
movaps xmm1, xmmword [rbp - 0x59]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp - 0x41]
add rdi, 0x10
mov qword [rbp - 0x41], rdi
jmp 0x180001b23
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r12 + rax*2]
mov ebx, dword [r15 + rcx*4]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x180001a2d
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001a28
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
mov rdx, qword [rbp - 0x19]
xor r14d, r14d
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], recv
mov byte [rbp - 0x79], r14b
cmp rdx, 0x10
jb 0x180001909
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001a7a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
jmp 0x180001909
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x180001abb
mov rcx, qword [rbp - 0x79]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001ab6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
mov rdx, qword [rbp - 0x19]
mov byte [rbp - 0x79], 0
mov qword [rbp - 0x61], recv
mov qword [rbp - 0x69], r14
cmp rdx, 0x10
jb 0x180001906
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001b01
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001b0b
call fcn.18004dbb4
jmp 0x180001906
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.180002ab0
mov rdi, qword [rbp - 0x41]
cmp dword [rbp - 0x51], 0
jne 0x180001b7c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180001b58
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180001b53
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x180001b53
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180001b40
mov rbx, rax
jmp 0x180001b70
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x180001b70
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180001b64
cmp byte [rbx + 0x19], 0
je 0x180001950
jmp 0x180001b97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rbp - 0x51], r14d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rdi, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
cmp rbx, rdi
je 0x180001be7
cmp dword [rbx + 8], 0
je 0x180001c52
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x180001c46
movups xmm0, xmmword [rbx]
xor edx, edx
lea rcx, [rbp - 0x59]
movaps xmmword [rbp - 0x59], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x180001c3a
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x180001ba0
mov rdi, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x180001c73
mov rax, rbx
cmp rbx, rdi
je 0x180001c07
cmp dword [rax + 8], 0
jne 0x180001c5e
add rax, 0x10
cmp rax, rdi
jne 0x180001bf8
mov rdx, qword [rbp - 0x39]
mov rax, rbx
sub rdx, rbx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x180001c65
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001c65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.18004dbb4
jmp 0x180001c73
mov rsi, qword [rbp + 0x67]
movaps xmm6, xmmword [rsp + 0xc0]
mov rax, rsi
mov rsi, qword [rsp + 0x128]
mov r15, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xf0
pop r14
pop rbx
pop rbp
ret