Function at 0x4828db
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, 0x3b8
mov edi, edx
mov rbp, rcx
mov word [rsp + 0x48], di
mov eax, edx
shr eax, 0x10
mov byte [rsp + 0x4a], al
call fcn.0047a9b0
shl rdx, 0x20
mov eax, eax
or rdx, rax
lea rsi, [rsp + 0x130]
mov rcx, rsi
call fcn.0047aa40
cmp qword [rsi], 0
je 0x482929
xor eax, eax
jmp 0x482931
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x100], rax
mov r13d, 0x80000
lea r12, [rsp + 0x5c]
mov rcx, r13
xor edx, edx
call fcn.00441038
mov rbx, rax
mov r14, rdx
and dword [rsp + 0x5c], 0
mov ecx, 5
mov r8d, r13d
mov r9, r12
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x482992
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x482982
add eax, 0x2800
mov r13, rax
jmp 0x482985
add r13, r13
mov rcx, rbx
mov rdx, r14
call fcn.0044a8f3
jmp 0x482944
mov qword [rsp + 0xe8], rbx
mov ecx, 0xfa0
mov edx, 8
call fcn.00427146
test rax, rax
je 0x482fdd
lea r12, [rsp + 0xb0]
mov qword [r12], 0x1f4
mov qword [r12 + 8], rax
and qword [r12 + 0x10], 0
xor edx, edx
xor ebx, ebx
lea r15, [r14 + rbx]
cmp rdx, qword [rsp + 0xb0]
jne 0x4829f7
mov rcx, r12
call fcn.00481f18
mov rax, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
mov qword [rax + rdx*8], r15
mov rdx, qword [rsp + 0xc0]
inc rdx
mov qword [rsp + 0xc0], rdx
mov ecx, dword [r15]
add rbx, rcx
test rcx, rcx
jne 0x4829d1
lea rax, [rbp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x108], rax
test dil, dil
je 0x482a46
lea rcx, [rbp + 0xa0]
xor edx, edx
call fcn.00483008
mov rax, qword [rbp + 0x120]
jmp 0x482a48
xor eax, eax
lea rcx, [rsp + 0x128]
mov qword [rcx], rax
mov r12, qword [rsp + 0xc0]
mov qword [rsp + 0x160], r12
movdqu xmm0, xmmword [rsp + 0xb0]
movdqu xmmword [rsp + 0x150], xmm0
and qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 8
and qword [rsp + 0x80], 0
lea rax, [rsp + 0x108]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rcx
lea rax, [rsp + 0x100]
mov qword [rsp + 0x148], rax
mov rdi, qword [rsp + 0x150]
cmp rdi, r12
jb 0x482fee
mov r13, qword [rsp + 0x158]
mov rcx, r12
call fcn.00481d55
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 1
lea rsi, [rsp + 0x110]
mov rcx, rsi
mov rdx, r12
xor r8d, r8d
mov r9, rax
call fcn.0047fd66
test rdi, rdi
je 0x482b2e
shl rdi, 3
mov r8d, 8
mov rcx, r13
mov rdx, rdi
call fcn.00416f40
mov rax, qword [rsp + 0x120]
xor edx, edx
sub rax, 1
jb 0x482b4c
mov rsi, qword [rsi]
test rsi, rsi
je 0x482b4c
add rdx, qword [rsi + 0x20]
jmp 0x482b38
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x70]
call fcn.00481d78
mov rax, qword [rsp + 0x120]
lea rbx, [rsp + 0xa0]
mov qword [rbx], rax
movdqu xmm0, xmmword [rsp + 0x110]
movdqa xmmword [rbx - 0x10], xmm0
lea rsi, [rsp + 0x90]
lea rdi, [rsp + 0x130]
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x130], rsi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rbx
mov rcx, rbp
mov rdx, rdi
call fcn.00481690
test rbp, rbp
je 0x482c3e
mov r15, qword [rbp + 0x10]
mov r13, qword [rbp + 0x18]
mov r12, qword [rbp + 0x20]
mov rcx, rbp
call fcn.004816de
test r13, r13
je 0x482c3e
mov qword [rsp + 0x130], r15
mov qword [rsp + 0x138], r13
lea rcx, [rsp + 0x70]
mov rdx, r12
call fcn.00481d78
mov r15, qword [rsp + 0x80]
imul rcx, r15, 0x150
add rcx, qword [rsp + 0x78]
imul r8, r12, 0x150
mov rdx, r13
call sub.ntdll.dll_memcpy
add r15, r12
mov qword [rsp + 0x80], r15
and qword [rsp + 0x140], 0
mov rcx, rdi
call fcn.0047e622
jmp 0x482b8c
lea rcx, [rsp + 0x90]
call fcn.00481638
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xe0], rax
mov rbp, qword [rsp + 0x78]
imul rbx, qword [rsp + 0x80], 0x150
lea rax, [rbx + rbp]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov qword [rsp + 0xc8], rax
lea r12, [rsp + 0x338]
lea rax, [rsp + 0x280]
mov qword [rsp + 0xd8], rbp
mov qword [rsp + 0xf8], r14
test rbx, rbx
je 0x482ef8
mov r15, qword [rbp + 0x80]
cmp r15, 2
je 0x482ef1
mov qword [rsp + 0x68], rbx
mov ecx, 0x10
mov rdi, r12
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rbp + 0x88]
mov qword [rsp + 0x88], rcx
mov r13, qword [rbp + 0x90]
lea rdx, [rbp + 0x98]
mov r8d, 0xb8
mov rcx, rax
mov rdi, rax
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x90], r13
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x60]
mov rdx, qword [rbx + 0x68]
mov r8, r13
call fcn.0047fa57
mov rsi, rax
mov rcx, qword [rsp + 0x60]
mov rdx, rax
lea r8, [rsp + 0x90]
call fcn.0047fad2
mov r14, r12
test rax, rax
je 0x482dcd
mov r12, rax
mov rbx, rdi
lea rdi, [rax + 8]
mov r8d, 0x150
lea rcx, [rsp + 0x130]
mov rdx, rdi
call sub.ntdll.dll_memcpy
mov ecx, 0x10
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
mov qword [r12 + 0x88], r15
mov rax, qword [rsp + 0x88]
mov qword [r12 + 0x90], rax
mov qword [r12 + 0x98], r13
add r12, 0xa0
mov r8d, 0xb8
mov rcx, r12
mov rdx, rbx
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x1b0], 2
mov rbx, qword [rsp + 0x68]
mov r12, r14
je 0x482ece
lea rcx, [rsp + 0x130]
call fcn.0047e690
jmp 0x482ece
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rbx + 0x40]
mov rdi, qword [rbx + 0x58]
mov rdx, rdi
mov r8, rsi
call fcn.004822c6
mov r12, rax
mov dil, byte [rdi + rax]
cmp qword [rbx + 0x48], 0
jne 0x482e35
mov eax, edi
and al, 1
mov rbx, qword [rsp + 0x68]
je 0x482e3a
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xc8]
call fcn.00482695
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x58]
mov r8, rsi
call fcn.004822c6
mov r12, rax
jmp 0x482e3a
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rdx, r12
mov r8d, edi
mov r9, rsi
call fcn.0048266c
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x58]
neg r12
imul r8, r12, 0x158
lea rax, [rdx + r8]
add rax, 0xfffffffffffffeb0
mov rcx, qword [rsp + 0xf0]
mov qword [rax - 8], rcx
mov ecx, 0x10
mov rdi, rax
mov r12, r14
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
mov qword [rax + 0x80], r15
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x88], rcx
mov qword [rax + 0x90], r13
lea rcx, [rdx + r8]
add rcx, 0xffffffffffffff48
mov r8d, 0xb8
lea rdx, [rsp + 0x280]
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x1b0], 2
add rbp, 0x150
add rbx, 0xfffffffffffffeb0
mov r14, qword [rsp + 0xf8]
lea rax, [rsp + 0x280]
jmp 0x482ca6
add rbp, 0x150
mov rax, qword [rsp + 0xd0]
sub rax, rbp
mov ecx, 0x150
xor edx, edx
div rcx
mov rcx, rbp
mov rdx, rax
call fcn.0047e666
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
call fcn.0047e648
mov r15, qword [rsp + 0x50]
mov rax, qword [r15 + 0x58]
mov rcx, qword [r15 + 0x40]
mov rdx, qword [r15 + 0x50]
lea rcx, [rcx + rax + 1]
movdqa xmm0, xmmword [rax]
pmovmskb r8d, xmm0
not r8d
lea r9, [rax + 0x10]
lea rsi, [rsp + 0x130]
mov qword [rsi], r9
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r8w
mov qword [rsi + 0x20], rdx
mov ebx, 0x158
mov rcx, rsi
call fcn.0048222c
test rax, rax
je 0x482fb8
mov rdi, rax
cmp byte [rax - 4], 0
mov byte [rax - 4], 0
jne 0x482f74
mov rax, qword [r15 + 0x58]
sub rax, rdi
cqo
idiv rbx
mov rcx, qword [rsp + 0x60]
mov rdx, rax
call fcn.00482867
add rdi, 0xfffffffffffffeb0
mov rcx, rdi
call fcn.0047e690
jmp 0x482f74
mov rcx, qword [rsp + 0xe8]
mov rdx, r14
call fcn.0044a8f3
nop
add rsp, 0x3b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0xfa0
mov edx, 8
call fcn.00425ea0
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, [0x004a2540]
mov edx, 0x2f
call fcn.00428e20
ud2