Function at 0x14000d040
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400c2040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rdx
mov qword [rsp + 0x20], rdx
mov edx, ecx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d0da
lea rcx, str.CreateToolhelp32Snapshot__of_modules_
call fcn.140001460
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000d0cd
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14000d0c8
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d10b
mov rcx, r8
call fcn.1400824c0
xor r14d, r14d
mov byte [rbx], r14b
xor al, al
jmp 0x14000d352
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x14000d112
lea rcx, str.error_module32first
call fcn.140001460
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000d097
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x180], r14
mov qword [rbp + 0x188], r14
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000d140
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call fcn.14000a5c0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x190], xmm0
mov qword [rbp + 0x1a0], r14
mov qword [rbp + 0x1a8], r14
lea rax, [rbp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14000d180
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x190]
call fcn.14000a5c0
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000d1a7
mov r8, qword [rbx]
lea rax, [rbp + 0x170]
mov rdi, qword [rbp + 0x170]
mov rsi, qword [rbp + 0x188]
cmp rsi, 0xf
cmova rax, rdi
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000d1e3
inc rax
test ecx, ecx
jne 0x14000d1d0
test edx, edx
jne 0x14000d274
lea rcx, [0x1400a4b54]
call fcn.140001460
lea rdx, [rsp + 0x60]
lea rcx, str._n_____MODULE_NAME:______s
call fcn.140001460
lea rdx, [rbp + 0x60]
lea rcx, str._n_____executable_______s
call fcn.140001460
mov edx, dword [rsp + 0x38]
lea rcx, str._n_____process_ID______0x_08X
call fcn.140001460
mov edx, dword [rsp + 0x3c]
lea rcx, str._n_____ref_count__g________0x_04X
call fcn.140001460
mov edx, dword [rsp + 0x40]
lea rcx, str._n_____ref_count__p________0x_04X
call fcn.140001460
mov edx, dword [rsp + 0x48]
lea rcx, str._n_____base_address____0x_08X
call fcn.140001460
mov edx, dword [rsp + 0x50]
lea rcx, str._n_____base_size________d
call fcn.140001460
lea rcx, [0x1400a4b54]
call fcn.140001460
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 0xf
jbe 0x14000d2b6
inc rdx
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d2b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d384
call fcn.1400824c0
nop
cmp rsi, 0xf
jbe 0x14000d2ed
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000d2e5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d38b
mov rcx, rdi
call fcn.1400824c0
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x14000d115
lea rcx, [0x1400a4b54]
call fcn.140001460
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000d34f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000d34a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d392
mov rcx, r8
call fcn.1400824c0
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400824a0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3