Function at 0x140002079
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x2238
call fcn.140002270
sub rsp, rax
lea rsi, [rsp + 0x230]
mov r8d, 0x2000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
mov r8d, 0x1f4
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x24]
mov dword [r8], 0
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov edx, 0x2000
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x1400021ec
mov r12d, dword [rsp + 0x24]
cmp r12, 4
jb 0x1400021ec
shr r12d, 2
lea rbx, [rsp + 0x30]
lea r14, str._with_PID:
lea r15, [0x140001ba2]
mov rdi, qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rsi, qword [sym.imp.KERNEL32.dll_OpenProcess]
xor r13d, r13d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._Attempt_get_process_handle:
call fcn.1400018e4
mov rcx, rax
mov rdx, rbx
call fcn.1400018e4
mov rcx, rax
mov rdx, r14
call fcn.1400018e4
mov edx, dword [rsp + r13*4 + 0x230]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
mov rcx, rax
mov rdx, r15
call rdi
mov r8d, dword [rsp + r13*4 + 0x230]
mov ecx, 0x1fffff
xor edx, edx
call rsi
test rax, rax
je 0x1400021e0
mov rbp, rax
mov dword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x28]
mov r8d, 8
lea r9, [rsp + 0x20]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400021e0
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
mov r8, rbx
mov r9d, 0xfa
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x1400021e0
mov rcx, rbp
call fcn.140002013
test eax, eax
je 0x1400021e0
mov rcx, rbp
call fcn.140002001
cmp rax, 0xffffffffffffffff
jne 0x14000220a
mov r8d, 0x1f4
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
inc r13
cmp r12, r13
jne 0x14000211d
mov rbp, 0xffffffffffffffff
mov rax, rbp
add rsp, 0x2238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._Got_a_handle_to_process:
call fcn.1400018e4
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400018e4
lea rdx, str._with_PID:
mov rcx, rax
call fcn.1400018e4
mov edx, dword [rsp + r13*4 + 0x230]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
lea rdx, [0x140001ba2]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400021f3