Function at 0x14007b840
Capabilities:
Copy file
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
mov r14d, 1
cmp rcx, rax
je 0x14007b8ad
test byte [rcx + 0x1c], r14b
je 0x14007b8ad
cmp byte [rcx + 0x19], 4
jb 0x14007b8ad
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x3d]
lea r8, [0x1401546f0]
call fcn.140004c6c
xor eax, eax
lea rcx, [0x140151a68]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor r8d, r8d
mov qword [rbp - 0x39], rax
mov rbx, rax
test rax, rax
je 0x14007bf40
movups xmm0, xmmword [0x140154f98]
mov ecx, dword [r13 + 0x14c]
xor eax, eax
or r12, 0xffffffffffffffff
mov qword [rbp - 0x31], r8
mov qword [rbp - 0x19], r8
mov edi, r8d
mov qword [rbp - 0x11], rax
mov esi, r8d
mov qword [rbp - 9], rax
mov r15d, r8d
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp - 0x21], r8
movdqu xmmword [rbp + 0x1f], xmm0
test ecx, ecx
je 0x14007b99f
mov eax, r15d
lea r14, [rax + rax*2]
shl r14, 6
add r14, qword [r13 + 0x108]
test byte [r14 + 0x4c], 1
je 0x14007b93d
cmp dword [r14 + 0x14], 9
je 0x14007b94d
mov r14d, 1
add r15d, r14d
cmp r15d, ecx
jae 0x14007b99f
jmp 0x14007b91d
cmp qword [r14 + 0x70], r8
jne 0x14007b96e
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008624c
xor r8d, r8d
mov rdx, qword [r14 + 0x70]
test rdx, rdx
jne 0x14007b97c
mov eax, r8d
jmp 0x14007b989
mov rax, r12
inc rax
cmp word [rdx + rax*2], r8w
jne 0x14007b97f
mov r8d, eax
lea rcx, [rbp - 0x39]
call fcn.14006cccc
mov rbx, qword [rbp - 0x39]
mov r14d, 1
mov r8d, 4
lea rcx, str.__
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14007bddd
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r15d, dword [r13 + 0x14c]
jne 0x14007ba29
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14007b9ff
test byte [rcx + 0x1c], r14b
je 0x14007b9ff
cmp byte [rcx + 0x19], 2
jb 0x14007b9ff
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x1401546f0]
call fcn.140004c6c
lea r8, [0x14014f94c]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008624c
mov rcx, qword [0x1401782b0]
mov r14d, 0x8000ffff
jmp 0x14007be21
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140086ee4
xor r13d, r13d
mov r14d, eax
test eax, eax
js 0x14007bae5
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov eax, eax
test rax, rax
jne 0x14007baf8
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008624c
mov r15d, 1
mov r8d, 0x16
lea rdx, str.EFIMicrosoftBootBCD
lea rcx, [rbp - 0x39]
call fcn.14006cccc
mov rbx, qword [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14007bac3
lea r8, [rbp - 0x39]
mov qword [rbp - 0x39], r13
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x14007bac3
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x31], rdi
lea rcx, [rbp + 0x1f]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x14007bb25
mov r14d, 0x8000ffff
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
jmp 0x14007be24
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x14007ba6f
lea r15d, [rcx - 0x5b]
mov word [rbp - 0x29], cx
mov r8d, r15d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.14006cccc
jmp 0x14007ba75
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x14007bb33
mov eax, r13d
jmp 0x14007bb40
mov rax, r12
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14007bb36
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.14006cccc
mov rdi, qword [rbp - 0x31]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14007bbd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14007be24
test byte [rcx + 0x1c], r15b
je 0x14007be24
cmp byte [rcx + 0x19], 2
jb 0x14007be24
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.140005e64
mov rcx, qword [0x1401782b0]
jmp 0x14007be24
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
mov qword [rbp - 0x31], r13
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14007bc13
lea r8, [rbp - 0x39]
mov qword [rbp - 0x39], r13
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x14007bc13
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x31], rax
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x14007bc21
mov r12d, r13d
jmp 0x14007bc2b
inc r12
cmp word [rdx + r12*2], r13w
jne 0x14007bc21
mov r8d, r12d
lea rcx, [rbp - 0x31]
call fcn.14006cccc
mov rsi, qword [rbp - 0x31]
mov rcx, rsi
mov qword [rbp - 9], rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 1]
add ax, ax
mov word [rbp - 0x11], ax
add ax, r15w
add ax, ax
mov word [rbp - 0xf], ax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 1]
call qword [sym.imp.bcd.dll_BcdSetSystemStoreDevice]
test eax, eax
je 0x14007bd00
cmp eax, 0x80390003
jne 0x14007bcbd
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14007bd07
test byte [rcx + 0x1c], r15b
je 0x14007bd07
cmp byte [rcx + 0x19], 3
jb 0x14007bd07
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140004c90
jmp 0x14007bd07
mov ecx, eax
call fcn.14003b824
mov r14d, eax
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14007bdcf
test byte [rcx + 0x1c], r15b
je 0x14007bdcf
cmp byte [rcx + 0x19], 2
jb 0x14007bdcf
mov r9, qword [rbp + 7]
mov edx, 0x43
jmp 0x14007bdbb
lea r12, [0x1401782b0]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140094044
mov r14d, eax
test eax, eax
jns 0x14007bd59
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14007bdcf
test byte [rcx + 0x1c], r15b
je 0x14007bdcf
cmp byte [rcx + 0x19], 2
jb 0x14007bdcf
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
call fcn.140004c6c
jmp 0x14007bdcf
mov edx, r15d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
test eax, eax
je 0x14007bdcf
cmp eax, 0x80390001
jne 0x14007bd90
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14007bdcf
test byte [rcx + 0x1c], r15b
je 0x14007bdcf
cmp byte [rcx + 0x19], 3
jb 0x14007bdcf
mov edx, 0x45
jmp 0x14007bd47
mov ecx, eax
call fcn.14003b824
mov r14d, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14007bdcf
test byte [rcx + 0x1c], r15b
je 0x14007bdcf
cmp byte [rcx + 0x19], 2
jb 0x14007bdcf
mov r9, qword [rbp - 9]
mov edx, 0x46
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
mov dword [rsp + 0x20], eax
call fcn.140005ce8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14007bbc7
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14007be1b
test byte [rcx + 0x1c], r14b
je 0x14007be1b
cmp byte [rcx + 0x19], 2
jb 0x14007be1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
mov edx, 0x3f
mov r9, rbx
call fcn.140005c6c
mov rcx, qword [0x1401782b0]
mov r14d, 0x80070057
xor r13d, r13d
cmp qword [rbp - 0x21], r13
je 0x14007be3b
lea rcx, [rbp - 0x21]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rcx, qword [0x1401782b0]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14007be54
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp dword [rbp + 0xf], r13d
je 0x14007bec2
lea rcx, [rbp + 0xf]
call fcn.140094100
mov r15d, eax
test eax, eax
jns 0x14007bebb
mov rcx, qword [0x1401782b0]
cmp rcx, r12
mov r12d, 1
je 0x14007bea0
test byte [rcx + 0x1c], r12b
je 0x14007bea0
cmp byte [rcx + 0x19], 2
jb 0x14007bea0
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x46]
mov r9d, eax
lea r8, [0x1401546f0]
call fcn.140004c90
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x1401782b0]
mov r12d, 1
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14007bef5
test byte [rcx + 0x1c], r12b
je 0x14007bef5
cmp byte [rcx + 0x19], 4
jb 0x14007bef5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401546f0]
mov edx, 0x48
call fcn.140004c6c
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, r14d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001b20
int3