Function at 0x140016cf0
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 0x140016d87
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.1400021d0
lea rdx, [0x14000b8f0]
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 0x1400170f2
mov dword [rbp - 0x70], 0x438
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1400170c5
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 0x140016dd0
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call fcn.14000beb0
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 0x140016ef1
mov r13d, 0x100
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x3f0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140051f04]
lea rdx, [0x140051f08]
nop
movzx eax, word [rcx]
cmp ax, r13w
jae 0x140016e91
movzx eax, al
mov byte [rbp + rax + 0x3f0], 1
add rcx, 2
cmp rcx, rdx
jne 0x140016e40
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 0x140016e86
cmp byte [rbp + rax + 0x3f0], 0
jne 0x140016ee9
cmp rcx, rdi
je 0x140016ef1
sub rcx, 2
jmp 0x140016e73
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, [0x140051f04]
cmp r9w, r8w
je 0x140016ee9
cmp rdx, 1
je 0x140016ede
dec rdx
add rax, 2
cmp word [rax], r8w
jne 0x140016ec6
test rax, rax
jne 0x140016ee9
cmp rcx, rdi
je 0x140016ef1
sub rcx, 2
jmp 0x140016eb0
sub rcx, rdi
sar rcx, 1
jmp 0x140016ef8
mov rcx, 0xffffffffffffffff
xor r13d, r13d
cmp rcx, 0xffffffffffffffff
je 0x140016fc0
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
cmp rsi, rcx
jb 0x140017120
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.14000beb0
mov dword [rsp + 0x20], 3
mov rdx, qword [rbp + 0x3e8]
cmp rdx, 8
jb 0x140016fa5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016fa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016fa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049448
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.1400491bc
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.14000a6f0
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 0x140017010
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000beb0
nop
mov r9, rsi
mov r8d, dword [rbp - 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140016ba0
nop
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140017058
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x140017065
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.1400175a0
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140016fc0
mov rdx, qword [rbp + 0x3e8]
cmp rdx, 8
jb 0x1400170e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400170be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400170be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049448
jmp 0x1400170e8
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.1400021d0
lea rdx, [0x14000b8f0]
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.140048f00
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.14000b240
nop
int3