Function at 0x1400112a8
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140012010
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2d8]
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x1400240af]
call fcn.1400113c5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140012096
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_error:__u_n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rbp + 8]
call fcn.14001128f
test eax, eax
jne 0x1400120d0
lea rcx, str.You_must_be_running_as_an_administrator_to_change_the_privilege_settings._n
call fcn.1400111b8
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012286
cmp dword [rbp + 0x2b0], 3
je 0x140012103
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x2b8]
mov rdx, qword [rcx + rax]
lea rcx, str.Usage:__s__PIDprocess_name___output_file__n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x2b8]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x2b8]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
lea rax, [rbp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isdigit]
test eax, eax
je 0x1400121c2
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 0x64], eax
mov r8d, 0x104
lea rdx, [rbp + 0x90]
mov ecx, dword [rbp + 0x64]
call fcn.1400113c0
test eax, eax
jne 0x1400121a9
mov edx, dword [rbp + 0x64]
lea rcx, str.Failed_to_get_process_name_for_PID__lu._n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov r8d, dword [rbp + 0x64]
lea rdx, [rbp + 0x90]
lea rcx, str.Creating_dump_for_process__s_with_PID__lu._n
call fcn.1400111b8
jmp 0x140012240
mov rcx, qword [rbp + 0x28]
call fcn.140011032
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x1400121ea
lea rcx, str.Process_not_found._n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x28]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.ucrtbased.dll_strncpy_s]
mov dword [rbp + 0x1b4], eax
cmp dword [rbp + 0x1b4], 0
je 0x140012229
lea rcx, str.Error_copying_process_name._n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov r8d, dword [rbp + 0x64]
lea rdx, [rbp + 0x90]
lea rcx, str.Creating_dump_for_process__s_with_PID__lu._n
call fcn.1400111b8
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rbp + 0x64]
call fcn.140011361
test eax, eax
jne 0x140012263
lea rcx, str.Failed_to_dump_process_memory._n
call fcn.1400111b8
mov eax, 1
jmp 0x140012286
mov r8d, dword [rbp + 0x64]
lea rdx, [rbp + 0x90]
lea rcx, str.Memory_dump_successful_for_process__s_with_PID__lu._n
call fcn.1400111b8
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001b070]
call fcn.140011348
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret