Function at 0x140010550
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 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
movaps xmmword [rsp + 0xf0], xmm6
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r8
mov rbx, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x69], rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov qword [rcx + 0x38], r14
mov rcx, qword [rdx + 0x38]
test rcx, rcx
je 0x1400105b1
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
add rbx, 0x40
mov qword [rsp + 0x30], rbx
mov qword [rbx + 0x38], r14
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400105d3
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
mov rax, qword [0x14001ae20]
test rax, rax
jne 0x140010d57
xor edx, edx
lea r8d, [rax + 1]
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x14001b118], rax
mov r13, r14
mov dword [rbp - 0x59], r14d
lea r9, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140010666
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x59]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
lea r9, [rbp - 0x59]
mov r8d, dword [rbp - 0x59]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140010620
test eax, eax
js 0x140010987
mov edi, r14d
mov dword [rsp + 0x30], r14d
cmp dword [r13], r14d
jbe 0x140010987
mov r15d, 0x5a4d
nop word [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
lea rbx, [rcx + r13]
movzx eax, word [rbx + 0x2e]
add rax, rcx
lea rdx, [r13 + 0x30]
add rdx, rax
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400106c6
lea rcx, [rbp - 0x11]
call fcn.14000e8b0
nop
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14001093c
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], al
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140010720
lea rcx, [rbp - 0x51]
call fcn.14000e8b0
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x50], r14
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], 0xf
mov byte [rsp + 0x50], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140010760
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000e8b0
nop
mov rdx, qword [rbp - 0x79]
mov r8, qword [rbp - 0x71]
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x50]
cmp rax, 1
jb 0x1400107b9
lea rax, [rdx + 1]
mov qword [rbp - 0x79], rax
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x50]
movzx eax, byte [0x14001499c]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
lea rbx, [rsp + 0x50]
jmp 0x1400107d6
mov qword [rsp + 0x20], 1
lea r9, [0x14001499c]
mov edx, 1
call fcn.14000fb80
mov rbx, rax
lea rcx, [rbp - 0x51]
call fcn.14000de80
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400107ed
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14000e700
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0x10
jb 0x14001083e
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010839
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010a6d
call fcn.14001214c
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], 0xf
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rcx, qword [rbp - 0x51]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r15w
jne 0x140010baf
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140010b24
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x140010b24
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 0x1400108e4
nop word [rax + rax]
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 0x140010a74
inc edi
add rbx, 4
cmp edi, r14d
jb 0x1400108c0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14001091f
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001091a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010be5
call fcn.14001214c
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], r14b
mov edi, dword [rsp + 0x30]
mov r15d, 0x5a4d
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140010977
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bec
call fcn.14001214c
inc edi
mov dword [rsp + 0x30], edi
cmp edi, dword [r13]
jb 0x140010690
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r14d
mov dword [0x14001b110], ebx
mov eax, 0xfff
and bx, ax
mov word [0x14001b10c], bx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov qword [rbp - 0x19], r14
mov rbx, qword [0x14001b028]
mov rbx, qword [rbx]
mov rsi, qword [rbp - 0x31]
cmp byte [rbx + 0x19], 0
jne 0x140010c74
lea r15, [0x140011540]
nop dword [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.140012110
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r15
mov qword [rbp - 0x31], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140011af0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140010c63
mov rdx, qword [rbp - 0x21]
cmp rdx, qword [rbp - 0x19]
je 0x140010bf3
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp - 0x21]
add rdi, 0x10
mov qword [rbp - 0x21], rdi
jmp 0x140010c05
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 - 0x39]
cmp rdx, 0x10
jb 0x140010acd
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010ac8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010be5
call fcn.14001214c
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], r14b
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14001099b
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010b1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bec
call fcn.14001214c
jmp 0x14001099b
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140010b5f
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140010b5a
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010be5
call fcn.14001214c
mov byte [rbp - 0x51], 0
mov qword [rbp - 0x39], 0xf
mov qword [rbp - 0x41], r14
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140010998
inc rdx
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140010ba5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bec
call fcn.14001214c
jmp 0x140010998
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140010b5f
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010b5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010b5a
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
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x29]
call fcn.1400118c0
mov rdi, qword [rbp - 0x21]
cmp dword [rsp + 0x48], 0
jne 0x140010c5c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140010c38
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140010c33
cmp rbx, qword [rax + 0x10]
jne 0x140010c33
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140010c20
mov rbx, rax
jmp 0x140010c50
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140010c50
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140010c44
cmp byte [rbx + 0x19], 0
je 0x1400109e0
jmp 0x140010c78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp - 0x21]
mov rbx, qword [rbp - 0x29]
cmp rbx, rdi
je 0x140010cca
cmp dword [rbx + 8], 0
je 0x140010d3a
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140010d2e
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140010d22
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140010c81
mov rdi, qword [rbp - 0x21]
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x140010d5b
mov rax, rbx
cmp rbx, rdi
je 0x140010cef
nop dword [rax + rax]
cmp dword [rax + 8], 0
jne 0x140010d46
add rax, 0x10
cmp rax, rdi
jne 0x140010ce0
mov rdx, qword [rbp - 0x19]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140010d4d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010d4d
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.14001214c
jmp 0x140010d5b
mov rsi, qword [rbp - 0x31]
mov rax, rsi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400120f0
mov rbx, qword [rsp + 0x158]
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret