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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x1004da0f
mov eax, dword [ebp + 0x10]
mov edi, 0x101707e4
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x1004da24
jmp 0x1004dbe1
mov edi, 0x101707cc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 4
mov eax, dword [0x101918ac]
movzx eax, byte [eax]
push 1
push 0x80000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1004df04
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x18], eax
mov esi, eax
xor eax, eax
mov ecx, 0x80000
mov ebx, 0x80000
mov dword [esp + 0x1c], 0
jmp 0x1004da78
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp], 0
cmp ebx, ecx
jbe 0x1004da98
push ebx
push eax
lea eax, [esp + 0x1c]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3a575ba2d04f7cfd
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, esp
push eax
push ebx
push esi
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jns 0x1004daf5
or eax, 0x10000000
push eax
call sym.__ZN108__LT_windows_result..error..Error_u20_as_u20_core..convert..From_LT_windows_result..hresult..HRESULT_GT__GT_4from17h6b5
add esp, 4
cmp eax, 0xd0000004
jne 0x1004dbb4
mov eax, dword [esp]
mov ecx, ebx
mov dword [esp + 0x50], 0xd0000004
mov dword [esp + 0x54], edx
add ecx, ebx
lea ebx, [eax + 0x2800]
test eax, eax
cmove ebx, ecx
test edx, edx
je 0x1004da70
lea eax, [esp + 0x54]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::hcb2d3b1bb6a74ba7
add esp, 4
jmp 0x1004da70
mov eax, dword [0x101918ac]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], 0
movzx eax, byte [eax]
push 4
push 0x7d0
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1004df10
mov ecx, dword [edi + 0x14]
xor edi, edi
mov dword [esp + 0x20], 0x1f4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ecx
jmp 0x1004db59
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
lea eax, [esi + edi]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x28], edx
add edi, ebx
test ebx, ebx
je 0x1004db92
mov ebx, dword [esi + edi]
push dword [esp + 0x2c]
push dword [esp + 0x14]
push dword [esi + edi + 0x44]
push 1
call dword [esp + 0x48]
add esp, 0x10
test al, al
je 0x1004db53
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jne 0x1004db40
lea eax, [esp + 0x20]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::heca7a5f3ac3423ea
add esp, 4
jmp 0x1004db40
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp byte [eax], 0
lea esi, [ebx + 0x20]
mov dword [esp + 0x3c], esi
je 0x1004dbe8
mov ecx, ebx
xor edx, edx
xor edi, edi
call sym.__ZN7sysinfo7windows3cpu11CpusWrapper14init_if_needed17h0e32618857ece1afE.llvm.13677351167597926412
mov eax, dword [ebx + 8]
jmp 0x1004dbec
test edx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
je 0x1004dbcd
lea eax, [esp + 0x54]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::hcb2d3b1bb6a74ba7
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004dbe1
push 1
push eax
push esi
call sym.___rust_dealloc
add esp, 0xc
xor eax, eax
jmp 0x1004defc
xor eax, eax
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call sym.std::time::SystemTime::now::hfb1a1f63355b68fb
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [esp + 0x50]
push 0x19db1de
push 0xd53e8000
lea eax, [esp + 8]
push eax
push ebx
call sym.std::time::SystemTime::duration_since::hafd08a45b2a489c0
add esp, 0x10
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
je 0x1004dc2c
xor eax, eax
xor ecx, ecx
jmp 0x1004dc34
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
mov dword [esp], 0
mov dword [esp + 4], 8
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x6c], eax
push ebx
lea eax, [esp + 4]
push eax
call fcn.1003f410
add esp, 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp]
imul edi, edx, 0xe8
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
add edi, eax
test edx, edx
mov dword [esp + 0xc], edi
je 0x1004ded2
lea edi, [esp + 0x13c]
mov dword [esp + 0x10], esi
jmp 0x1004dcee
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0xc]
je 0x1004ded2
lea ecx, [eax + 0xe8]
mov dword [esp + 4], ecx
mov ecx, dword [eax]
cmp ecx, 2
je 0x1004ded2
add eax, 4
mov dword [esp + 0x138], ecx
push 0xe4
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x138]
push eax
push dword [esp + 0x210]
push esi
push ebx
call sym.hashbrown::map::HashMap_LT_K_C_V_C_S_C_A_GT_::insert::h5c6b51dd2c6d718a
add esp, 0x10
cmp dword [esp + 0x50], 2
je 0x1004dce0
mov eax, dword [esp + 0x60]
mov esi, ebx
test eax, eax
je 0x1004dd55
push 1
push eax
push dword [esp + 0x6c]
call sym.___rust_dealloc
add esp, 0xc
mov ebx, dword [esp + 0x108]
test ebx, ebx
je 0x1004dd90
mov edi, dword [esp + 0x104]
add edi, 4
jmp 0x1004dd76
add edi, 0x10
dec ebx
je 0x1004dd90
mov eax, dword [edi - 4]
test eax, eax
je 0x1004dd70
push 1
push eax
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1004dd70
mov eax, dword [esp + 0x100]
test eax, eax
je 0x1004ddb0
shl eax, 4
push 4
push eax
push dword [esp + 0x10c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x70]
cmp eax, 0x80000000
je 0x1004ddce
test eax, eax
je 0x1004ddce
push 1
push eax
push dword [esp + 0x7c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x118]
cmp eax, 0x80000000
je 0x1004ddf2
test eax, eax
je 0x1004ddf2
push 1
push eax
push dword [esp + 0x124]
call sym.___rust_dealloc
add esp, 0xc
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x1004de30
mov edi, dword [esp + 0x110]
add edi, 4
jmp 0x1004de16
add edi, 0x10
dec ebx
je 0x1004de30
mov eax, dword [edi - 4]
test eax, eax
je 0x1004de10
push 1
push eax
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1004de10
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x1004de50
shl eax, 4
push 4
push eax
push dword [esp + 0x118]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x80]
mov ebx, esi
lea edi, [esp + 0x13c]
cmp eax, 0x80000000
je 0x1004de7d
test eax, eax
je 0x1004de7d
push 1
push eax
push dword [esp + 0x8c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x10]
cmp eax, 0x80000000
je 0x1004dea5
test eax, eax
je 0x1004dea5
push 1
push eax
push dword [esp + 0x9c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x128]
test eax, eax
je 0x1004dce0
lock dec dword [eax]
jne 0x1004dce0
lea eax, [esp + 0x128]
push eax
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h4a29081618d08368
add esp, 4
jmp 0x1004dce0
mov eax, esp
push eax
call sym.__LT_alloc..vec..into_iter..IntoIter_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h64acf10016ea01cd
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
test ecx, ecx
je 0x1004defc
push 1
push ecx
push dword [esp + 0x20]
mov esi, eax
call sym.___rust_dealloc
mov eax, esi
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x80000
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
push 0x7d0
push 4
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
ud2