Function at 0x140001480
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x14e0]
mov eax, 0x15e0
call fcn.140004a80
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x14d0], rax
xor r13d, r13d
mov r12d, r13d
mov dword [rbp - 0x70], r13d
lea r8, [rbp - 0x50]
mov edx, 0x1000
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x14000150f
lea rdx, str.Erreur_lors_de_l
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400030d0
mov rcx, rax
lea rdx, [0x1400032b0]
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 eax, 1
jmp 0x140001d29
mov ebx, dword [rbp - 0x50]
shr ebx, 2
lea rdx, str.Nombre_de_processus_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030d0
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, [0x1400032b0]
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]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov qword [rbp - 0x58], r13
lea r15, [rbp + 0xd0]
movabs rsi, 0x7ffffffffffffffe
mov r8d, dword [r15]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140001799
movups xmm0, xmmword [str._Non_trouv]
movaps xmmword [rbp + 0x10d0], xmm0
movsd xmm0, qword [0x1400055d8]
movsd qword [rbp + 0x10e0], xmm0
movzx ecx, word [0x1400055e0]
mov word [rbp + 0x10e8], cx
xor edx, edx
mov r8d, 0x1ee
lea rcx, [rbp + 0x10ea]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x70]
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001790
mov r9d, 0x104
lea r8, [rbp + 0x10d0]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
lea rax, [rbp + 0x10d0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001615
cmp rbx, rsi
ja 0x140001d59
cmp rbx, 7
ja 0x14000165c
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x10d0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x70], r13w
jmp 0x140001715
mov rdi, rbx
or rdi, 7
cmp rdi, rsi
jbe 0x1400016ae
mov rdi, rsi
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400016dc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d5f
mov rcx, rax
call fcn.140003b30
test rax, rax
je 0x1400018f6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400016e4
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001d5f
add rcx, rcx
jne 0x140001679
mov rsi, r13
jmp 0x1400016e4
call fcn.140003b30
mov rsi, rax
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rdi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x10d0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rbx], r13w
movabs rsi, 0x7ffffffffffffffe
mov rdx, qword [rbp - 0x60]
cmp rdx, qword [rbp - 0x58]
je 0x140001741
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x70], r13w
add qword [rbp - 0x60], 0x20
jmp 0x140001753
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.1400037e0
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140001790
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000178b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018f6
call fcn.140003b6c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r15, 4
lea rax, [rbp + 0x10d0]
cmp r15, rax
jne 0x140001560
mov r15d, 1
mov esi, r15d
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x60]
cmp rdi, r14
je 0x140001882
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400012d0
mov rbx, rax
lea rdx, str.PID
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030d0
mov rcx, rax
mov edx, esi
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140005568]
call fcn.1400030d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000181a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140003620
lea rdx, [0x1400032b0]
mov rcx, rax
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]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001873
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000186e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018fd
call fcn.140003b6c
inc esi
add rdi, 0x20
cmp rdi, r14
jne 0x1400017d0
mov dword [rsp + 0x30], r13d
lea rdx, str.Choisissez_quel_processus_pour_VirtualAllocEx_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030d0
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
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__::operator___int____ptr64____ptr64]
movsxd r8, dword [rsp + 0x30]
mov r8d, dword [rbp + r8*4 + 0xd0]
xor edx, edx
mov ecx, 0x38
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140001904
lea rdx, str.Erreur_:_Impossible_douvrir_le_processus.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400030d0
mov rcx, rax
lea rdx, [0x1400032b0]
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]
jmp 0x140001cd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x40]
call fcn.140002a90
nop
mov r9d, 0x30
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140001c0c
nop
lea rdx, str.Base_Address:
lea rcx, [rbp - 0x40]
call fcn.1400030d0
mov rcx, rax
lea rdx, [0x1400012b0]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, qword [rsp + 0x40]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x14000567c]
call fcn.1400030d0
mov rcx, rax
lea rdx, str.Region_Size:
call fcn.1400030d0
mov rcx, rax
lea rdx, [0x140001290]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, qword [rsp + 0x58]
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_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x14000567c]
call fcn.1400030d0
mov rcx, rax
lea rdx, str.Type:
call fcn.1400030d0
mov rcx, rax
mov edx, dword [rsp + 0x68]
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, [0x14000567c]
call fcn.1400030d0
mov rcx, rax
lea rdx, str.State:
call fcn.1400030d0
mov rcx, rax
mov edx, dword [rsp + 0x60]
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, [0x14000567c]
call fcn.1400030d0
mov rcx, rax
lea rdx, str.Protect:
call fcn.1400030d0
mov rcx, rax
mov edx, dword [rsp + 0x64]
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, [0x140005668]
call fcn.1400030d0
mov eax, dword [rsp + 0x64]
test al, 4
jne 0x140001a52
test al, 2
jne 0x140001a52
lea rdx, str.Memory_region_not_readable._n
jmp 0x140001bdb
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x10d0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
lea r8, [rbp + 0x10d0]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001bd4
mov rdi, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
or r12d, 1
mov dword [rbp - 0x70], r12d
mov rbx, r13
test rdi, rdi
je 0x140001b57
nop word [rax + rax]
movsx ecx, byte [rbp + rbx + 0x10d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
test eax, eax
je 0x140001b1a
movzx r9d, byte [rbp + rbx + 0x10d0]
cmp rcx, rdx
jae 0x140001b41
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x70]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001b4b
cmp rcx, rdx
jae 0x140001b3e
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x70]
mov word [rax + rcx], 0x2e
jmp 0x140001b4b
mov r9b, 0x2e
lea rcx, [rsp + 0x70]
call fcn.140003490
inc rbx
cmp rbx, rdi
jb 0x140001ad0
lea rdx, str.Memory_Content:
lea rcx, [rbp - 0x40]
call fcn.1400030d0
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rax
call fcn.140003620
lea rdx, [0x140005668]
mov rcx, rax
call fcn.1400030d0
and r12d, 0xfffffffe
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001be4
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001d1a
call fcn.140003b6c
jmp 0x140001be4
lea rdx, str.ReadProcessMemory_failed._n
lea rcx, [rbp - 0x40]
call fcn.1400030d0
mov rdx, qword [rsp + 0x58]
add rdx, qword [rsp + 0x40]
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
je 0x140001940
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x38]
call fcn.140002fe0
test rax, rax
jne 0x140001c40
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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]
mov r15d, r13d
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_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 - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
cmp qword [rbp + 0x48], 0
je 0x140001ca2
lea rcx, [rbp + 0x38]
mov rax, qword [rbp - 0x20]
cmp qword [rax], rcx
jne 0x140001ca2
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
mov qword [rax], rcx
mov rax, qword [rbp]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
cmp byte [rbp + 0x44], 0
je 0x140001cb1
lea rcx, [rbp - 0x38]
call fcn.140002fe0
lea rcx, [rbp - 0x38]
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, [rbp - 0x30]
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 + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140001d26
mov rdx, qword [rbp - 0x60]
call fcn.140003400
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x68]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140003b6c
mov eax, r15d
mov rcx, qword [rbp + 0x14d0]
xor rcx, rsp
call fcn.140003b10
lea r11, [rsp + 0x15e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3