Function at 0x14000e240
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 [0x140027040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x21], rcx
xor r15d, r15d
mov rax, qword [0x140027c28]
test rax, rax
jne 0x14000ea2f
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x140014a20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140028020], rax
mov r13d, r15d
mov dword [rbp - 0x49], r15d
lea r9, [rbp - 0x49]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000e316
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
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 r13, rax
lea r9, [rbp - 0x49]
mov r8d, dword [rbp - 0x49]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000e2d0
test eax, eax
js 0x14000e657
mov edi, r15d
mov dword [rsp + 0x30], r15d
cmp dword [r13], r15d
jbe 0x14000e657
mov r12d, 0x5a4d
nop word [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
lea rbx, [rcx + r13]
movzx edx, word [rbx + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r13
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000e371
lea rcx, [rbp - 1]
call fcn.140002750
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
lea rdx, [0x140014a20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000e60c
lea rdx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000e3c2
lea rcx, [rbp - 0x41]
call fcn.140002750
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], r15
mov qword [rbp - 0x51], r15
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000e400
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140002750
nop
mov r8d, 1
lea rdx, [0x1400148cc]
lea rcx, [rbp - 0x69]
call fcn.140002620
mov rsi, rax
lea r14, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova r14, qword [rbp - 0x41]
mov rax, qword [rbp - 0x31]
cmp rax, 0xc
jb 0x14000e4ac
lea rdi, [rax + r14]
lea r8, [rdi - 0xb]
sub r8, r14
mov edx, 0x5c
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000e4ac
nop dword [rax + rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000e73b
inc rbx
lea r8, [rdi - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14000e470
mov rbx, 0xffffffffffffffff
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14000e4c1
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.140002470
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14000e511
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e50c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e743
call fcn.140011810
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rcx, qword [rbp - 0x41]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r12w
jne 0x14000e885
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000e7fa
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000e7fa
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 0x14000e5b4
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 0x14000e74a
inc edi
add rbx, 4
cmp edi, r14d
jb 0x14000e590
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14000e5ef
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e5ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8bb
call fcn.140011810
xor r15d, r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], r15b
mov edi, dword [rsp + 0x30]
mov r12d, 0x5a4d
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e647
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e642
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8c2
call fcn.140011810
inc edi
mov dword [rsp + 0x30], edi
cmp edi, dword [r13]
jb 0x14000e340
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r15d
mov dword [0x14002801c], ebx
mov eax, 0xfff
and bx, ax
mov word [0x140028018], bx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r15
mov rbx, qword [0x140027c90]
mov rbx, qword [rbx]
mov rsi, qword [rbp - 0x21]
cmp byte [rbx + 0x19], 0
jne 0x14000e94f
lea r14, [0x14000fa50]
nop dword [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.140011818
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140010c50]
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 0x14000e93f
mov rdx, qword [rbp - 0x11]
cmp rdx, qword [rbp - 9]
je 0x14000e8c9
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp - 0x11]
add rdi, 0x10
mov qword [rbp - 0x11], rdi
jmp 0x14000e8da
sub rbx, r14
jmp 0x14000e4b3
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 - 0x29]
cmp rdx, 0xf
jbe 0x14000e7a3
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e79e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8bb
call fcn.140011810
xor r15d, r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], r15b
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e66b
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e7f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8c2
call fcn.140011810
jmp 0x14000e66b
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14000e835
inc rdx
mov rcx, qword [rbp - 0x41]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000e830
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8bb
call fcn.140011810
mov byte [rbp - 0x41], 0
mov qword [rbp - 0x29], 0xf
mov qword [rbp - 0x31], r15
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14000e668
inc rdx
mov rcx, qword [rbp - 1]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000e87b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e8c2
call fcn.140011810
jmp 0x14000e668
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14000e835
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e830
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e830
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, [rbp - 0x79]
lea rcx, [rbp - 0x19]
call fcn.140010a20
mov rdi, qword [rbp - 0x11]
cmp dword [rbp - 0x71], 0
jne 0x14000e938
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000e90c
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14000e907
cmp rbx, qword [rax + 0x10]
jne 0x14000e907
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14000e8f4
mov rbx, rax
jmp 0x14000e92c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14000e92c
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14000e920
cmp byte [rbx + 0x19], 0
je 0x14000e6b0
jmp 0x14000e953
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x71], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
cmp rbx, rdi
je 0x14000e9a7
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x14000ea12
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x14000ea06
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x79], xmm0
xor edx, edx
lea rcx, [rbp - 0x79]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14000e9fa
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x14000e960
mov rdi, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x14000ea32
mov rax, rbx
cmp rbx, rdi
je 0x14000e9c7
cmp dword [rax + 8], 0
jne 0x14000ea1e
add rax, 0x10
cmp rax, rdi
jne 0x14000e9b8
mov rdx, qword [rbp - 9]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000ea25
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea25
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.140011810
jmp 0x14000ea32
mov rsi, rcx
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400117f0
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