Function at 0x140012c40
Capabilities:
Create thread
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call
Parse pe header
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 [0x140073060]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x21], rcx
mov rax, qword [0x140076118]
test rax, rax
jne 0x1400133a5
xor edx, edx
lea r8d, [rax + 1]
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140076540], rax
xor r14d, r14d
mov r13d, r14d
mov dword [rbp - 0x49], r14d
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 0x140012d16
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 0x140012cd0
test eax, eax
js 0x140013027
mov edi, r14d
mov dword [rsp + 0x30], r14d
cmp dword [r13], r14d
jbe 0x140013027
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 - 1], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140012d76
lea rcx, [rbp - 1]
call fcn.140002810
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
lea rdx, str.ntoskrnl.exe
call fcn.140020974
test eax, eax
jne 0x140012fdc
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], al
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140012dd0
lea rcx, [rbp - 0x41]
call fcn.140002810
nop
lea rcx, str.SYSTEMROOT
call fcn.140020ef0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140012e10
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140002810
nop
mov rdx, qword [rbp - 0x59]
mov r8, qword [rbp - 0x51]
mov rax, r8
sub rax, rdx
lea rcx, [rbp - 0x69]
cmp rax, 1
jb 0x140012e65
lea rax, [rdx + 1]
mov qword [rbp - 0x59], rax
cmp r8, 0x10
cmovae rcx, qword [rbp - 0x69]
movzx eax, byte [0x140052cfc]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
lea rbx, [rbp - 0x69]
jmp 0x140012e82
mov qword [rsp + 0x20], 1
lea r9, [0x140052cfc]
mov edx, 1
call fcn.140003320
mov rbx, rax
lea rcx, [rbp - 0x41]
call fcn.140002370
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140012e99
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140002640
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140012ee9
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133e9
call fcn.140017930
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 0xf
mov byte [rbp - 0x69], 0
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 rsi, rax
cmp word [rax], r15w
jne 0x140013247
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1400131b8
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1400131b8
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 0x140012f84
nop
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.NtShutdownSystem
call fcn.14003f4f0
test eax, eax
je 0x140013108
inc edi
add rbx, 4
cmp edi, r14d
jb 0x140012f60
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140012fbf
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133e3
call fcn.140017930
xor r14d, r14d
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], r14b
mov edi, dword [rsp + 0x30]
mov r15d, 0x5a4d
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140013017
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013012
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133ef
call fcn.140017930
inc edi
mov dword [rsp + 0x30], edi
cmp edi, dword [r13]
jb 0x140012d40
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r14d
mov dword [0x14007653c], ebx
mov eax, 0xfff
and bx, ax
mov word [0x140076538], bx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r14
mov rbx, qword [0x140076198]
mov rbx, qword [rbx]
mov rsi, qword [rbp - 0x21]
cmp byte [rbx + 0x19], 0
jne 0x1400132f8
lea r15, [0x140014260]
nop dword [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.140017938
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 - 0x21], rax
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140015550]
xor edx, edx
xor ecx, ecx
call fcn.140024cb4
mov qword [rbp - 0x79], rax
test rax, rax
je 0x1400133fb
mov rdx, qword [rbp - 0x11]
cmp rdx, qword [rbp - 9]
je 0x140013282
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 0x140013293
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, 0x10
jb 0x140013161
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001315c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133e3
call fcn.140017930
xor r14d, r14d
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], r14b
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x14001303b
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133ef
call fcn.140017930
jmp 0x14001303b
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400131f3
inc rdx
mov rcx, qword [rbp - 0x41]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400131ee
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133e3
call fcn.140017930
mov byte [rbp - 0x41], 0
mov qword [rbp - 0x29], 0xf
mov qword [rbp - 0x31], r14
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140013038
inc rdx
mov rcx, qword [rbp - 1]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14001323d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133ef
call fcn.140017930
jmp 0x140013038
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400131f3
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133e3
jmp 0x1400131ee
lea r8, [rbp - 0x79]
lea rcx, [rbp - 0x19]
call fcn.140015010
mov rdi, qword [rbp - 0x11]
cmp dword [rbp - 0x71], 0
jne 0x1400133f5
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400132c9
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400132c4
cmp rbx, qword [rax + 0x10]
jne 0x1400132c4
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400132b1
mov rbx, rax
jmp 0x1400132ec
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400132ec
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400132e0
cmp byte [rbx + 0x19], 0
je 0x140013080
jmp 0x1400132fc
mov rdi, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
cmp rbx, rdi
je 0x14001334e
cmp dword [rbx + 8], 0
je 0x140013426
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbx + 8], eax
je 0x14001341b
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x79], xmm0
xor edx, edx
lea rcx, [rbp - 0x79]
call fcn.140016fd4
test eax, eax
jne 0x140013410
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140013305
mov rdi, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x1400133a8
mov rax, rbx
cmp rbx, rdi
je 0x14001336f
nop dword [rax + rax]
cmp dword [rax + 8], 0
jne 0x1400133dd
add rax, 0x10
cmp rax, rdi
jne 0x140013360
mov rdx, qword [rbp - 9]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001339b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001340a
mov rcx, rbx
call fcn.140017930
jmp 0x1400133a8
mov rsi, rcx
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140017910
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
call fcn.140024d94
nop
call fcn.140020c78
nop
call fcn.140020c78
nop
call fcn.140020c78
nop
call fcn.140024d94
nop
mov dword [rbp - 0x71], r14d
mov ecx, 6
call fcn.140016740
nop
call fcn.140020c78
nop
mov ecx, 2
call fcn.140016740
int3
mov ecx, 5
call fcn.140016740
int3
mov ecx, 1
call fcn.140016740
int3