Function at 0x140003910
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x498
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rdx
mov ecx, 8
mov edx, r9d
mov r14, r8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000398d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Invalid_handle_value.__n
call fcn.140001860
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov rax, rsi
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x140003bf4
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x1400039f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____No_module_detected.__n
call fcn.140001860
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
test rdi, rdi
je 0x14000397c
mov rcx, rdi
jmp 0x140003976
mov rdx, r14
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140003a52
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400039f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.____Could_not_get_the
call fcn.1400045a0
mov rcx, rax
mov rdx, r14
call fcn.140004900
mov rcx, rax
lea rdx, str._module.__n
call fcn.1400045a0
test rdi, rdi
je 0x14000397c
mov rcx, rdi
jmp 0x140003976
xorps xmm0, xmm0
mov qword [rsp + 0x490], r15
movups xmmword [rsp + 0x460], xmm0
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x140003a70
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140003c11
mov qword [rsp + 0x4c0], rbp
cmp rbx, 7
ja 0x140003add
add rbx, rbx
mov qword [rsp + 0x478], 7
mov r8, rbx
lea rcx, [rsp + 0x460]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov word [rsp + rbx + 0x460], di
mov r15, qword [rsp + 0x478]
mov rbp, qword [rsp + 0x460]
jmp 0x140003b80
mov rax, rbx
xor edi, edi
or rax, 7
cmp rax, r15
jbe 0x140003afb
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140003b2d
mov ecx, 0xa
mov r15, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb r15, rcx
lea rcx, [r15 + 1]
cmp rcx, rax
ja 0x140003c17
add rcx, rcx
cmp rcx, 0x1000
jb 0x140003b59
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003c17
mov rcx, rax
call fcn.140005120
test rax, rax
je 0x140003bd2
lea rbp, [rax + 0x27]
and rbp, 0xffffffffffffffe0
mov qword [rbp - 8], rax
jmp 0x140003b6b
test rcx, rcx
je 0x140003b68
call fcn.140005120
mov rbp, rax
jmp 0x140003b6b
mov rbp, rdi
add rbx, rbx
mov rdx, r14
mov r8, rbx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rbp], di
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x468], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x460], eax
movups xmm0, xmmword [rsp + 0x460]
movups xmmword [rsi], xmm0
cmp r15, 7
jbe 0x140003be1
lea rdx, [r15*2 + 2]
mov rax, rbp
cmp rdx, 0x1000
jb 0x140003bd9
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.140005164
mov rbp, qword [rsp + 0x4c0]
mov rax, rsi
mov r15, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140005100
add rsp, 0x498
pop r14
pop rdi
pop rsi
pop rbx
ret
call fcn.140003660
int3
call fcn.140001110
int3