Function at 0x140213ba0
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x348
mov rsi, rcx
test rdx, rdx
je 0x140213c30
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov ecx, 0x410
xor edx, edx
mov r8d, ebx
call sub.kernel32.dll_OpenProcess
mov r14, rax
test rax, rax
jne 0x140213bf2
mov ecx, 0x1000
xor edx, edx
mov r8d, ebx
call sub.kernel32.dll_OpenProcess
mov r14, rax
test rax, rax
je 0x140213c30
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x108]
mov rcx, r14
xor edx, edx
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
je 0x140213c3c
mov qword [rsi], 2
mov rcx, r14
call sub.kernel32.dll_CloseHandle
jmp 0x1402140c7
mov qword [rsi], 2
jmp 0x1402140c7
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x138], 0
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x70]
lea r9, [rsp + 0x138]
mov rcx, r14
mov r8d, 4
call sub.psapi.dll_EnumProcessModulesEx
test eax, eax
je 0x140213ccd
mov r15, qword [rsp + 0x70]
lea r12, [rsp + 0x138]
mov r8d, 0x20a
mov rcx, r12
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r14
mov rdx, r15
mov r8, r12
mov r9d, 0x105
call sub.psapi.dll_GetModuleBaseNameW
lea rcx, [rsp + 0x80]
mov r8d, 0x105
mov rdx, r12
call sym.sysinfo::windows::process::null_terminated_wchar_to_string::h97953fef99ef27c5
jmp 0x140213cf1
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], 0
lea r15, [rsp + 0x138]
mov r8d, 0x20a
mov rcx, r15
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r14
xor edx, edx
mov r8, r15
mov r9d, 0x105
call sub.psapi.dll_GetModuleFileNameExW
lea rcx, [rsp + 0xb8]
mov r8d, 0x105
mov rdx, r15
call sym.sysinfo::windows::process::null_terminated_wchar_to_string::h97953fef99ef27c5
mov byte [rsp + 0xd0], 1
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xc8]
test r15, r15
je 0x140213d84
js 0x1402140ef
mov rax, qword [0x1403591d8]
movzx eax, byte [rax]
mov eax, 1
mov qword [rsp + 0x30], rax
mov edx, 1
mov rcx, r15
call sym.__rust_alloc
test rax, rax
je 0x1402140f6
mov r13, rax
jmp 0x140213d8a
mov r13d, 1
mov rcx, r13
mov rdx, r12
mov r8, r15
call sym.memcpy
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r15
mov byte [rsp + 0xb0], 1
lea rcx, [rsp + 0x98]
call sym.std::path::PathBuf::pop::hfddc44ae342c74a0
lea r13, [rsp + 0x138]
lea rdx, [rsp + 0x38]
mov rcx, r13
call sym.sysinfo::windows::process::get_process_params::h2df2b4e3b7a82ef9
mov rax, qword [rsp + 0x138]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140213e27
mov byte [rsp + 0x2f], 1
mov eax, 1
mov qword [rsp + 0x48], rax
mov ecx, 8
xor eax, eax
xor edx, edx
xor r8d, r8d
mov r9d, 8
xor r10d, r10d
xor r11d, r11d
mov qword [rsp + 0x30], r11
xor r11d, r11d
mov qword [rsp + 0x60], r11
jmp 0x140213e9e
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x148]
mov r8, qword [rsp + 0x150]
mov r9, qword [rsp + 0x158]
mov r10, qword [rsp + 0x160]
mov r11, qword [rsp + 0x168]
mov qword [rsp + 0x30], r11
mov r11, qword [rsp + 0x170]
mov qword [rsp + 0x48], r11
mov r11, qword [rsp + 0x178]
mov qword [rsp + 0x60], r11
movzx r11d, byte [rsp + 0x180]
mov byte [rsp + 0x2f], r11b
mov r11d, dword [rsp + 0x181]
mov dword [rsp + 0x40], r11d
mov r11d, dword [rsp + 0x184]
mov dword [rsp + 0x43], r11d
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xf8], r9
mov qword [rsp + 0x100], r10
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x78]
mov rcx, r14
mov r8, r13
mov r9, r13
call sub.kernel32.dll_GetProcessTimes
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x78]
shr rdx, 0x17
movabs r15, 0xfffffffd49ef6f00
add r15, rdx
xor r14d, r14d
cmp r15, rdi
cmovbe r14, r15
xor r12d, r12d
cmp qword [rsp + 0x68], 0
setne r13b
mov rcx, qword [rsp + 0x38]
mov edx, ebp
call sym.sysinfo::windows::process::get_process_user_id::h7bdbcbc4cf7252d7
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdx
mov rbp, qword [rsp + 0x38]
mov rax, qword [0x1403591d8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1402140de
sub rdi, r14
mov r12b, r13b
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rbp
mov rcx, qword [rsp + 0x90]
mov qword [rsi + 0x20], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x10], xmm0
mov rcx, qword [rsp + 0xe8]
mov qword [rsi + 0x38], rcx
movups xmm0, xmmword [rsp + 0xd8]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [rsp + 0xf0]
movups xmmword [rsi + 0x60], xmm0
mov rcx, qword [rsp + 0x100]
mov qword [rsi + 0x70], rcx
movups xmm0, xmmword [rsp + 0xb8]
movups xmm1, xmmword [rsp + 0xc8]
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x50], xmm1
mov rcx, qword [rsp + 0x30]
mov qword [rsi + 0x78], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x80], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 0x88], rcx
movzx ecx, byte [rsp + 0x2f]
mov byte [rsi + 0x90], cl
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x43]
mov dword [rsi + 0x91], ecx
mov dword [rsi + 0x94], edx
movups xmm0, xmmword [rsp + 0x98]
movups xmm1, xmmword [rsp + 0xa8]
movups xmmword [rsi + 0x98], xmm0
movups xmmword [rsi + 0xa8], xmm1
mov qword [rsi], r12
mov rcx, qword [rsp + 0x68]
mov qword [rsi + 8], rcx
mov dword [rsi + 0xb8], 1
mov qword [rsi + 0xc0], rbx
mov rcx, qword [rsp + 0x58]
mov qword [rsi + 0xc8], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0xd0], rcx
xorps xmm0, xmm0
movups xmmword [rsi + 0xd8], xmm0
mov qword [rsi + 0xe8], rax
movups xmmword [rsi + 0x100], xmm0
movups xmmword [rsi + 0xf0], xmm0
mov qword [rsi + 0x110], r15
mov qword [rsi + 0x118], rdi
movups xmmword [rsi + 0x120], xmm0
movups xmmword [rsi + 0x130], xmm0
mov dword [rsi + 0x140], 0
mov byte [rsi + 0x144], 1
mov rax, rsi
add rsp, 0x348
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
jmp 0x140214103
xor eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2