Function at 0x14007ce4c
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, 0xb0
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 0x29], rcx
mov rcx, qword [0x14017b048]
lea rdx, [0x14017b048]
mov eax, 1
cmp rcx, rdx
je 0x14007ceba
test byte [rcx + 0x1c], al
je 0x14007ceba
cmp byte [rcx + 0x19], 4
jb 0x14007ceba
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140158ef0]
call fcn.140004c10
xorps xmm0, xmm0
lea rcx, [0x1401563d8]
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
xor r12d, r12d
mov qword [rbp - 0x49], rax
mov rbx, rax
test rax, rax
je 0x14007d571
mov ecx, dword [r14 + 0x14c]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
or r15, 0xffffffffffffffff
mov edi, r12d
mov qword [rbp - 0x31], r12
xorps xmm1, xmm1
mov qword [rbp - 0x21], r12
mov esi, r12d
mov qword [rbp - 0x19], r12
mov r13d, r12d
mov qword [rbp - 0x39], r12
movups xmm0, xmmword [0x14015af68]
movups xmmword [rbp - 1], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test ecx, ecx
je 0x14007cf62
mov r12, qword [r14 + 0x108]
mov eax, r13d
lea r14, [rax + rax*2]
mov eax, 1
shl r14, 6
test byte [r14 + r12 + 0x4c], al
je 0x14007cf53
cmp dword [r14 + r12 + 0x14], 9
je 0x14007cffa
add r13d, eax
cmp r13d, ecx
jb 0x14007cf30
xor r12d, r12d
mov r14, qword [rbp - 0x29]
mov r8d, 4
lea rcx, str.__
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14007d3f5
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r13d, dword [r14 + 0x14c]
jne 0x14007d04f
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
lea r13d, [rax + 1]
cmp rcx, r15
je 0x14007cfd0
test byte [rcx + 0x1c], r13b
je 0x14007cfd0
cmp byte [rcx + 0x19], 2
jb 0x14007cfd0
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x140158ef0]
call fcn.140004c10
lea r8, [0x1401542d4]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140087b08
mov rcx, qword [0x14017b048]
mov r14d, 0x8000ffff
jmp 0x14007d43e
mov rdx, qword [r14 + r12 + 0x70]
test rdx, rdx
jne 0x14007d021
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140087b08
mov rdx, qword [r14 + r12 + 0x70]
xor r12d, r12d
test rdx, rdx
je 0x14007cf5e
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007d030
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.14006dcf4
mov rbx, qword [rbp - 0x49]
jmp 0x14007cf5e
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140088864
mov r14d, eax
test eax, eax
js 0x14007d101
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x14007d113
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.140087b08
mov r13d, 1
lea rdx, str.EFIMicrosoftBootBCD
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007d0a8
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.14006dcf4
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.14007efa8
lea rcx, [rbp + 0x1f]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x14007d140
mov rbx, qword [rbp - 0x49]
mov r14d, 0x8000ffff
mov rdi, qword [rbp - 0x31]
mov rcx, qword [0x14017b048]
mov r13d, 1
jmp 0x14007d43e
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x14007d098
lea r13d, [rcx - 0x5b]
mov word [rbp - 0x41], cx
mov r8d, r13d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14006dcf4
jmp 0x14007d09e
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14007d162
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007d14c
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.14006dcf4
mov rdi, qword [rbp - 0x31]
mov r8d, r13d
mov rbx, qword [rbp - 0x49]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14007d1f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14007d108
test byte [rcx + 0x1c], r13b
je 0x14007d108
cmp byte [rcx + 0x19], 2
jb 0x14007d108
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.140005e80
jmp 0x14007d101
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.14007efa8
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14007d22c
inc r15
cmp word [rdx + r15*2], r12w
jne 0x14007d216
mov r8d, r15d
lea rcx, [rbp - 0x21]
call fcn.14006dcf4
mov rsi, qword [rbp - 0x21]
mov rcx, rsi
mov qword [rbp - 9], rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 1]
add ax, ax
mov word [rbp - 0x11], ax
add ax, r13w
add ax, ax
mov word [rbp - 0xf], ax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 1]
call qword [sym.imp.bcd.dll_BcdSetSystemStoreDevice]
nop dword [rax + rax]
test eax, eax
je 0x14007d30c
cmp eax, 0x80390003
jne 0x14007d2c4
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007d313
test byte [rcx + 0x1c], r13b
je 0x14007d313
cmp byte [rcx + 0x19], 3
jb 0x14007d313
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140004c3c
jmp 0x14007d313
mov ecx, eax
call fcn.14003bcc4
mov r14d, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14007d3e1
test byte [rcx + 0x1c], r13b
je 0x14007d3e1
cmp byte [rcx + 0x19], 2
jb 0x14007d3e1
mov r9, qword [rbp + 7]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x14007d3d1
lea r15, [0x14017b048]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140096178
mov r14d, eax
test eax, eax
jns 0x14007d365
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007d3e1
test byte [rcx + 0x1c], r13b
je 0x14007d3e1
cmp byte [rcx + 0x19], 2
jb 0x14007d3e1
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
call fcn.140004c10
jmp 0x14007d3e1
mov edx, r13d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x14007d3e1
cmp eax, 0x80390001
jne 0x14007d3a2
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007d3e1
test byte [rcx + 0x1c], r13b
je 0x14007d3e1
cmp byte [rcx + 0x19], 3
jb 0x14007d3e1
mov edx, 0x45
jmp 0x14007d353
mov ecx, eax
call fcn.14003bcc4
mov r14d, eax
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007d3e1
test byte [rcx + 0x1c], r13b
je 0x14007d3e1
cmp byte [rcx + 0x19], 2
jb 0x14007d3e1
mov r9, qword [rbp - 9]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
call fcn.140005d40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x14007d101
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
mov r13d, 1
cmp rcx, rax
je 0x14007d438
test byte [rcx + 0x1c], r13b
je 0x14007d438
cmp byte [rcx + 0x19], 2
jb 0x14007d438
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3e]
mov r9, rbx
lea r8, [0x140158ef0]
call fcn.140005cd0
mov rcx, qword [0x14017b048]
mov r14d, 0x80070057
cmp qword [rbp - 0x39], r12
je 0x14007d45b
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14007d47a
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp dword [rbp + 0xf], r12d
je 0x14007d4e6
lea rcx, [rbp + 0xf]
call fcn.14009624c
mov r15d, eax
test eax, eax
jns 0x14007d4df
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14007d4c7
test byte [rcx + 0x1c], r13b
je 0x14007d4c7
cmp byte [rcx + 0x19], 2
jb 0x14007d4c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
mov edx, 0x47
mov r9d, r15d
call fcn.140004c3c
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14007d513
test byte [rcx + 0x1c], r13b
je 0x14007d513
cmp byte [rcx + 0x19], 4
jb 0x14007d513
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158ef0]
mov edx, 0x48
call fcn.140004c10
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 + 0x2f]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0xb0]
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.140001950
int3