Function at 0x1004051b0
Capabilities:
Delete file
Enumerate files on windows
Move file
Query or enumerate registry value

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 - 0x2250]
mov eax, 0x2350
call fcn.100412d40
sub rsp, rax
mov rax, qword [0x100422010]
xor rax, rsp
mov qword [rbp + 0x2240], rax
xor r14d, r14d
cmp dword [0x1004276d0], 2
mov edi, r14d
jb 0x100405d06
mov r9, qword [0x100427d70]
test r9, r9
je 0x100405224
lea r8, str.Dump_is_associated_with_file__ls
lea edx, [r14 + 2]
lea rcx, [0x100422050]
call fcn.100401b20
mov rax, qword [0x100427d40]
test eax, 0x400040
je 0x10040531e
lea r8, [0x100427924]
lea rcx, [0x100427d50]
call fcn.10040cc40
test eax, eax
je 0x100405317
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
lea rcx, [0x100427924]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, qword [0x100427db8]
mov qword [0x100427d38], rax
cmp rax, 0xffffffffffffffff
jne 0x10040563f
test rbx, rbx
je 0x100405317
mov rax, qword [0x100427d40]
bt eax, 0x16
jae 0x10040531e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x100405317
mov r9, rbx
lea r8, str.Not_creating_an_additional_dump__because_dump_for_stack_signature__p_already_exists.
lea edx, [rax - 0x4e]
lea rcx, [0x100422050]
call fcn.100401b20
mov rbx, qword [0x100427d70]
test rbx, rbx
je 0x100405310
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
cmp eax, 0xffffffff
jne 0x100405310
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9, rbx
lea rcx, [0x100422050]
mov edx, 2
mov r8d, dword [rax]
mov dword [rsp + 0x20], r8d
lea r8, str.Unable_to_delete_additional_dump_file__s__errno__d_
call fcn.100401b20
xor eax, eax
jmp 0x100405d12
mov rax, qword [0x100427d40]
cmp qword [0x100427d78], rdi
jne 0x10040542e
mov rcx, qword [0x100427d98]
test rcx, rcx
jne 0x100405344
cmp qword [0x1004290d8], rdi
je 0x10040542e
mov rdx, qword [0x100427da0]
mov r8d, eax
call fcn.100402560
mov rbx, rax
test rax, rax
je 0x10040552d
xor edx, edx
lea rcx, [rbp + 0xbd0]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
cmp qword [0x100427d98], rdi
lea rax, str.ErrorDumpDir
lea rdx, str.ErrorReportingDir
mov dword [rsp + 0x50], 0x20a
cmovne rdx, rax
mov dword [rsp + 0x58], r14d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rbp + 0xbd0]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100405425
cmp dword [rsp + 0x58], 1
jne 0x100405425
lea r9, [0x100429330]
mov edx, 0x103
lea r8, [rbp + 0xbd0]
mov rcx, r9
sub r8, r9
lea rax, [rdx + 0x7ffffefb]
test rax, rax
je 0x100405407
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100405407
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004053e4
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
cmove r9, qword [0x100427d78]
mov qword [0x100427d78], r9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, r14d
lea r13, [0x100414eec]
lea r15, [0x10042771a]
lea r12, str..mdmp
nop word [rax + rax]
mov rbx, qword [0x100427d78]
lea r8, str._ls_ls
mov r9, r15
mov qword [rsp + 0x20], r13
mov edx, 0x104
lea rcx, [rbp + 0x7b0]
call fcn.100401090
test eax, eax
js 0x10040561e
lea rax, [rbp + 0x7b0]
mov qword [rsp + 0x28], r12
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [rbp + 0x9c0]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea rdx, [rbp + 0x9c0]
lea rcx, [rbp + 0xff0]
call fcn.10040cf70
lea rcx, [rbp + 0x390]
mov edx, 0x104
cmp eax, 1
jne 0x10040553e
mov rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], di
jne 0x1004054d3
add rax, rax
lea r8, [rbp + 0x390]
sub rax, r8
lea r8, [rbp + 0x101c]
add r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100405517
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100405517
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004054f4
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
jne 0x100405588
jmp 0x10040561e
or dword [0x100422040], 0x20000002
xor eax, eax
jmp 0x100405d12
lea r8, [0x100414ef0]
lea rax, [rbp + 0x390]
sub r8, rax
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100405573
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100405573
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100405550
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x10040561e
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r9, r15
lea r8, str._ls_04d
inc eax
lea rcx, [rbp + 0x7b0]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.100401090
test eax, eax
js 0x10040561e
lea rax, [rbp + 0x7b0]
mov qword [rsp + 0x28], r12
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [0x100427924]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
lea rcx, [0x100427924]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x100427d38], rax
cmp rax, 0xffffffffffffffff
jne 0x10040563f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x50
jne 0x100405c74
inc esi
cmp esi, 5
jl 0x100405450
jmp 0x100405ce8
mov edx, 0x104
lea rcx, [0x100427b2e]
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100405675
movzx eax, word [rcx - 0x20a]
test ax, ax
je 0x100405675
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100405650
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov rcx, qword [0x100427d70]
test rcx, rcx
jne 0x1004056b2
lea r8, str.Remote_process_didnt_specify_a_dump_file_name
mov edx, 2
lea rcx, [0x100422050]
call fcn.100401b20
mov edi, 1
jmp 0x100405d10
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x2030]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
test eax, eax
je 0x100405711
mov r9, qword [0x100427d70]
lea r8, str.Failed_to_get_the_root_dump_file_name_from__ls
mov edx, 1
lea rcx, [0x100422050]
call fcn.100401b20
mov edi, 1
jmp 0x100405d10
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x1e20]
mov qword [rsp + 0x38], r14
lea rcx, [0x100427924]
mov qword [rsp + 0x30], 0x104
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
test eax, eax
je 0x100405757
lea r9, [0x100427924]
jmp 0x1004056ef
lea rdx, [rbp + 0x1e20]
lea rcx, [rbp + 0x2030]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x10040577b
lea r8, str.Dump_file_has_original_name__no_need_to_rename_companion_files
jmp 0x100405697
mov rbx, qword [0x100427d70]
test rbx, rbx
je 0x1004056a8
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x5a0]
mov qword [rsp + 0x38], r14
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], 0x101
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], 0x101
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r9, [rbp + 0x5a0]
mov edx, 0x101
lea r8, str._s_
lea rcx, [rsp + 0x70]
call fcn.100401090
test eax, eax
jns 0x100405818
mov r9, rbx
mov dword [rsp + 0x20], eax
lea r8, str.Failed_to_generate_wild_card_from_file_name__ls_HRESULT_0x_08x
mov edx, 1
lea rcx, [0x100422050]
call fcn.100401b20
mov edi, 1
jmp 0x100405d10
lea rax, str..cab
mov word [rsp + 0x56], r14w
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x180]
lea rax, [rsp + 0x70]
mov word [rbp + 0x380], r14w
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0x104
mov word [rbp + 0x170], r14w
lea rcx, [rbp + 0xbd0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea rdx, [rbp + 0xff0]
lea rcx, [rbp + 0xbd0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov edi, 1
cmp rax, 0xffffffffffffffff
je 0x100405d10
nop dword [rax + rax]
lea r9, [rbp + 0x101c]
mov edx, 2
lea r8, str.Found_companion_cab_file_for_the_dump__ls
lea rcx, [0x100422050]
call fcn.100401b20
mov r9, qword [0x100427d78]
lea rax, [rbp + 0x101c]
lea r8, [0x1004151a0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0xde0]
call fcn.100401090
test eax, eax
js 0x100405c4b
mov rbx, qword [0x100427d70]
test rbx, rbx
je 0x100405c1e
mov qword [rsp + 0x40], 0x101
lea rax, [rbp + 0x1a00]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x7b0]
lea rax, [rbp + 0x5a0]
mov qword [rsp + 0x30], 0x101
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov r8d, 4
mov qword [rsp + 0x20], 0x101
lea rcx, [rbp + 0xde0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x17f0]
mov qword [rsp + 0x38], r14
lea r9, [rbp + 0x390]
mov qword [rsp + 0x30], 0x101
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], 0x101
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], r14
lea r9, [rbp + 0x1c10]
mov qword [rsp + 0x30], 0x101
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rcx, [0x100427924]
mov r8d, 4
mov qword [rsp + 0x20], 0x101
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea rcx, [rbp + 0x180]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1004059e0
cmp rax, 0x7ffffffe
ja 0x100405bfd
lea r9, [rax - 0x101]
mov edx, 0x101
lea rax, [rsp + 0x70]
lea r8, [rbp + 0x180]
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [r9 + rdx]
test rax, rax
je 0x100405a35
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100405a35
mov word [rcx], ax
add rcx, 2
sub rdx, rdi
jne 0x100405a16
test rdx, rdx
lea rax, [rcx - 2]
mov r9d, 0x8007007a
cmovne rax, rcx
cmovne r9d, r14d
mov word [rax], r14w
je 0x100405c09
lea rcx, [rbp + 0x17f0]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x100405a62
lea rcx, [rbp + 0x5a0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rcx + r8*2], r14w
jne 0x100405a80
lea r10, [rbp + 0x5a0]
sub r8, rax
lea r10, [r10 + rax*2]
mov ecx, 0x101
lea rax, [rsp + 0x70]
cmp word [rax], r14w
je 0x100405ab1
add rax, 2
sub rcx, rdi
jne 0x100405aa2
test rcx, rcx
mov r9d, 0x80070057
cmovne r9d, r14d
je 0x100405aca
mov eax, 0x101
sub rax, rcx
jmp 0x100405acd
mov rax, r14
test rcx, rcx
je 0x100405bf4
cmp r8, 0x7ffffffe
ja 0x100405bee
mov edx, 0x101
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x100405b24
add rax, rdx
lea r9, [r8 - 0x101]
add r9, rax
sub r10, rcx
test r9, r9
je 0x100405b24
movzx eax, word [r10 + rcx]
test ax, ax
je 0x100405b24
mov word [rcx], ax
dec r9
add rcx, 2
sub rdx, rdi
jne 0x100405b06
test rdx, rdx
lea rax, [rcx - 2]
mov r9d, 0x8007007a
cmovne rax, rcx
cmovne r9d, r14d
mov word [rax], r14w
je 0x100405bf4
lea rax, [rbp + 0x1a00]
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1c10]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea rdx, [rbp + 0x9c0]
lea rcx, [rbp + 0xde0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100405bb5
lea rdx, [rbp + 0xff0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100405890
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100405d10
lea rax, [rbp + 0x9c0]
mov edx, edi
lea r9, [rbp + 0xde0]
mov qword [rsp + 0x20], rax
lea r8, str.Failed_to_move_companion_file__ls_to__ls
lea rcx, [0x100422050]
call fcn.100401b20
mov rcx, rsi
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100405d10
mov r9d, 0x80070057
lea r8, str.Failed_to_append_the_postfix_to_new_companion_file_name_HRESULT_0x_08x
jmp 0x100405c10
mov r9d, 0x80070057
mov word [rsp + 0x70], r14w
lea r8, str.Failed_to_generate_new_companion_file_base_HRESULT_0x_08x
mov edx, edi
lea rcx, [0x100422050]
call fcn.100401b20
lea r9, [rbp + 0x101c]
mov edx, edi
lea r8, str.Failed_to_generate_new_name_for_companion_file__ls
lea rcx, [0x100422050]
call fcn.100401b20
mov rcx, rsi
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100405d10
mov r9d, eax
lea r8, str.Failed_to_generate_full_companion_file_name_0x_08x
mov edx, edi
lea rcx, [0x100422050]
call fcn.100401b20
mov edi, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100405d10
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0xff0]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea r9, [0x100427924]
mov edx, 1
lea rcx, [0x100422050]
test eax, eax
je 0x100405cd8
lea rax, [rbp + 0xff0]
mov qword [rsp + 0x28], rax
lea r8, str.Create_dump_file__ls_failed__0x_x____ls
mov dword [rsp + 0x20], ebx
call fcn.100401b20
jmp 0x100405ce8
lea r8, str.Create_dump_file__ls_failed_Error_Code_0x_x
mov dword [rsp + 0x20], ebx
call fcn.100401b20
cmp esi, 5
jne 0x100405d06
mov r9d, esi
lea r8, str.Create_dump_file_failed_after__d_retries
lea edx, [rsi - 4]
lea rcx, [0x100422050]
call fcn.100401b20
or dword [0x100422040], 0x20000002
mov eax, edi
mov rcx, qword [rbp + 0x2240]
xor rcx, rsp
call fcn.1004119e0
lea r11, [rsp + 0x2350]
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