Function at 0x14007f124
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
mov r13d, 1
cmp rcx, rax
je 0x14007f18c
test byte [rcx + 0x1c], r13b
je 0x14007f18c
cmp byte [rcx + 0x19], 4
jb 0x14007f18c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3d]
lea r8, [0x14014d290]
call fcn.14000c0e8
xorps xmm0, xmm0
lea rdx, [0x14014a788]
lea rcx, [rbp - 0x49]
movups xmmword [rbp + 7], xmm0
call fcn.140006acc
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 [0x140147ba0]
mov qword [rbp - 0x29], rsi
movups xmmword [rbp - 9], xmm1
movdqu xmmword [rbp + 0x17], xmm0
cmp r14d, dword [r15 + 0x14c]
jae 0x14007f228
lea rbx, [r14 + r14*2]
shl rbx, 6
add rbx, qword [r15 + 0x108]
test byte [rbx + 0x4c], r13b
je 0x14007f1f8
cmp dword [rbx + 0x14], 9
je 0x14007f1fd
add r14d, r13d
jmp 0x14007f1d4
cmp qword [rbx + 0x70], rsi
jne 0x14007f21b
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140088f60
mov rdx, qword [rbx + 0x70]
lea rcx, [rbp - 0x49]
call fcn.140069a7c
mov rbx, qword [rbp - 0x49]
lea rcx, [0x14014d008]
mov rdx, rbx
mov r8d, 4
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14007f669
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r14d, dword [r15 + 0x14c]
jne 0x14007f2bc
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x14007f292
test byte [rcx + 0x1c], r13b
je 0x14007f292
cmp byte [rcx + 0x19], 2
jb 0x14007f292
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x14014d290]
call fcn.14000c0e8
lea r8, [0x1401486f4]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140088f60
mov r14d, 0x8000ffff
mov rcx, qword [0x14016a048]
jmp 0x14007f6ad
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.14008a658
mov r14d, eax
test eax, eax
js 0x14007f2b0
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x14007f2ff
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140088f60
jmp 0x14007f31f
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x14007f31f
mov word [rbp - 0x41], cx
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
mov r8d, r13d
call fcn.140069aa8
lea rdx, str.EFIMicrosoftBootBCD
lea rcx, [rbp - 0x49]
call fcn.140069a7c
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x14007f379
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 0x14007f379
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 0x14007f2aa
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.140069a7c
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 0x14007f43f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jle 0x14007f3ed
movzx r14d, ax
or r14d, 0x80070000
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007f6ad
test byte [rcx + 0x1c], r13b
je 0x14007f6ad
cmp byte [rcx + 0x19], 2
jb 0x14007f6ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.1400150ac
jmp 0x14007f2b0
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 0x14007f493
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 0x14007f493
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.140069a7c
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 0x14007f580
cmp eax, 0x80390003
jne 0x14007f538
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x14007f587
test byte [rcx + 0x1c], r13b
je 0x14007f587
cmp byte [rcx + 0x19], 3
jb 0x14007f587
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.14000c114
jmp 0x14007f587
mov ecx, eax
call fcn.14002a600
mov r14d, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007f655
test byte [rcx + 0x1c], r13b
je 0x14007f655
cmp byte [rcx + 0x19], 2
jb 0x14007f655
mov r9, qword [rbp - 1]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x14007f645
lea r15, [0x14016a048]
lea r8, [rbp + 7]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.14009770c
mov r14d, eax
test eax, eax
jns 0x14007f5d9
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14007f655
test byte [rcx + 0x1c], r13b
je 0x14007f655
cmp byte [rcx + 0x19], 2
jb 0x14007f655
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
call fcn.14000c0e8
jmp 0x14007f655
mov edx, r13d
lea rcx, [rbp - 0x19]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x14007f655
cmp eax, 0x80390001
jne 0x14007f616
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14007f655
test byte [rcx + 0x1c], r13b
je 0x14007f655
cmp byte [rcx + 0x19], 3
jb 0x14007f655
mov edx, 0x45
jmp 0x14007f5c7
mov ecx, eax
call fcn.14002a600
mov r14d, eax
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14007f655
test byte [rcx + 0x1c], r13b
je 0x14007f655
cmp byte [rcx + 0x19], 2
jb 0x14007f655
mov r9, qword [rbp - 0x11]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
call fcn.140014f78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x14007f2b0
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007f6a7
test byte [rcx + 0x1c], r13b
je 0x14007f6a7
cmp byte [rcx + 0x19], 2
jb 0x14007f6a7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
mov edx, 0x3f
mov r9, rbx
call fcn.140014f10
mov rcx, qword [0x14016a048]
mov r14d, 0x80070057
cmp qword [rbp - 0x31], 0
je 0x14007f6cb
lea rcx, [rbp - 0x31]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14007f6ea
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp dword [rbp + 7], 0
je 0x14007f756
lea rcx, [rbp + 7]
call fcn.140097468
mov r15d, eax
test eax, eax
jns 0x14007f74f
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007f737
test byte [rcx + 0x1c], r13b
je 0x14007f737
cmp byte [rcx + 0x19], 2
jb 0x14007f737
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
mov edx, 0x47
mov r9d, r15d
call fcn.14000c114
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007f783
test byte [rcx + 0x1c], r13b
je 0x14007f783
cmp byte [rcx + 0x19], 4
jb 0x14007f783
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014d290]
mov edx, 0x48
call fcn.14000c0e8
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.1400071e0
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