Function at 0x1405c2e80
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, 0xf0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rcx
mov qword [rbp - 0x21], rcx
xor r12d, r12d
mov rax, qword [0x14069e8a8]
test rax, rax
jne 0x1405c3538
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140639a98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x14069f220], rax
mov edi, r12d
mov dword [rbp - 0x49], r12d
lea r9, [rbp - 0x49]
xor r8d, r8d
xor edx, edx
lea ebx, [rdx + 0xb]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r14d, 0xc0000004
jmp 0x1405c2f49
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x49]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
lea r9, [rbp - 0x49]
mov r8d, dword [rbp - 0x49]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, r14d
je 0x1405c2f0d
test eax, eax
jns 0x1405c2f68
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1405c3278
mov esi, r12d
mov dword [rsp + 0x30], r12d
cmp dword [rdi], r12d
jbe 0x1405c3263
or r14, 0xffffffffffffffff
mov r15d, 0x1000
lea r13d, [r14 + 0x10]
mov eax, esi
imul rbx, rax, 0x128
movzx edx, word [rbx + rdi + 0x2e]
add rdx, 0x30
add rdx, rbx
add rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
mov r8, r14
inc r8
cmp byte [rdx + r8], r12b
jne 0x1405c2fb1
lea rcx, [rbp - 0x19]
call fcn.14057d00c
nop
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
lea rdx, [0x140639a98]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1405c321e
lea rdx, [rdi + 0x30]
add rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov r8, r14
inc r8
cmp byte [rdx + r8], r12b
jne 0x1405c3000
lea rcx, [rbp - 0x41]
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 - 0x69], xmm0
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x1405c3032
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.14057d00c
nop
mov r8d, 1
lea rdx, [0x14068b7a4]
lea rcx, [rbp - 0x69]
call fcn.14057c630
mov rsi, rax
lea r14, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae r14, qword [rbp - 0x41]
mov rax, qword [rbp - 0x31]
cmp rax, 0xc
jb 0x1405c30cb
lea r15, [rax + r14]
lea r8, [r15 - 0xb]
sub r8, r14
mov rcx, r14
jmp 0x1405c30b3
mov r8d, ntohs
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1405c32ab
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 0x1405c3089
mov r15d, 0x1000
or rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1405c30dd
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.14057eaf0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x1405c3129
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, r15
jb 0x1405c3124
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c32b9
call fcn.1406261b4
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r13
mov byte [rbp - 0x69], r12b
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae rcx, qword [rbp - 0x41]
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 0x1405c3371
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1405c3371
mov ecx, dword [rax + rbx + 0x88]
test ecx, ecx
je 0x1405c3371
mov r15d, dword [rcx + rbx + 0x1c]
lea r12, [rbx + r15]
mov r14d, dword [rcx + rbx + 0x20]
add r14, rbx
mov r13d, dword [rcx + rbx + 0x24]
add r13, rbx
xor esi, esi
test r15d, r15d
je 0x1405c31c5
mov edx, dword [r14]
add rdx, rbx
lea rcx, str.NtShutdownSystem
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1405c32c0
inc esi
add r14, 4
cmp esi, r15d
jb 0x1405c31a0
mov rdx, qword [rbp - 0x29]
mov r15d, 0x1000
cmp rdx, 0x10
jb 0x1405c3202
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, r15
jb 0x1405c31fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33ec
call fcn.1406261b4
xor r12d, r12d
mov qword [rbp - 0x31], r12
lea r13d, [r12 + 0xf]
mov qword [rbp - 0x29], r13
mov byte [rbp - 0x41], r12b
mov esi, dword [rsp + 0x30]
or r14, 0xffffffffffffffff
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1405c3255
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, r15
jb 0x1405c3250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33f3
call fcn.1406261b4
inc esi
mov dword [rsp + 0x30], esi
cmp esi, dword [rdi]
jb 0x1405c2f87
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rbp - 0x21]
mov ebx, r12d
mov dword [0x14069f21c], ebx
mov eax, 0xfff
and bx, ax
mov word [0x14069f218], bx
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], r12
mov rbx, qword [0x14069ee08]
mov rbx, qword [rbx]
jmp 0x1405c34c7
sub rbx, r14
mov r15d, 0x1000
jmp 0x1405c30cf
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]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1405c331a
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405c3315
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33ec
call fcn.1406261b4
xor r12d, r12d
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x41], r12b
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1405c3368
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405c3363
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33f3
call fcn.1406261b4
mov rsi, qword [rbp - 0x21]
jmp 0x1405c327b
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1405c33a4
inc rdx
mov rcx, qword [rbp - 0x41]
cmp rdx, r15
mov rax, rcx
jb 0x1405c339f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33ec
call fcn.1406261b4
mov byte [rbp - 0x41], r12b
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x31], r12
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1405c3274
inc rdx
mov rcx, qword [rbp - 0x19]
cmp rdx, r15
mov rax, rcx
jb 0x1405c33e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405c33f3
call fcn.1406261b4
jmp 0x1405c3274
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
movups xmm6, xmmword [rbx + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140626178
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
lea rcx, [0x1405c433c]
mov qword [rax + 0x18], rcx
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x1405c580c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x79], rax
test rax, rax
je 0x1405c34e2
mov rdx, qword [rbp + 0xf]
cmp rdx, qword [rbp + 0x17]
je 0x1405c347f
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
movdqu xmmword [rdx], xmm1
add qword [rbp + 0xf], 0x10
jmp 0x1405c348d
lea r8, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1405c5534
nop
cmp dword [rbp - 0x71], r12d
jne 0x1405c34db
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x1405c34bb
mov rax, qword [rbx + 8]
jmp 0x1405c34b0
cmp rbx, qword [rax + 0x10]
jne 0x1405c34b6
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x1405c34a3
mov rbx, rax
jmp 0x1405c34c7
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x1405c34bb
cmp byte [rbx + 0x19], r12b
je 0x1405c33fa
mov rbx, qword [rbp + 7]
mov rdi, qword [rbp + 0xf]
jmp 0x1405c352a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x71], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp dword [rbx + 8], r12d
je 0x1405c3585
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1405c3579
movups xmm0, xmmword [rbx]
movdqu xmmword [rbp - 0x79], xmm0
xor edx, edx
lea rcx, [rbp - 0x79]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x1405c356d
xorps xmm0, xmm0
movdqu xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x1405c34f2
lea rcx, [rbp + 7]
call fcn.1405c54b4
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140625ec0
lea r11, [rsp + 0xf0]
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
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