Function at 0x1400868a4
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
mov r13d, 1
cmp rcx, rax
je 0x14008690c
test byte [rcx + 0x1c], r13b
je 0x14008690c
cmp byte [rcx + 0x19], 4
jb 0x14008690c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3d]
lea r8, [0x140155930]
call fcn.14000c328
xorps xmm0, xmm0
lea rdx, [0x1401529d8]
lea rcx, [rbp - 0x49]
movups xmmword [rbp + 7], xmm0
call fcn.140006cfc
xor esi, esi
xorps xmm0, xmm0
and qword [rbp - 0x21], rsi
xor edi, edi
and qword [rbp - 0x31], rsi
xorps xmm1, xmm1
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x39], rdi
xor r14d, r14d
movups xmm0, xmmword [0x14014fdf0]
mov qword [rbp - 0x29], rsi
movups xmmword [rbp - 9], xmm1
movdqu xmmword [rbp + 0x17], xmm0
cmp r14d, dword [r15 + 0x14c]
jae 0x1400869a8
lea rbx, [r14 + r14*2]
shl rbx, 6
add rbx, qword [r15 + 0x108]
test byte [rbx + 0x4c], r13b
je 0x140086978
cmp dword [rbx + 0x14], 9
je 0x14008697d
add r14d, r13d
jmp 0x140086954
cmp qword [rbx + 0x70], rsi
jne 0x14008699b
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400906e0
mov rdx, qword [rbx + 0x70]
lea rcx, [rbp - 0x49]
call fcn.1400711fc
mov rbx, qword [rbp - 0x49]
lea rcx, [0x1401556a8]
mov rdx, rbx
mov r8d, 4
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140086de9
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r14d, dword [r15 + 0x14c]
jne 0x140086a3c
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x140086a12
test byte [rcx + 0x1c], r13b
je 0x140086a12
cmp byte [rcx + 0x19], 2
jb 0x140086a12
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x140155930]
call fcn.14000c328
lea r8, [0x140150944]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400906e0
mov r14d, 0x8000ffff
mov rcx, qword [0x140173048]
jmp 0x140086e2d
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140091dd8
mov r14d, eax
test eax, eax
js 0x140086a30
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x140086a7f
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400906e0
jmp 0x140086a9f
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x140086a9f
mov word [rbp - 0x41], cx
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
mov r8d, r13d
call fcn.140071228
lea rdx, str.EFIMicrosoftBootBCD
lea rcx, [rbp - 0x49]
call fcn.1400711fc
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x140086af9
and qword [rbp - 0x49], rsi
lea r8, [rbp - 0x49]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
nop dword [rax + rax]
test eax, eax
js 0x140086af9
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x49]
mov qword [rbp - 0x39], rdi
lea rcx, [rbp + 0x17]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x17]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140086a2a
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400711fc
mov rdi, qword [rbp - 0x39]
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140086bbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jle 0x140086b6d
movzx r14d, ax
or r14d, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140086e2d
test byte [rcx + 0x1c], r13b
je 0x140086e2d
cmp byte [rcx + 0x19], 2
jb 0x140086e2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.1400152ec
jmp 0x140086a30
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x140086c13
and qword [rbp - 0x39], rsi
lea r8, [rbp - 0x39]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
nop dword [rax + rax]
test eax, eax
js 0x140086c13
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x29], rax
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x29]
call fcn.1400711fc
mov rsi, qword [rbp - 0x29]
mov rcx, rsi
mov qword [rbp - 0x11], rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 9]
add ax, ax
mov word [rbp - 0x19], ax
add ax, r13w
add ax, ax
mov word [rbp - 0x17], ax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 9]
call qword [sym.imp.bcd.dll_BcdSetSystemStoreDevice]
nop dword [rax + rax]
test eax, eax
je 0x140086d00
cmp eax, 0x80390003
jne 0x140086cb8
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x140086d07
test byte [rcx + 0x1c], r13b
je 0x140086d07
cmp byte [rcx + 0x19], 3
jb 0x140086d07
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.14000c354
jmp 0x140086d07
mov ecx, eax
call fcn.14002a840
mov r14d, eax
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140086dd5
test byte [rcx + 0x1c], r13b
je 0x140086dd5
cmp byte [rcx + 0x19], 2
jb 0x140086dd5
mov r9, qword [rbp - 1]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x140086dc5
lea r15, [0x140173048]
lea r8, [rbp + 7]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.14009ee8c
mov r14d, eax
test eax, eax
jns 0x140086d59
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140086dd5
test byte [rcx + 0x1c], r13b
je 0x140086dd5
cmp byte [rcx + 0x19], 2
jb 0x140086dd5
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
call fcn.14000c328
jmp 0x140086dd5
mov edx, r13d
lea rcx, [rbp - 0x19]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x140086dd5
cmp eax, 0x80390001
jne 0x140086d96
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140086dd5
test byte [rcx + 0x1c], r13b
je 0x140086dd5
cmp byte [rcx + 0x19], 3
jb 0x140086dd5
mov edx, 0x45
jmp 0x140086d47
mov ecx, eax
call fcn.14002a840
mov r14d, eax
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140086dd5
test byte [rcx + 0x1c], r13b
je 0x140086dd5
cmp byte [rcx + 0x19], 2
jb 0x140086dd5
mov r9, qword [rbp - 0x11]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
call fcn.1400151b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x140086a30
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140086e27
test byte [rcx + 0x1c], r13b
je 0x140086e27
cmp byte [rcx + 0x19], 2
jb 0x140086e27
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x3f
mov r9, rbx
call fcn.140015150
mov rcx, qword [0x140173048]
mov r14d, 0x80070057
cmp qword [rbp - 0x31], 0
je 0x140086e4b
lea rcx, [rbp - 0x31]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x140086e6a
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp dword [rbp + 7], 0
je 0x140086ed6
lea rcx, [rbp + 7]
call fcn.14009ebe8
mov r15d, eax
test eax, eax
jns 0x140086ecf
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140086eb7
test byte [rcx + 0x1c], r13b
je 0x140086eb7
cmp byte [rcx + 0x19], 2
jb 0x140086eb7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x47
mov r9d, r15d
call fcn.14000c354
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140086f03
test byte [rcx + 0x1c], r13b
je 0x140086f03
cmp byte [rcx + 0x19], 4
jb 0x140086f03
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x48
call fcn.14000c328
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret