Function at 0x140171d2e
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x398
mov ebx, edx
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x4c], bx
mov eax, edx
shr eax, 0x10
mov byte [rsp + 0x4e], al
mov r14d, 0x80000
mov ecx, 0x80000
xor edx, edx
call fcn.14003ad87
lea r15, [rsp + 0xd0]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
lea r12, [rsp + 0x100]
and dword [rsp + 0x100], 0
mov rcx, r15
mov rdx, r14
call fcn.140131462
mov rdi, qword [rsp + 0xd0]
mov ecx, 5
mov rdx, rdi
mov r8d, r14d
mov r9, r12
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140171dd1
mov eax, dword [rsp + 0x100]
add r14, r14
lea ecx, [rax + 0x2800]
test eax, eax
cmovne r14, rcx
jmp 0x140171d84
test eax, eax
jne 0x140171e83
mov qword [rsp + 0xe0], r14
mov ecx, 8
mov edx, 0xfa0
call fcn.14001e247
test rax, rax
je 0x14017240e
lea r14, [rsp + 0x78]
mov qword [r14], rax
mov qword [r14 + 8], 0x1f4
and qword [r14 + 0x10], 0
xor edx, edx
xor r15d, r15d
cmp rdx, qword [rsp + 0x80]
jne 0x140171e32
mov rcx, r14
call fcn.140073059
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
lea rcx, [rdi + r15]
mov qword [rax + rdx*8], rcx
mov rdx, qword [rsp + 0x88]
inc rdx
mov qword [rsp + 0x88], rdx
mov ecx, dword [rcx]
add r15, rcx
test rcx, rcx
jne 0x140171e13
mov rsi, qword [rsp + 0x50]
lea rdi, [rsi + 0x40]
mov qword [rsp + 0xe8], rdi
test bl, bl
je 0x140171e93
lea rcx, [rsi + 0x110]
xor edx, edx
call fcn.1401725cc
mov rax, qword [rsi + 0x190]
jmp 0x140171e95
mov rdx, qword [rsp + 0xd8]
mov rcx, rdi
jmp 0x1401723f4
xor eax, eax
mov qword [rsp + 0xf0], rax
call fcn.140165e60
shl rdx, 0x20
mov eax, eax
or rax, rdx
movabs rcx, 0x19db1ded53e8000
cmp rax, rcx
mov qword [rsp + 0x58], rdi
jge 0x140171ec3
xor eax, eax
jmp 0x140171eda
movabs rcx, 0xfe624e212ac18000
add rax, rcx
mov ecx, 0x989680
xor edx, edx
div rcx
lea rcx, [rsp + 0xf8]
mov qword [rcx], rax
mov r15, qword [rsp + 0x88]
mov qword [rsp + 0x110], r15
movdqu xmm0, xmmword [rsp + 0x78]
movdqa xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x60], 8
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rcx
mov r14, qword [rsp + 0x108]
cmp r14, r15
jb 0x14017241f
lea rbx, [rsp + 0x118]
mov r12, qword [rbx - 0x18]
mov rcx, r15
call fcn.14016ffed
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 1
lea rbx, [rsp + 0x258]
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
mov r9, rax
call fcn.14016e06d
test r14, r14
je 0x140171fbb
shl r14, 3
mov edx, 8
mov rcx, r12
mov r8, r14
call fcn.1400081cb
mov rax, qword [rsp + 0x268]
xor edx, edx
sub rax, 1
jb 0x140171fdd
mov rbx, qword [rbx]
test rbx, rbx
je 0x140171fdd
add rdx, qword [rbx + 0x10]
add rbx, 0x18
jmp 0x140171fc5
lea rcx, [rsp + 0x60]
call fcn.140170294
mov rax, qword [rsp + 0x268]
lea r14, [rsp + 0x2e0]
mov qword [r14 + 0x10], rax
movdqu xmm0, xmmword [rsp + 0x258]
movdqa xmmword [r14], xmm0
lea r13, [rsp + 0x108]
lea r15, [rsp + 0x100]
mov rcx, r14
call fcn.14016c8fc
test rax, rax
je 0x1401720b2
mov rbx, qword [rax]
movdqu xmm0, xmmword [rax + 8]
movdqa xmmword [rsp + 0x90], xmm0
mov rcx, rax
call fcn.14016c92a
test rbx, rbx
je 0x1401720b2
mov qword [rsp + 0x100], rbx
movdqa xmm0, xmmword [rsp + 0x90]
movdqu xmmword [r13], xmm0
mov r12, qword [rsp + 0x110]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.140170294
mov rbp, qword [rsp + 0x70]
imul rcx, rbp, 0x150
add rcx, qword [rsp + 0x60]
imul r8, r12, 0x150
mov rdx, rbx
call sub.msvcrt.dll_memcpy
add rbp, r12
mov qword [rsp + 0x70], rbp
and qword [rsp + 0x110], 0
mov rcx, r15
call fcn.14016bb34
jmp 0x140172019
lea rcx, [rsp + 0x2e0]
call fcn.14016f870
mov r13, qword [rsp + 0x60]
imul rcx, qword [rsp + 0x70], 0x150
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb8], rax
lea rax, [rcx + r13]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov qword [rsp + 0xa8], rax
lea rsi, [rsp + 0x258]
lea r14, [rsp + 0x100]
mov qword [rsp + 0xc0], r13
test rcx, rcx
je 0x140172323
mov rbp, qword [r13]
cmp rbp, 2
je 0x14017231c
mov qword [rsp + 0xc8], rcx
lea rbx, [r13 + 0xc8]
mov r12, qword [r13 + 0xc0]
lea rdx, [r13 + 8]
mov r8d, 0xb8
lea rcx, [rsp + 0x2e0]
call sub.msvcrt.dll_memcpy
mov r8d, 0x88
mov rcx, rsi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x90], r12
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x60]
mov rdx, qword [rdi + 0x68]
mov r8, r12
call fcn.14016dfb4
mov rbx, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
cmp qword [rdi + 0x50], 0
je 0x140172305
lea rax, [rsp + 0x60]
mov qword [rsp + 0x100], rax
mov r15, qword [rsp + 0x58]
mov qword [rsp + 0x108], r15
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
lea rax, [0x140170d3b]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov r9, r14
call fcn.14000b72e
test rax, rax
je 0x140172267
mov r15, qword [rdi + 0x40]
movzx eax, byte [r15 + rdx]
and eax, 1
sub qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x90]
shr rbx, 0x39
lea rcx, [rdx - 0x10]
and rcx, qword [rdi + 0x48]
mov byte [r15 + rdx], bl
mov byte [rcx + r15 + 0x10], bl
inc qword [rdi + 0x58]
neg rdx
imul rdi, rdx, 0x158
lea rbx, [r15 + rdi]
add rbx, 0xfffffffffffffeb8
mov qword [rbx - 0x10], rax
mov qword [rbx - 8], rbp
mov r8d, 0xb8
mov rcx, rbx
lea rdx, [rsp + 0x2e0]
call sub.msvcrt.dll_memcpy
mov qword [rbx + 0xb8], r12
lea rcx, [r15 + rdi]
add rcx, 0xffffffffffffff78
mov r8d, 0x88
mov rdx, rsi
call sub.msvcrt.dll_memcpy
jmp 0x1401722ea
mov rdi, r15
mov rdi, qword [r15]
neg rdx
imul r15, rdx, 0x158
lea rbx, [rdi + r15]
add rbx, 0xfffffffffffffeb0
mov r8d, 0x150
mov rcx, r14
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov qword [rbx], rbp
lea rbx, [rdi + r15]
add rbx, 0xfffffffffffffeb8
mov r8d, 0xb8
mov rcx, rbx
lea rdx, [rsp + 0x2e0]
call sub.msvcrt.dll_memcpy
mov qword [rbx + 0xb8], r12
lea rcx, [rdi + r15]
add rcx, 0xffffffffffffff78
mov r8d, 0x88
mov rdx, rsi
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x100], 2
je 0x1401722ea
mov rcx, r14
call fcn.14016bb9f
add r13, 0x150
mov rcx, qword [rsp + 0xc8]
add rcx, 0xfffffffffffffeb0
jmp 0x14017210f
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xa8]
call fcn.140170d61
jmp 0x14017219c
add r13, 0x150
mov rax, qword [rsp + 0xb0]
sub rax, r13
mov ecx, 0x150
xor edx, edx
div rcx
mov rcx, r13
mov rdx, rax
call fcn.14016bb75
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
call fcn.14016bb5e
mov r8, qword [rsp + 0x50]
mov rax, qword [r8 + 0x40]
mov rcx, qword [r8 + 0x48]
add rcx, rax
inc rcx
movdqa xmm0, xmmword [rax]
pmovmskb edx, xmm0
not edx
mov r8, qword [r8 + 0x58]
lea rsi, [rsp + 0x100]
mov qword [rsi], rax
add rax, 0x10
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov word [rsi + 0x18], dx
mov qword [rsi + 0x20], r8
mov r14d, 0x158
mov rdi, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14017038b
test rax, rax
je 0x1401723e4
mov rbx, rax
cmp byte [rax - 4], 0
mov byte [rax - 4], 0
jne 0x1401723a3
mov rax, qword [rdi]
sub rax, rbx
cqo
idiv r14
mov rcx, rdi
mov rdx, rax
call fcn.1401713e8
add rbx, 0xfffffffffffffeb0
mov rcx, rbx
call fcn.14016bb9f
jmp 0x1401723a3
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
call fcn.1400fa958
nop
add rsp, 0x398
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0xfa0
call fcn.140037c50
ud2
lea rcx, str.assertion_failed:_vec.capacity_____start___len_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_1.7.0_src_vec.rs
lea r8, [0x14032be08]
mov edx, 0x2f
call fcn.14003cdd0
ud2