Function at 0x140123190
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x508
mov rsi, rcx
mov qword [rsp + 0x58], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140123513
mov r12, rax
mov qword [rsp + 0x78], rsi
lea rsi, [rsp + 0xd0]
mov r8d, 0x438
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0xd0], 0x438
mov rcx, r12
mov rdx, rsi
call sub.KERNEL32.dll_Module32FirstW
cmp eax, 1
jne 0x140123506
lea r13, [rsp + 0x508]
lea r14, [rsp + 0x38]
jmp 0x140123289
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
mov rcx, rdx
shl rcx, 6
movups xmm0, xmmword [rsp + 0x90]
movups xmm1, xmmword [rsp + 0xa0]
movups xmm2, xmmword [rsp + 0xb0]
movups xmm3, xmmword [rsp + 0xc0]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdx
mov qword [rsp + 0x68], rdx
nop word [rax + rax]
mov rcx, r12
lea rdx, [rsp + 0xd0]
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
jne 0x140123506
xor r8d, r8d
nop dword [rax]
cmp word [rsp + r8*2 + 0x300], 0
je 0x1401232f0
lea rax, [rsp + r8*2]
add rax, 0x300
cmp word [rax + 2], 0
je 0x1401232d7
cmp word [rax + 4], 0
je 0x1401232dc
cmp word [rax + 6], 0
je 0x1401232e2
cmp word [rax + 8], 0
je 0x1401232e8
add r8, 5
add rax, 0xa
cmp rax, r13
jne 0x140123290
mov r8d, 0x104
jmp 0x1401232f0
inc r8
jmp 0x1401232f0
add r8, 2
jmp 0x1401232f0
add r8, 3
jmp 0x1401232f0
add r8, 4
nop dword [rax]
mov rcx, r14
lea rdx, [rsp + 0x300]
call sym.std::sys_common::wtf8::Wtf8Buf::from_wide::hf911d984dc21f658
mov rbp, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
movzx edi, byte [rsp + 0x50]
lea rcx, [rsp + 0x51]
mov eax, dword [rcx]
mov ecx, dword [rcx + 3]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2b], ecx
mov rcx, r14
mov rdx, rbp
mov r8, rbx
call sym.std::backtrace_rs::symbolize::gimli::mmap::he7431445c8655116
cmp qword [rsp + 0x38], 0
je 0x1401234e7
mov qword [rsp + 0x20], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov r9d, 0x40
mov rcx, rsi
mov rdx, r15
xor r8d, r8d
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h4e9d56dfaa22acb2
test rax, rax
je 0x1401234d0
cmp rdx, 0x40
jb 0x1401234d0
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1401234d0
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x88], rax
mov rcx, r14
mov rdx, rsi
mov r8, r15
lea r9, [rsp + 0x88]
call sym.object::read::pe::file::ImageNtHeaders::parse::h8c7a9b10756297f3
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1401234d0
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rax
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14012353b
mov r15, rax
mov eax, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0x70]
mov qword [r15], rcx
mov qword [r15 + 8], rax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rsp + 0x3b], ecx
mov dword [rsp + 0x38], eax
mov rcx, rsi
call fcn.140165214
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_CloseHandle
cmp dil, 2
je 0x140123270
mov rax, qword [rsp + 0x80]
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], 1
mov qword [rsp + 0xa8], 1
mov qword [rsp + 0xb0], rbp
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rbx
mov byte [rsp + 0xc8], dil
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3b]
lea rdx, [rsp + 0xc9]
mov dword [rdx + 3], ecx
mov dword [rdx], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rsp + 0x60]
jne 0x140123220
lea rcx, [rsp + 0x58]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::hbbfce72ccb319cb7
jmp 0x14012321b
mov rcx, rsi
call fcn.140165214
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_CloseHandle
mov r15, qword [rsp + 0x20]
test r15, r15
je 0x140123270
mov r8d, 1
mov rcx, rbp
mov rdx, r15
call sym.__rust_dealloc
jmp 0x140123270
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
mov rsi, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x508
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2