Function at 0x140016b40
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rsp + 0x20], 1
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140016bd7
lea rdx, str.Error_when_creating_a_snapshot_of_modules.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b180
lea rdx, [0x14000b570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140016f42
mov dword [rbp - 0x70], 0x438
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140016f15
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov qword [rbp + 0x3e0], rdi
mov qword [rbp + 0x3e8], rdi
lea rax, [rbp + 0x1c0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140016c20
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call fcn.14000bb30
nop
lea rdi, [rbp + 0x3d0]
cmp qword [rbp + 0x3e8], 8
setae r12b
cmovae rdi, qword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x3e0]
test rsi, rsi
je 0x140016d41
mov r13d, pe_nt_image_headers64
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x3f0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140051eb4]
lea rdx, [0x140051eb8]
nop
movzx eax, word [rcx]
cmp ax, r13w
jae 0x140016ce1
movzx eax, al
mov byte [rbp + rax + 0x3f0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140016c90
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
movzx eax, word [rcx]
cmp ax, r13w
jae 0x140016cd6
cmp byte [rbp + rax + 0x3f0], 0
jne 0x140016d39
cmp rcx, rdi
je 0x140016d41
sub rcx, 2
jmp 0x140016cc3
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
mov r9d, 0x5c
nop dword [rax]
mov edx, 2
movzx r8d, word [rcx]
lea rax, [0x140051eb4]
cmp r9w, r8w
je 0x140016d39
cmp rdx, 1
je 0x140016d2e
dec rdx
add rax, 2
cmp word [rax], r8w
jne 0x140016d16
test rax, rax
jne 0x140016d39
cmp rcx, rdi
je 0x140016d41
sub rcx, 2
jmp 0x140016d00
sub rcx, rdi
sar rcx, 1
jmp 0x140016d48
mov rcx, 0xffffffffffffffff
xor r13d, r13d
cmp rcx, 0xffffffffffffffff
je 0x140016e10
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
cmp rsi, rcx
jb 0x140016f70
sub rsi, rcx
mov r8, 0xffffffffffffffff
cmp rsi, r8
cmovb r8, rsi
lea rax, [rbp + 0x3d0]
test r12b, r12b
cmovne rax, qword [rbp + 0x3d0]
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x30]
call fcn.14000bb30
mov dword [rsp + 0x20], 3
mov rdx, qword [rbp + 0x3e8]
cmp rdx, 8
jb 0x140016df5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016df0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016df0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048f98
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x3d0], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x3e0], xmm1
nop dword [rax]
mov ecx, 0x48
call fcn.140048d0c
mov rdi, rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x68]
call fcn.14000a130
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140016e60
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000bb30
nop
mov r9, rsi
mov r8d, dword [rbp - 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400169f0
nop
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140016ea8
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x140016eb5
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.1400173f0
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140016e10
mov rdx, qword [rbp + 0x3e8]
cmp rdx, 8
jb 0x140016f38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016f0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016f0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048f98
jmp 0x140016f38
lea rdx, str.Error_when_listing_process_modules.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b180
lea rdx, [0x14000b570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140048a50
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.14000acf0
nop
int3