Function at 0x1400806bc
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 0x19], rcx
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov eax, 1
cmp rcx, rdx
je 0x14008072a
test byte [rcx + 0x1c], al
je 0x14008072a
cmp byte [rcx + 0x19], 4
jb 0x14008072a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x14015d040]
call fcn.140006b98
xorps xmm0, xmm0
lea rcx, [0x14015a528]
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 0x140080ded
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 - 0x29], r12
mov esi, r12d
mov qword [rbp - 0x21], r12
mov r13d, r12d
mov qword [rbp - 0x39], r12
movups xmm0, xmmword [0x14015f068]
movups xmmword [rbp - 1], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test ecx, ecx
je 0x1400807d2
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 0x1400807c3
cmp dword [r14 + r12 + 0x14], 9
je 0x14008086a
add r13d, eax
cmp r13d, ecx
jb 0x1400807a0
xor r12d, r12d
mov r14, qword [rbp - 0x19]
mov r8d, 4
lea rcx, [0x14015cdb8]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140080c71
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r13d, dword [r14 + 0x14c]
jne 0x1400808c0
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
lea r13d, [rax + 1]
cmp rcx, r15
je 0x140080840
test byte [rcx + 0x1c], r13b
je 0x140080840
cmp byte [rcx + 0x19], 2
jb 0x140080840
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x14015d040]
call fcn.140006b98
lea r8, [0x140158424]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008ac24
mov rcx, qword [0x14017a048]
mov r14d, 0x8000ffff
jmp 0x140080cba
mov rdx, qword [r14 + r12 + 0x70]
test rdx, rdx
jne 0x140080891
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008ac24
mov rdx, qword [r14 + r12 + 0x70]
xor r12d, r12d
test rdx, rdx
jne 0x14008089e
mov eax, r12d
jmp 0x1400808ab
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400808a1
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.140069534
mov rbx, qword [rbp - 0x49]
jmp 0x1400807ce
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.14008c314
mov r14d, eax
test eax, eax
js 0x140080972
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x140080984
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008ac24
mov r13d, 1
lea rdx, str.EFIMicrosoftBootBCD
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140080919
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.140069534
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.14007e464
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 0x1400809b1
mov rbx, qword [rbp - 0x49]
mov r14d, 0x8000ffff
mov rdi, qword [rbp - 0x31]
mov rcx, qword [0x14017a048]
mov r13d, 1
jmp 0x140080cba
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x140080909
lea r13d, [rcx - 0x5b]
mov word [rbp - 0x41], cx
mov r8d, r13d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.140069534
jmp 0x14008090f
mov rdx, qword [rbp - 0x39]
test rdx, rdx
jne 0x1400809bf
mov eax, r12d
jmp 0x1400809cc
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400809c2
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.140069534
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 0x140080a69
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jle 0x140080a17
movzx r14d, ax
or r14d, 0x80070000
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140080979
test byte [rcx + 0x1c], r13b
je 0x140080979
cmp byte [rcx + 0x19], 2
jb 0x140080979
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.140011464
jmp 0x140080972
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.14007e464
mov rdx, qword [rbp - 0x39]
test rdx, rdx
jne 0x140080a92
mov r15d, r12d
jmp 0x140080a9c
inc r15
cmp word [rdx + r15*2], r12w
jne 0x140080a92
mov r8d, r15d
lea rcx, [rbp - 0x29]
call fcn.140069534
mov rsi, qword [rbp - 0x29]
mov rcx, rsi
mov qword [rbp - 9], rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x21]
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 0x140080b88
cmp eax, 0x80390003
jne 0x140080b40
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140080b8f
test byte [rcx + 0x1c], r13b
je 0x140080b8f
cmp byte [rcx + 0x19], 3
jb 0x140080b8f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140006bc4
jmp 0x140080b8f
mov ecx, eax
call fcn.140026c9c
mov r14d, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140080c5d
test byte [rcx + 0x1c], r13b
je 0x140080c5d
cmp byte [rcx + 0x19], 2
jb 0x140080c5d
mov r9, qword [rbp + 7]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x140080c4d
lea r15, [0x14017a048]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.1400996d4
mov r14d, eax
test eax, eax
jns 0x140080be1
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140080c5d
test byte [rcx + 0x1c], r13b
je 0x140080c5d
cmp byte [rcx + 0x19], 2
jb 0x140080c5d
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
call fcn.140006b98
jmp 0x140080c5d
mov edx, r13d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x140080c5d
cmp eax, 0x80390001
jne 0x140080c1e
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140080c5d
test byte [rcx + 0x1c], r13b
je 0x140080c5d
cmp byte [rcx + 0x19], 3
jb 0x140080c5d
mov edx, 0x45
jmp 0x140080bcf
mov ecx, eax
call fcn.140026c9c
mov r14d, eax
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140080c5d
test byte [rcx + 0x1c], r13b
je 0x140080c5d
cmp byte [rcx + 0x19], 2
jb 0x140080c5d
mov r9, qword [rbp - 9]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
call fcn.140011330
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x140080972
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r13d, 1
cmp rcx, rax
je 0x140080cb4
test byte [rcx + 0x1c], r13b
je 0x140080cb4
cmp byte [rcx + 0x19], 2
jb 0x140080cb4
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3e]
mov r9, rbx
lea r8, [0x14015d040]
call fcn.1400112c8
mov rcx, qword [0x14017a048]
mov r14d, 0x80070057
cmp qword [rbp - 0x39], r12
je 0x140080cd7
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x140080cf6
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp dword [rbp + 0xf], r12d
je 0x140080d62
lea rcx, [rbp + 0xf]
call fcn.140099430
mov r15d, eax
test eax, eax
jns 0x140080d5b
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140080d43
test byte [rcx + 0x1c], r13b
je 0x140080d43
cmp byte [rcx + 0x19], 2
jb 0x140080d43
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
mov edx, 0x47
mov r9d, r15d
call fcn.140006bc4
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140080d8f
test byte [rcx + 0x1c], r13b
je 0x140080d8f
cmp byte [rcx + 0x19], 4
jb 0x140080d8f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d040]
mov edx, 0x48
call fcn.140006b98
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.140001d90
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.140003714
int3