Function at 0x180001cc0
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
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword gs:[0x58]
mov r13, rcx
mov r9d, dword [0x18005f8b0]
mov rdi, r8
mov ecx, 4
mov rsi, rdx
mov r12, qword [rax + r9*8]
add r12, rcx
mov eax, dword [r12]
cmp dword [0x18005faf0], eax
jle 0x180002189
lea rcx, [0x18005faf0]
call fcn.18004dd14
cmp dword [0x18005faf0], 0xffffffff
jne 0x180002189
xor edi, edi
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov dword [rbp + 0x7f], edi
xor edx, edx
mov r14d, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180001da6
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x7f]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x7f]
lea r9, [rbp + 0x7f]
mov rdx, rax
mov ecx, 0xb
mov r14, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180001d60
test eax, eax
js 0x18000215d
mov r15d, edi
cmp dword [r14], edi
jbe 0x18000215d
mov esi, 0x5a4d
nop
mov eax, r15d
lea rdx, [r14 + 0x30]
imul rcx, rax, 0x128
movzx eax, word [rcx + r14 + 0x2e]
mov r8, 0xffffffffffffffff
add rax, rcx
mov qword [rbp - 0x29], rdi
add rdx, rax
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], recv
lea rbx, [rcx + r14]
inc r8
cmp byte [rdx + r8], dil
jne 0x180001df5
lea rcx, [rbp - 0x29]
call fcn.1800028b0
cmp qword [rbp - 0x11], 0x10
lea rcx, [rbp - 0x29]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180002116
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x59], rdi
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x51], recv
inc r8
cmp byte [rdx + r8], dil
jne 0x180001e45
lea rcx, [rbp - 0x69]
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 - 9], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + recv], 0xf
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x180001e80
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.1800028b0
mov rdx, qword [rbp + 0xf]
mov rcx, qword [rbp + 7]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180001eca
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp + 7], rax
lea rbx, [rbp - 9]
lea rax, [rbp - 9]
cmovae rax, qword [rbp - 9]
mov word [rax + rcx], 0x5c
jmp 0x180001ee4
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 9]
call fcn.180002f90
mov rbx, rax
lea rcx, [rbp - 0x69]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x180001efb
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rbp - 0x69]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x180001f4a
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001f45
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
cmp qword [rbp - 0x51], 0x10
lea rcx, [rbp - 0x69]
mov qword [rbp + 7], rdi
cmovae rcx, qword [rbp - 0x69]
xor edx, edx
mov qword [rbp + recv], 0xf
mov byte [rbp - 9], dil
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
cmp word [rax], si
jne 0x180002221
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x180002221
mov edx, dword [rcx + rax + 0x88]
test edx, edx
je 0x180002221
mov r11d, dword [rdx + rax + 0x1c]
mov r9d, edi
mov r8d, dword [rdx + rax + 0x20]
mov esi, dword [rdx + rax + 0x24]
add r8, rax
add rsi, rax
lea rbx, [rax + r11]
test r11d, r11d
je 0x1800020c6
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8]
mov rax, rdi
add rdx, r10
nop dword [rax]
lea rcx, [0x18004f8d8]
movzx ecx, byte [rcx + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x1800020b6
cmp rax, 7
jne 0x180001fe0
movsxd rax, r9d
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [rsi + rax*2]
mov eax, r15d
mov ebx, dword [rbx + rcx*4]
imul rcx, rax, 0x128
add rbx, qword [rcx + r14 + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x180002063
mov rcx, qword [rbp - 0x69]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000205e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
mov rdx, qword [rbp - 0x11]
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], dil
cmp rdx, 0x10
jb 0x1800020ae
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800020a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
mov rdi, rbx
jmp 0x18000216e
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x180001fd0
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x180002101
mov rcx, qword [rbp - 0x69]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800020fc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
mov qword [rbp - 0x59], rdi
mov esi, 0x5a4d
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], dil
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180002151
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000214c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
inc r15d
cmp r15d, dword [r14]
jb 0x180001dc0
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [0x18005faf0]
mov qword [0x18005fb30], rdi
call fcn.18004dcb4
mov rdi, qword [rbp + 0x77]
mov rsi, qword [rbp + 0x6f]
mov eax, dword [r12]
cmp dword [0x18005fb00], eax
mov rbx, qword [0x18005fb30]
jle 0x1800021e1
lea rcx, [0x18005fb00]
call fcn.18004dd14
cmp dword [0x18005fb00], 0xffffffff
jne 0x1800021e1
lea rcx, [0x18004f8b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18005fb00]
mov qword [0x18005fb28], rax
call fcn.18004dcb4
mov rax, qword [0x18005f8d0]
mov dword [rbp - 0x39], 0x25ff
mov word [rbp - 0x35], 0
mov qword [rbp - 0x33], rbx
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x7f], recv
mov qword [rbp - 0x49], rcx
mov rcx, qword [r13 + 0x38]
mov qword [rbp - 0x41], rax
test rcx, rcx
jne 0x1800022af
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x180002258
mov rcx, qword [rbp - 0x69]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002253
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
mov rdx, qword [rbp - 0x11]
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], dil
cmp rdx, 0x10
jb 0x18000216e
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000229e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022a8
call fcn.18004dbb4
jmp 0x18000216e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x7f]
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x41]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x7f], recv
mov qword [rbp - 0x41], rcx
mov rcx, qword [r13 + 0x78]
mov qword [rbp - 0x49], rax
test rcx, rcx
jne 0x1800022ec
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x7f]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x49]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8d, 8
mov rdx, rdi
mov rcx, rsi
call qword [0x18005fb28]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x7f], recv
mov qword [rbp - 0x41], rcx
mov rcx, qword [r13 + 0x78]
mov qword [rbp - 0x49], rax
test rcx, rcx
jne 0x18000233b
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x7f]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x49]
call qword [rax + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret