Function at 0x140001640
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 - 0xc20]
sub rsp, 0xd20
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0xc10], rax
mov r15, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov r13d, r12d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x7d0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x7d0]
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x78], r12d
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x78]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov esi, r12d
mov ebx, r12d
mov r14d, dword [rbp - 0x78]
shr r14, 3
test r14, r14
je 0x14000179f
mov rdi, qword [rbp + rbx*8 - 0x40]
test rdi, rdi
je 0x140001777
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x8e0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x8e0]
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x140001777
lea rax, [rbp + 0x7d0]
lea r8, [rbp + 0x8e0]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001773
inc rax
test ecx, ecx
jne 0x140001760
test edx, edx
je 0x140001783
inc esi
inc rbx
cmp rbx, r14
jge 0x14000179f
jmp 0x140001710
movsxd rdx, esi
mov r9d, 0x18
lea r8, [rsp + 0x70]
mov rdx, qword [rbp + rdx*8 - 0x40]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
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 + 0x3c0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x74], r12d
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x74]
mov r8d, 0x400
lea rdx, [rbp + 0x3c0]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov r14, r12
mov qword [rsp + 0x50], r12
mov ebx, dword [rbp - 0x74]
shr rbx, 3
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x140001bd6
mov rax, rbx
nop dword [rax + rax]
mov rbx, qword [rbp + r14*8 + 0x3c0]
test rbx, rbx
je 0x140001bc5
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0xb00]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0xb00]
mov rdx, rbx
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x9f0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x9f0]
mov rdx, qword [rbp + r14*8 + 0x3c0]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov r9d, 0x18
lea r8, [rsp + 0x58]
mov rdx, qword [rbp + r14*8 + 0x3c0]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r12, qword [rbp + r14*8 + 0x3c0]
movsxd rsi, dword [rsp + 0x60]
cmp qword [r15], 0
jne 0x1400018b7
xor ebx, ebx
or r13d, 1
jmp 0x1400018ee
mov rcx, rsi
call fcn.1400032ec
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 [r15]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
or r13d, 3
mov dword [rsp + 0x30], r13d
mov qword [rbp - 0x50], 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, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x9f0]
lea rcx, [rbp - 0x40]
call fcn.140002920
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x140001b6a
mov dword [rbp - 0x78], 0
test r13d, r13d
je 0x140001b6a
lea r13, [rdi + 0x24]
nop dword [rax]
nop dword [rax + 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 0x140001b4a
cmp rcx, 6
jne 0x140001980
mov r14d, dword [r13]
add r14, rbx
mov r15d, dword [r13 + 4]
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x60], rax
test r15, r15
je 0x140001a47
mov r8d, r15d
lea edx, [rcx - 0x1d]
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x140001a47
sub rdi, r14
cmp rdi, 0xffffffffffffffff
je 0x140001a47
mov rsi, qword [rbp - 0x68]
nop
lea rcx, [rdi + r14]
sub ecx, ebx
add rcx, r12
mov qword [rbp - 0x58], rcx
cmp rsi, qword [rbp - 0x60]
je 0x140001a04
mov qword [rsi], rcx
mov rsi, qword [rbp - 0x68]
add rsi, 8
mov qword [rbp - 0x68], rsi
jmp 0x140001a18
lea r8, [rbp - 0x58]
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140003060
mov rsi, qword [rbp - 0x68]
inc rdi
cmp rdi, r15
jae 0x140001a4b
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 0x140001a4b
sub rdi, r14
cmp rdi, 0xffffffffffffffff
jne 0x1400019e0
jmp 0x140001a4b
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
cmp rdi, rsi
je 0x140001b05
nop dword [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, [rbp - 0x40]
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 + 0x7c0], eax
mov byte [rbp + 0x7c4], al
lea r8d, [rax + 5]
lea rdx, [rbp + 0x7c0]
lea rcx, [rbp - 0x40]
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 + 0x7c0]
jne 0x140001ac0
movzx eax, byte [r14 + rbx + 4]
cmp al, byte [rbp + 0x7c4]
je 0x140001af4
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001af4
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rbp + 0x7c0]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rdi, 8
cmp rdi, rsi
jne 0x140001a60
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x140001b4a
mov rax, qword [rbp - 0x60]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140001b42
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c06
mov rcx, rdi
call fcn.1400032a0
mov eax, dword [rbp - 0x78]
inc eax
mov dword [rbp - 0x78], eax
add r13, 0x28
cmp eax, dword [rsp + 0x40]
jl 0x140001970
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.140002840
lea rcx, [rbp - 0x28]
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 + 0x70]
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 0x140001bbb
mov rcx, rbx
call fcn.1400032a0
mov rax, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x30]
inc r14
mov qword [rsp + 0x50], r14
cmp r14, rax
jl 0x140001810
mov rcx, qword [rbp + 0xc10]
xor rcx, rsp
call fcn.140003280
lea r11, [rsp + 0xd20]
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