Function at 0x1405c3594
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, 0xe0
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r9
mov qword [rsp + 0x38], r9
mov r14, r8
mov qword [rbp - 0x51], r8
mov rsi, rdx
mov qword [rbp - 0x31], rdx
mov ebx, 4
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov qword [rbp - 0x39], rdi
xor r12d, r12d
mov eax, dword [rbx + rdi]
cmp dword [0x14069ef3c], eax
jle 0x1405c39b3
lea rcx, [0x14069ef3c]
call fcn.140626068
cmp dword [0x14069ef3c], 0xffffffff
jne 0x1405c39b3
mov edi, r12d
mov dword [rbp - 0x29], r12d
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea ebx, [rdx + 0xb]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, 0xc0000004
jmp 0x1405c3672
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
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 rdi, rax
lea r9, [rbp - 0x29]
mov r8d, dword [rbp - 0x29]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
je 0x1405c3636
test eax, eax
js 0x1405c397b
mov ebx, r12d
mov dword [rsp + 0x30], ebx
cmp dword [rdi], r12d
jbe 0x1405c397b
mov r15d, 0x1000
mov r13d, reloc.WS2_32.dll_ntohs
mov eax, ebx
imul rsi, rax, 0x128
mov qword [rbp - 0x41], rsi
movzx edx, word [rsi + rdi + 0x2e]
add rdx, 0x30
add rdx, rsi
add rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x1405c36c9
lea rcx, [rbp - 1]
call fcn.14057d00c
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
lea rdx, [0x140639a98]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1405c3936
lea rdx, [rdi + 0x30]
add rdx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], r12
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], r12b
jne 0x1405c371c
lea rcx, [rbp - 0x21]
call fcn.14057d00c
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], r12
mov qword [rbp - 0x59], r12
mov r8, rbx
inc r8
cmp byte [rax + r8], r12b
jne 0x1405c374e
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.14057d00c
nop
mov r8d, 1
lea rdx, [0x14068b7a4]
lea rcx, [rbp - 0x71]
call fcn.14057c630
mov rsi, rax
lea r14, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r14, qword [rbp - 0x21]
mov rax, qword [rbp - 0x11]
cmp rax, 0xc
jb 0x1405c37eb
lea r15, [rax + r14]
lea r8, [r15 - 0xb]
sub r8, r14
mov rcx, r14
jmp 0x1405c37cf
mov r8d, ntohs
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1405c3a7b
inc rbx
lea r8, [r15 - 0xb]
sub r8, rbx
mov rcx, rbx
mov edx, 0x5c
call sub.VCRUNTIME140.dll_memchr
test rax, rax
mov rbx, rax
jne 0x1405c37a5
or rbx, 0xffffffffffffffff
mov r15d, 0x1000
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1405c37f9
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.14057eaf0
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1405c3845
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, r15
jb 0x1405c3840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3a83
call fcn.1406261b4
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], r13
mov byte [rbp - 0x71], r12b
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1405c3b44
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rcx + rbx], 0x4550
jne 0x1405c3b44
mov eax, dword [rcx + rbx + 0x88]
test eax, eax
je 0x1405c3b44
mov r15d, dword [rax + rbx + 0x1c]
lea r12, [rbx + r15]
mov r14d, dword [rax + rbx + 0x20]
add r14, rbx
mov r13d, dword [rax + rbx + 0x24]
add r13, rbx
xor esi, esi
test r15d, r15d
je 0x1405c38e1
mov edx, dword [r14]
add rdx, rbx
lea rcx, [0x14068d268]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1405c3a8a
inc esi
add r14, 4
cmp esi, r15d
jb 0x1405c38bc
mov rdx, qword [rbp - 9]
mov r15d, 0x1000
cmp rdx, 0x10
jb 0x1405c391e
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, r15
jb 0x1405c3919
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bbf
call fcn.1406261b4
xor r12d, r12d
mov qword [rbp - 0x11], r12
lea r13d, [r12 + 0xf]
mov qword [rbp - 9], r13
mov byte [rbp - 0x21], r12b
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1405c396d
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, r15
jb 0x1405c3968
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bc6
call fcn.1406261b4
inc ebx
mov dword [rsp + 0x30], ebx
cmp ebx, dword [rdi]
jb 0x1405c369a
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r12
mov qword [0x14069f248], rbx
lea rcx, [0x14069ef3c]
call fcn.140626008
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x31]
mov r14, qword [rbp - 0x51]
mov r15, qword [rsp + 0x38]
mov rbx, qword [0x14069f248]
mov eax, 4
mov eax, dword [rax + rdi]
cmp dword [0x14069f010], eax
jle 0x1405c3a0f
lea rcx, [0x14069f010]
call fcn.140626068
cmp dword [0x14069f010], 0xffffffff
jne 0x1405c3a0f
lea rcx, [0x140639be8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14069f228], rax
lea rcx, [0x14069f010]
call fcn.140626008
lea r13, [0x14069f270]
mov eax, 4
mov eax, dword [rax + rdi]
cmp dword [0x14069ef88], eax
jle 0x1405c3a61
lea rcx, [0x14069ef88]
call fcn.140626068
cmp dword [0x14069ef88], 0xffffffff
jne 0x1405c3a61
mov edx, 2
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14062a208]
call fcn.1406263f4
lea rcx, [0x14069ef88]
call fcn.140626008
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1405c3bcd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
sub rbx, r14
jmp 0x1405c37e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rax, esi
movzx ecx, word [r13 + rax*2]
mov ebx, dword [r12 + rcx*4]
mov rax, qword [rbp - 0x41]
add rbx, qword [rax + rdi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1405c3aed
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405c3ae8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bbf
call fcn.1406261b4
xor r12d, r12d
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], r12b
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1405c398f
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405c3b3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bc6
call fcn.1406261b4
jmp 0x1405c398f
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1405c3b77
inc rdx
mov rcx, qword [rbp - 0x21]
cmp rdx, r15
mov rax, rcx
jb 0x1405c3b72
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bbf
call fcn.1406261b4
mov byte [rbp - 0x21], r12b
mov qword [rbp - 9], r13
mov qword [rbp - 0x11], r12
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1405c398c
inc rdx
mov rcx, qword [rbp - 1]
cmp rdx, r15
mov rax, rcx
jb 0x1405c3bb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c3bc6
call fcn.1406261b4
jmp 0x1405c398c
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 [rsp + 0x38], 0x25ff
and word [rbp - 0x7d], 0
mov qword [rbp - 0x7b], rbx
mov rcx, qword [0x14069e8a8]
mov edi, reloc.WS2_32.dll_ntohl
mov r8d, edi
lea rdx, [rbp - 0x51]
call fcn.140577dc4
mov rcx, qword [0x14069e8a8]
mov r8d, edi
lea rdx, [rsp + 0x38]
call fcn.140577f50
mov rax, qword [0x14069f228]
mov r8, r15
mov rdx, r14
mov rcx, rsi
call rax
mov rbx, rax
mov rcx, qword [0x14069e8a8]
mov r8d, edi
lea rdx, [rbp - 0x51]
call fcn.140577f50
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
setne al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140625ec0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret