Function at 0x140001cb0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1170]
mov eax, 0x1270
call fcn.140007500
sub rsp, rax
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0x1160], rax
mov rbx, rcx
lea r8, [rsp + 0x38]
mov edx, 0x1000
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140001e8b
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004dc0
nop
xor ebx, ebx
test dword [rsp + 0x38], 0xfffffffc
jbe 0x140001dc8
mov r8d, dword [rbp + rbx*4 + 0x50]
test r8d, r8d
je 0x140001db7
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001db7
lea r9, [rsp + 0x3c]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001dae
mov r9d, 0x104
lea r8, [rbp + 0x1050]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea rdx, [rbp + 0x1050]
lea rcx, [rsp + 0x40]
call fcn.140005780
mov rcx, rax
lea rdx, [0x140005960]
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, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov eax, dword [rsp + 0x38]
shr eax, 2
cmp ebx, eax
jb 0x140001d36
lea rcx, [rsp + 0x48]
call fcn.1400052e0
test rax, rax
jne 0x140001df7
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x48], rax
cmp qword [rbp - 0x38], 0
je 0x140001e5a
lea rcx, [rbp - 0x48]
mov rax, qword [rsp + 0x60]
cmp qword [rax], rcx
jne 0x140001e5a
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x80]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x68]
mov dword [rax], edx
cmp byte [rbp - 0x3c], 0
je 0x140001e6a
lea rcx, [rsp + 0x48]
call fcn.1400052e0
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x1160]
xor rcx, rsp
call fcn.140006390
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret