Function at 0x140002900
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x90]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400029d1
lea r8, [rsp + 0x98]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x90]
test eax, eax
je 0x1400029cb
mov dword [rsp + 0xa0], 1
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa4], rax
mov dword [rsp + 0xac], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x10
lea r8, [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140002a1b
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.____Failed_to_enable_SeDebugPrivilege._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005510
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007250
lea r11, [rsp + 0x170]
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 r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x90]
cmp eax, 0x514
je 0x1400029cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], 0xf
mov byte [rsp + 0xc0], r14b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
je 0x140002a7c
mov edx, 0xd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
lea rdx, str.Memory_Monitor_and_Dumper_By_Diwness_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
lea rdx, str._________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
lea rdx, str.Enter_the_target_process_name__e.g.__ExampleApp.exe__or_PID:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.140006e50
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0xf
cmova rbx, qword [rsp + 0xc0]
mov dword [rax], r14d
mov r8d, 0xa
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov esi, eax
cmp rbx, qword [rsp + 0x98]
jne 0x140002b4c
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
cmp dword [rdi], 0x22
jne 0x140002b5f
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
jmp 0x140002b8f
lea rdx, str._DIWNESS__ProcessID_of_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0xf
cmova rdx, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xd0]
mov rcx, rax
call fcn.140006b50
lea rdx, [0x140009940]
mov rcx, rax
call fcn.140005510
mov edx, esi
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400096d4]
call fcn.140005510
mov r8d, esi
xor edx, edx
mov ecx, 0x418
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x140002c9c
lea rdx, str.____Failed_to_open_process._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005510
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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, [0x1400096d4]
call fcn.140005510
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0xf
jbe 0x1400029e4
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
jmp 0x1400029e4
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.140005370
nop
mov r13, qword [rsp + 0xd0]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 0x17
jb 0x14000345c
lea r12, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0xf
cmova r12, qword [rsp + 0xc0]
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xb0], xmm1
lea r15, [r13 + 0x17]
mov ebx, 0xf
lea rdi, [rsp + 0xa0]
cmp r15, rbx
jbe 0x140002d90
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140002d4e
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140007270
test rax, rax
je 0x140002f6f
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002d88
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140002d68
mov rdi, r14
jmp 0x140002d88
cmp rcx, 0x1000
jb 0x140002d80
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003462
jmp 0x140002d2f
call fcn.140007270
mov rdi, rax
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], rbx
movups xmm0, xmmword [str.Suspending_threads_of_]
movups xmmword [rdi], xmm0
mov eax, dword [0x1400099a0]
mov dword [rdi + 0x10], eax
movzx eax, word [0x1400099a4]
mov word [rdi + 0x14], ax
movzx eax, byte [0x1400099a6]
mov byte [rdi + 0x16], al
lea rcx, [rdi + 0x17]
mov r8, r13
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x140002e3f
lea rax, [rcx + 3]
mov qword [rsp + 0xb0], rax
lea rbx, [rsp + 0xa0]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0xa0]
add rbx, rcx
mov r8d, 3
lea rdx, [0x140009940]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
lea rax, [rsp + 0xa0]
jmp 0x140002e5a
mov qword [rsp + 0x20], 3
mov edx, 3
lea rcx, [rsp + 0xa0]
call fcn.140006200
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400064c0
nop
lea rcx, [rsp + 0x30]
call fcn.140001460
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002eda
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ed5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ed5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
movdqa xmm0, xmmword [0x140009bc0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140002f35
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
movdqa xmm0, xmmword [0x140009bc0]
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0xf
jbe 0x140002f83
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
movdqa xmm0, xmmword [0x140009bc0]
movdqu xmmword [rsp + 0xb0], xmm0
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x140002fd7
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003066
mov dword [rsp + 0xa0], 0x1c
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000305d
nop dword [rax]
cmp dword [rsp + 0xac], esi
jne 0x140003048
mov r8d, dword [rsp + 0xa8]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140003048
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140003010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x19
lea rdx, str.Locating_allocated_memory
lea rcx, [rsp + 0x30]
call fcn.140005ef0
nop
lea rcx, [rsp + 0x30]
call fcn.140001460
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400030da
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400030d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
xorps xmm0, xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
mov dword [rsp + 0x120], 0
mov qword [rsp + 0x128], r14
mov qword [rsp + 0x130], r14
mov ecx, 0x20
call fcn.140007270
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x138], r14
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x140], xmm0
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x158], 8
mov dword [rsp + 0x120], 0x3f800000
mov r8, rax
mov edx, 0x10
lea rcx, [rsp + 0x138]
call fcn.140005090
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
mov dword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov ecx, 0x30
call fcn.140007270
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf8], r14
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x118], 8
mov dword [rsp + 0xe0], 0x3f800000
mov r8, rax
mov edx, 0x10
lea rcx, [rsp + 0xf8]
call fcn.140005090
nop
mov dword [rsp + 0x90], r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x12
lea rdx, str.Wiping_Dump_Traces
lea rcx, [rsp + 0x30]
call fcn.140005ef0
nop
lea rcx, [rsp + 0x30]
call fcn.140001460
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000329e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003299
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003299
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rbx, qword [rsp + 0x98]
mov rcx, rbx
call fcn.140002080
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000335e
mov dword [rsp + 0xa0], 0x1c
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140003355
cmp dword [rsp + 0xac], esi
jne 0x140003338
mov r8d, dword [rsp + 0xa8]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140003338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140003300
mov rbx, qword [rsp + 0x98]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x23
lea rdx, str.Watching_for_newly_allocated_memory
lea rcx, [rsp + 0x30]
call fcn.140005ef0
nop
lea rcx, [rsp + 0x30]
call fcn.140001460
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400033d2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
movabs rsi, 0x7ffffffed5fa0dff
movabs rdi, 0x12a05f200
movabs r14, 0x7fffffffffffffff
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.140002080
lea rcx, [rsp + 0xa0]
call fcn.1400012b0
mov rax, qword [rsp + 0xa0]
cmp rax, rsi
jge 0x140003445
lea rcx, [rax + rdi]
mov qword [rsp + 0x98], rcx
lea rcx, [rsp + 0x98]
call fcn.140006d10
jmp 0x1400033f0
mov qword [rsp + 0x98], r14
lea rcx, [rsp + 0x98]
call fcn.140006d10
jmp 0x1400033f0
call fcn.1400011b0
int3
call fcn.140001110
int3