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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5b8
movaps xmmword [rsp + 0x5a0], xmm6
mov rsi, rcx
lea rcx, [rsp + 0xd0]
mov r8d, 0x4d0
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x100], 0x10001f
cmp byte [0x180160020], 0
jne 0x1800016da
movabs r15, 0x8000000000000000
lea rax, [0x1800c3654]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x60], 0x5f39dc80
mov edx, dword [rsp + 0x60]
call sym.obfstr::xref::inner::h0d0db40db85d0ba1
movabs rcx, 0xfa784a188bfb5972
xor rcx, qword [rax]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 8
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
cmp qword [rsp + 0x30], r15
jne 0x180001ccc
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
call sub.kernel32.dll_GetModuleHandleA
mov r14, rax
test rax, rax
jne 0x1800015fc
mov rcx, rbx
call sub.kernel32.dll_LoadLibraryA
mov r14, rax
test rax, rax
je 0x180001c98
lea rax, [0x1800bea27]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x60], 0x15fa94e5
mov edx, dword [rsp + 0x60]
call sym.obfstr::xref::inner::h977065e36f6d68d5
movabs rcx, 0x8e23026086a13edd
xor rcx, qword [rax]
mov edx, 0x2381dfb7
xor edx, dword [rax + 8]
movzx eax, word [rax + 0xc]
mov r8d, eax
xor r8b, 0xc
shr eax, 8
xor al, 0x42
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], edx
mov byte [rsp + 0x5c], r8b
mov byte [rsp + 0x5d], al
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0xe
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
cmp qword [rsp + 0x30], r15
jne 0x180001d0e
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
mov rcx, r14
mov rdx, r12
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x180001a64
mov byte [0x180160020], 1
mov qword [0x180160028], rax
mov byte [r12], 0
test r15, r15
je 0x1800016c1
mov r8d, 1
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
mov byte [rbx], 0
test rdi, rdi
je 0x1800016da
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
cmp byte [0x180160030], 0
jne 0x180001847
movabs r15, 0x8000000000000000
lea rax, [0x1800c066f]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x60], 0xedd0dce1
mov edx, dword [rsp + 0x60]
call sym.obfstr::xref::inner::hcf93aff3cb5dc820
movabs rcx, 0xdbda0c704b4516b9
xor rcx, qword [rax]
movzx eax, byte [rax + 8]
xor al, 0x1a
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x58], al
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 9
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
cmp qword [rsp + 0x30], r15
jne 0x180001d4d
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
call sub.kernel32.dll_GetModuleHandleA
mov r14, rax
lea rax, [0x1800bc5d7]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x60], 0x3a526d79
mov edx, dword [rsp + 0x60]
call sym.obfstr::xref::inner::he164bd07f1170d78
movabs rcx, 0x4f356ce8260712c
xor rcx, qword [rax]
mov edx, 0xab7e9abb
xor edx, dword [rax + 8]
movzx eax, word [rax + 0xc]
mov r8d, eax
xor r8b, 0x4f
shr eax, 8
xor al, 0x13
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], edx
mov byte [rsp + 0x5c], r8b
mov byte [rsp + 0x5d], al
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0xe
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h35ff5c462c0ae14b
cmp qword [rsp + 0x30], r15
jne 0x180001d8c
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
mov rcx, r14
mov rdx, r12
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x180001a64
mov byte [0x180160030], 1
mov qword [0x180160038], rax
mov byte [r12], 0
test r15, r15
je 0x18000182e
mov r8d, 1
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
mov byte [rbx], 0
test rdi, rdi
je 0x180001847
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov qword [rsp + 0xa0], rsi
lea rdx, [sym.secondstage::amsi_care::exception_handler::hbf5829e760a76507]
mov ecx, 1
call sub.kernel32.dll_AddVectoredExceptionHandler
mov rdi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov ebp, eax
mov esi, dword [rsp + 0x80]
mov rax, qword [0x18014b048]
movzx eax, byte [rax]
mov ecx, 0x100000
mov edx, 1
call sym.__rust_alloc
test rax, rax
je 0x180001cbd
mov dword [rsp + 0x9c], 0
lea r9, [rsp + 0x9c]
mov ecx, 5
mov qword [rsp + 0x90], rax
mov rdx, rax
mov r8d, 0x100000
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x180001c07
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 8
mov qword [rsp + 0x40], 0
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x180001c07
mov qword [rsp + 0xb0], rdi
test ebp, ebp
mov eax, 1
cmove rax, rsi
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x90]
mov rax, rcx
add rax, 0x100
mov qword [rsp + 0xb8], rax
xor esi, esi
xorps xmm6, xmm6
lea r14, [rsp + 0xa8]
lea r15, [rsp + 0x60]
lea r12, [rsp + 0x50]
nop dword [rax]
mov rax, qword [rsp + 0xc0]
cmp qword [rcx + rsi + 0x50], rax
je 0x1800019c0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rsi]
test rax, rax
je 0x180001ab3
add rsi, rax
cmp rsi, qword [rsp + 0xc8]
jb 0x180001980
jmp 0x180001ab3
mov rax, qword [rsp + 0x90]
mov edi, dword [rax + rsi + 4]
test rdi, rdi
je 0x18000198f
mov rax, qword [rsp + 0xb8]
lea rbp, [rax + rsi]
jmp 0x1800019fa
mov rax, qword [rsp + 0x38]
mov qword [rax + r13*8], rbx
inc r13
mov qword [rsp + 0x40], r13
add rbp, 0x50
dec rdi
je 0x18000198f
mov qword [rsp + 0xa8], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x50], 0
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x58], rax
mov rcx, r14
mov edx, 0x1fffff
mov r8, r15
mov r9, r12
call sub.ntdll.dll_NtOpenThread
test eax, eax
js 0x1800019f1
mov rbx, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x40]
cmp r13, qword [rsp + 0x30]
jne 0x1800019e0
lea rcx, [rsp + 0x30]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::ha033745da6c8368a
jmp 0x1800019e0
mov qword [rsi], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
mov byte [r12], 0
test r15, r15
je 0x180001a96
mov r8d, 1
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
mov byte [rbx], 0
test rdi, rdi
je 0x180001c79
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
jmp 0x180001c74
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x180001beb
movabs rdi, 0xffffffff0000fffb
mov r15, qword [rsp + 0x38]
mov edx, 0x100000
mov r8d, 1
call sym.__rust_dealloc
shl rsi, 3
xor r13d, r13d
lea rbx, [rsp + 0xd0]
lea rbp, [rdi + 3]
nop dword [rax + rax]
mov rax, r15
add rax, r13
je 0x180001bc0
mov r12, qword [rax]
mov rcx, r12
mov rdx, rbx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x180001c40
cmp byte [0x180160020], 1
jne 0x180001b5d
mov rax, qword [0x180160028]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x140]
and rax, rbp
or rax, 1
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x138], 0
cmp byte [0x180160030], 1
jne 0x180001b98
mov rax, qword [0x180160038]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x140]
and rax, rdi
or rax, 4
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x138], 0
mov rcx, r12
mov rdx, rbx
call sub.ntdll.dll_NtSetContextThread
test eax, eax
jne 0x180001c40
mov rcx, r12
call sub.ntdll.dll_NtClose
add r13, 8
cmp rsi, r13
jne 0x180001b00
mov rsi, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test r14, r14
jne 0x180001c64
jmp 0x180001c79
test r14, r14
je 0x180001c07
mov rcx, qword [rsp + 0x38]
shl r14, 3
mov r8d, 8
mov rdx, r14
call sym.__rust_dealloc
mov edx, 0x100000
mov r8d, 1
mov rcx, qword [rsp + 0x90]
call sym.__rust_dealloc
mov rsi, qword [rsp + 0xa0]
mov qword [rsi], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
jmp 0x180001c79
mov rsi, qword [rsp + 0xa0]
mov qword [rsi], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
test r14, r14
je 0x180001c79
shl r14, 3
mov r8d, 8
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x5a0]
add rsp, 0x5b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
mov byte [rbx], 0
test rdi, rdi
jne 0x180001aa2
jmp 0x180001c79
mov ecx, 1
mov edx, 0x100000
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x1800c80a8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800c8020]
lea r9, section..rdata
lea r8, [rsp + 0x60]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h8f275d6668207d54
jmp 0x180001dc9
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x1800c80c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800c8020]
lea r9, section..rdata
lea r8, [rsp + 0x60]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h8f275d6668207d54
jmp 0x180001dc9
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x1800c80d8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800c8020]
lea r9, section..rdata
lea r8, [rsp + 0x60]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h8f275d6668207d54
jmp 0x180001dc9
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x1800c80f0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800c8020]
lea r9, section..rdata
lea r8, [rsp + 0x60]
mov edx, 0x2b
call sym.core::result::unwrap_failed::h8f275d6668207d54
ud2