Function at 0x140001910
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x2190]
mov eax, 0x2290
call fcn.140003040
sub rsp, rax
mov rax, qword [0x140007048]
xor rax, rsp
mov qword [rbp + 0x2180], rax
mov r14, rcx
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x1f80]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov dword [rsp + 0x78], r12d
mov edi, r12d
mov qword [rsp + 0x70], r12
xor r15b, r15b
lea r8, [rsp + 0x78]
mov edx, 0x2000
lea rcx, [rbp - 0x80]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x1400019ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
mov rcx, rax
lea rdx, [0x140004640]
call section..text
mov rcx, rax
lea rdx, str._failed_with_error:
call section..text
mov rcx, rax
mov edx, ebx
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, rax
lea rdx, [0x140001260]
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]
lea rax, [r12 - 1]
jmp 0x140001b37
mov eax, dword [rsp + 0x78]
shr eax, 2
mov rbx, r12
mov esi, eax
test eax, eax
je 0x140001b29
mov r8d, dword [rbp + rbx*4 - 0x80]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001aac
mov dword [rsp + 0x7c], r12d
lea r9, [rsp + 0x7c]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140001aac
mov r9d, 0xfa
lea r8, [rbp + 0x1f80]
mov rdx, qword [rsp + 0x70]
mov rcx, rdi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x140001aac
lea rax, [rbp + 0x1f80]
mov r8, r14
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001a94
add rax, 2
test ecx, ecx
jne 0x140001a80
test edx, edx
je 0x140001ab9
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x1f80]
call sub.VCRUNTIME140.dll_memset
inc rbx
cmp rbx, rsi
jae 0x140001b29
jmp 0x140001a13
mov r15b, 1
lea rax, [rsp + 0x20]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8d, 0x25
lea rdx, str.Got_handle_to_the_process_notepad.exe
lea rcx, [rsp + 0x20]
call fcn.1400015b0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov r8d, 4
lea rdx, str.Info
lea rcx, [rsp + 0x40]
call fcn.1400015b0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002140
mov rax, 0xffffffffffffffff
test r15b, r15b
cmovne rax, rdi
mov rcx, qword [rbp + 0x2180]
xor rcx, rsp
call fcn.140002fe0
lea r11, [rsp + 0x2290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret