Function at 0x18003c480
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6f0]
sub rsp, 0x7f0
mov rax, qword [0x1808e7040]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r14, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x80], r13d
mov dword [rsp + 0x20], 2
lea r9, [rbp + 0x80]
mov r8d, 0x400
lea rdx, [rbp + 0xb0]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov eax, dword [rbp + 0x80]
shr eax, 3
test eax, eax
je 0x18003c95a
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov ebx, eax
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rbp + r15*8 + 0xb0]
test rbx, rbx
je 0x18003c949
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x5d0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x5d0]
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x4c0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x4c0]
mov rdx, qword [rbp + r15*8 + 0xb0]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov r9d, 0x18
lea r8, [rsp + 0x58]
mov rdx, qword [rbp + r15*8 + 0xb0]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r12, qword [rbp + r15*8 + 0xb0]
movsxd rsi, dword [rsp + 0x60]
cmp qword [r14], 0
jne 0x18003c5e7
xor ebx, ebx
or r13d, 1
jmp 0x18003c61e
mov rcx, rsi
call fcn.180040828
mov rbx, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9, rsi
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rdx, r12
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
or r13d, 3
mov dword [rsp + 0x30], r13d
mov qword [rbp + 0xa8], rbx
mov rcx, rbx
call qword [sym.imp.dbghelp.dll_ImageNtHeader]
movzx r13d, word [rax + 6]
mov dword [rsp + 0x40], r13d
movzx edi, word [rax + 0x14]
add rdi, rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x4c0]
lea rcx, [rsp + 0x70]
call fcn.18003d6e0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x18003c8ec
mov dword [rsp + 0x34], 0
test r13d, r13d
je 0x18003c8ec
lea r13, [rdi + 0x24]
nop dword [rax]
xor ecx, ecx
lea rdx, str..text
nop dword [rax]
movzx eax, byte [rcx + r13 - 0xc]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x18003c8ca
cmp rcx, 6
jne 0x18003c6b0
mov r14d, dword [r13]
add r14, rbx
mov r15d, dword [r13 + 4]
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov qword [rbp + 0x98], rax
test r15, r15
je 0x18003c7ac
mov r8d, r15d
mov edx, 0xffffffe9
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x18003c7ac
sub rdi, r14
cmp rdi, 0xffffffffffffffff
je 0x18003c7ac
mov rsi, qword [rbp + 0x90]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rdi + r14]
sub ecx, ebx
add rcx, r12
mov qword [rbp + 0xa0], rcx
cmp rsi, qword [rbp + 0x98]
je 0x18003c760
mov qword [rsi], rcx
mov rsi, qword [rbp + 0x90]
add rsi, 8
mov qword [rbp + 0x90], rsi
jmp 0x18003c77d
lea r8, [rbp + 0xa0]
mov rdx, rsi
lea rcx, [rbp + 0x88]
call fcn.18003dd60
mov rsi, qword [rbp + 0x90]
inc rdi
cmp rdi, r15
jae 0x18003c7b3
mov r8, r15
sub r8, rdi
lea rcx, [rdi + r14]
mov edx, 0xffffffe9
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x18003c7b3
sub rdi, r14
cmp rdi, 0xffffffffffffffff
jne 0x18003c730
jmp 0x18003c7b3
mov rsi, qword [rbp + 0x90]
mov rdi, qword [rbp + 0x88]
cmp rdi, rsi
je 0x18003c882
nop dword [rax]
nop word [rax + rax]
mov r15, qword [rdi]
mov ecx, r15d
sub ecx, r12d
mov r14d, ecx
sub ecx, dword [r13]
mov edx, dword [r13 + 8]
add edx, ecx
xor r8d, r8d
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
xor eax, eax
mov dword [rbp + 0x4b0], eax
mov byte [rbp + 0x4b4], al
mov r8d, 5
lea rdx, [rbp + 0x4b0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov eax, dword [r14 + rbx]
cmp eax, dword [rbp + 0x4b0]
jne 0x18003c834
movzx eax, byte [r14 + rbx + 4]
cmp al, byte [rbp + 0x4b4]
je 0x18003c86e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x18003c86e
mov qword [rbp + 0xa0], 0
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rbp + 0x4b0]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rdi, 8
cmp rdi, rsi
jne 0x18003c7d0
mov rdi, qword [rbp + 0x88]
test rdi, rdi
je 0x18003c8ca
mov rax, qword [rbp + 0x98]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18003c8c2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003c98a
mov rcx, rdi
call fcn.180040740
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
add r13, 0x28
cmp eax, dword [rsp + 0x40]
jl 0x18003c6a0
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x80]
call fcn.18003d600
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test rbx, rbx
je 0x18003c93f
mov rcx, rbx
call fcn.180040740
mov rax, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x30]
inc r15
mov qword [rsp + 0x50], r15
cmp r15, rax
jl 0x18003c540
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.1800401c0
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3