Function at 0x140085af0
Capabilities:
Capture process snapshot data
Get common file path
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, r9
mov r12, r8
mov r13, rcx
xor esi, esi
mov qword [rax + 0x20], rsi
mov dword [r9], esi
call fcn.140086b90
mov r14d, eax
mov ebx, 0x80
mov edx, ebx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdi, rax
lea rbp, [rax + 8]
cmp rbp, rbx
cmovae rbp, rbx
lea edx, [rsi + 2]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov r9, rdi
mov r8, r12
mov rdx, rbp
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s
cmp r14d, 0xffffffff
jne 0x140085b9b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0xb8]
mov edx, 0x1981
mov r8d, 0x10001f
call sub.KERNEL32.dll_PssCaptureSnapshot
mov dword [r15], eax
test eax, eax
jne 0x14008603c
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140085e72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140085cf2
lea ecx, [rsi + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8, rbx
lea rdx, str._nFailed_to_create_file__ws_as_it_already_exists._n
call fcn.140086ba0
lea edi, [rsi + 2]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140085c15
cmp rsi, 0xffffffffffffffff
jne 0x140085e72
cmp rdi, 0xa
jae 0x140085ce8
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
sub rax, 4
lea rsi, [rbx + rax*2]
mov r8d, 4
lea rdx, [0x14008a1b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140085c54
xor eax, eax
mov word [rsi], ax
lea rax, [0x14008a1b0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9d, 0x78
lea r8, str._.s___zu__s
mov rdx, rbp
mov rcx, rbx
call fcn.140086bf0
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140085ce0
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8, rbx
lea rdx, str._nFailed_to_create_file__ws_as_it_already_exists._n
call fcn.140086ba0
mov r8, r12
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
inc rdi
jmp 0x140085c00
cmp rsi, 0xffffffffffffffff
jne 0x140085e72
mov edx, 2
mov ecx, 0x105
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, esi
mov r8, rbx
lea rdx, str._nFailed_to_create_file__ws_with_error__x_nTrying_temporary_path._n
call fcn.140086ba0
mov rdx, rdi
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140085d75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [r15], eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._nGetTempPathW_failed_with_error___x_._n
mov r8d, esi
mov rcx, rax
call fcn.140086ba0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14008603c
mov r9, rdi
xor r8d, r8d
lea rdx, [0x14008b0a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140085dc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [r15], eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._nGetTempFileNameW_failed_with_error___x_._n
mov r8d, esi
mov rcx, rax
call fcn.140086ba0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14008603c
lea rdx, str..tmp
mov rcx, rdi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x140085dee
lea r8, str..dmp
mov edx, 5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
mov qword [rsp + 0x40], rbx
xor ebp, ebp
mov edi, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140085e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [rbp + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, esi
mov r8, rbx
lea rdx, str._nFailed_to_create_temp_dump_file__ws_with_error__x_n
call fcn.140086ba0
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14008603c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140085e74
xor ebp, ebp
xor edx, edx
mov r8d, 0x800
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
test rax, rax
je 0x14008603c
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x14008603c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x54], ebp
mov qword [rsp + 0x4c], r13
cmp r14d, 0xffffffff
je 0x140085f4f
mov edi, 0x410
cmp r14d, 2
ja 0x140085eea
test r14d, r14d
je 0x140085f48
sub r14d, 1
je 0x140085f41
cmp r14d, 1
jne 0x140085ef4
mov ebp, 0x51b27
mov edi, 0x450
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14008603c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, ebp
mov r8, rsi
mov rcx, rdi
call r15
xor ebp, ebp
jmp 0x140085f95
mov ebp, 0x40121
jmp 0x140085ef4
mov ebp, 0x1001a4
jmp 0x140085eef
lea rax, [0x140086870]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x21003
mov r8, rsi
mov rcx, qword [rsp + 0xb8]
call r15
test eax, eax
jne 0x140085fc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, edi
mov r8, rbx
lea rdx, str._nFailed_to_save_dump_to___ws__with_error___x_._n
call fcn.140086ba0
jmp 0x140085fe0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8, rbx
lea rdx, str._nSuccesfully_saved_dump_to___ws__n
call fcn.140086ba0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rbp
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 - 7]
mov rcx, rdi
call sub.KERNEL32.dll_PssQuerySnapshot
test eax, eax
jne 0x14008602a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_PssFreeSnapshot
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret