Function at 0x140004290
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0
mov dword [rbp - 4], 0
mov r14, qword [rdx]
mov edi, 8
xor r15d, r15d
xor esi, esi
jmp 0x1400042fd
mov r13, r12
mov qword [rbp - 0x18], r13
mov r15, r13
mov esi, r12d
lea r8d, [r15*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
lea r9, [rbp - 4]
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x14000439d
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x1400043f9
mov rsi, r12
sub rsi, r15
jbe 0x1400042f0
mov rax, qword [rbp - 0x28]
sub rax, r15
mov r13, r15
cmp rax, rsi
jae 0x14000435b
lea rcx, [rbp - 0x28]
mov rdx, r15
mov r8, rsi
call fcn.14001d360
mov rdi, qword [rbp - 0x20]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x14000438e
mov r8, r15
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, r15
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x1400042f3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbp - 0x30]
mov qword [rcx + 0x20], rax
mov qword [rcx], 0
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400043e4
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140003a80
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp r15, r14
jb 0x140004502
cmp r12d, 8
jae 0x14000441b
mov eax, 8
xor ecx, ecx
jmp 0x1400044d9
mov r15, r14
shl r15, 4
movzx eax, byte [0x14002d1d1]
mov edx, 8
mov rcx, r15
call fcn.140003a70
test rax, rax
je 0x140004516
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x140004453
xor edx, edx
jmp 0x14000449f
mov r8d, r14d
and r8d, 0xfffffffc
lea r9, [rax + 0x38]
xor edx, edx
mov r10, qword [rdi + rdx*8]
mov qword [r9 - 0x38], rbx
mov qword [r9 - 0x30], r10
mov r10, qword [rdi + rdx*8 + 8]
mov qword [r9 - 0x28], rbx
mov qword [r9 - 0x20], r10
mov r10, qword [rdi + rdx*8 + 0x10]
mov qword [r9 - 0x18], rbx
mov qword [r9 - 0x10], r10
mov r10, qword [rdi + rdx*8 + 0x18]
mov qword [r9 - 8], rbx
mov qword [r9], r10
add rdx, 4
add r9, 0x40
cmp r8, rdx
jne 0x140004460
test rcx, rcx
je 0x1400044d6
lea r8, [rdi + rdx*8]
shl rdx, 4
add rdx, rax
add rdx, 8
shl rcx, 3
xor r9d, r9d
nop word [rax + rax]
mov r10, qword [r8 + r9]
mov qword [rdx + r9*2 - 8], rbx
mov qword [rdx + r9*2], r10
add r9, 8
cmp rcx, r9
jne 0x1400044c0
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x28]
test rdx, rdx
jne 0x1400043d2
jmp 0x1400043e4
lea r8, str.C:Users_assassin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinproc_0.6.4_srcprocessmod.rs
mov rcx, r14
mov rdx, r15
call fcn.14001e2f0
jmp 0x140004523
mov ecx, 8
mov rdx, r15
call fcn.14001dcc0
ud2