Function at 0x14007ca0c
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 - 0x29], rcx
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov eax, 1
cmp rcx, rdx
je 0x14007ca7a
test byte [rcx + 0x1c], al
je 0x14007ca7a
cmp byte [rcx + 0x19], 4
jb 0x14007ca7a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x140157d80]
call fcn.140004b70
xorps xmm0, xmm0
lea rcx, [0x140155268]
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 0x14007d131
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 [0x140159df8]
movups xmmword [rbp - 1], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test ecx, ecx
je 0x14007cb22
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 0x14007cb13
cmp dword [r14 + r12 + 0x14], 9
je 0x14007cbba
add r13d, eax
cmp r13d, ecx
jb 0x14007caf0
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 0x14007cfb5
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r13d, dword [r14 + 0x14c]
jne 0x14007cc0f
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
lea r13d, [rax + 1]
cmp rcx, r15
je 0x14007cb90
test byte [rcx + 0x1c], r13b
je 0x14007cb90
cmp byte [rcx + 0x19], 2
jb 0x14007cb90
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x140157d80]
call fcn.140004b70
lea r8, [0x140153164]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400876c8
mov rcx, qword [0x14017a048]
mov r14d, 0x8000ffff
jmp 0x14007cffe
mov rdx, qword [r14 + r12 + 0x70]
test rdx, rdx
jne 0x14007cbe1
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400876c8
mov rdx, qword [r14 + r12 + 0x70]
xor r12d, r12d
test rdx, rdx
je 0x14007cb1e
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007cbf0
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.14006d8b4
mov rbx, qword [rbp - 0x49]
jmp 0x14007cb1e
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140088424
mov r14d, eax
test eax, eax
js 0x14007ccc1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x14007ccd3
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400876c8
mov r13d, 1
lea rdx, str.EFIMicrosoftBootBCD
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007cc68
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.14006d8b4
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.14007eb68
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 0x14007cd00
mov rbx, qword [rbp - 0x49]
mov r14d, 0x8000ffff
mov rdi, qword [rbp - 0x31]
mov rcx, qword [0x14017a048]
mov r13d, 1
jmp 0x14007cffe
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x14007cc58
lea r13d, [rcx - 0x5b]
mov word [rbp - 0x41], cx
mov r8d, r13d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14006d8b4
jmp 0x14007cc5e
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14007cd22
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14007cd0c
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.14006d8b4
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 0x14007cdb2
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 [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007ccc8
test byte [rcx + 0x1c], r13b
je 0x14007ccc8
cmp byte [rcx + 0x19], 2
jb 0x14007ccc8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.140005de0
jmp 0x14007ccc1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.14007eb68
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14007cdec
inc r15
cmp word [rdx + r15*2], r12w
jne 0x14007cdd6
mov r8d, r15d
lea rcx, [rbp - 0x21]
call fcn.14006d8b4
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 0x14007cecc
cmp eax, 0x80390003
jne 0x14007ce84
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x14007ced3
test byte [rcx + 0x1c], r13b
je 0x14007ced3
cmp byte [rcx + 0x19], 3
jb 0x14007ced3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140004b9c
jmp 0x14007ced3
mov ecx, eax
call fcn.14003bb54
mov r14d, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007cfa1
test byte [rcx + 0x1c], r13b
je 0x14007cfa1
cmp byte [rcx + 0x19], 2
jb 0x14007cfa1
mov r9, qword [rbp + 7]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x14007cf91
lea r15, [0x14017a048]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140095d38
mov r14d, eax
test eax, eax
jns 0x14007cf25
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14007cfa1
test byte [rcx + 0x1c], r13b
je 0x14007cfa1
cmp byte [rcx + 0x19], 2
jb 0x14007cfa1
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
call fcn.140004b70
jmp 0x14007cfa1
mov edx, r13d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x14007cfa1
cmp eax, 0x80390001
jne 0x14007cf62
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14007cfa1
test byte [rcx + 0x1c], r13b
je 0x14007cfa1
cmp byte [rcx + 0x19], 3
jb 0x14007cfa1
mov edx, 0x45
jmp 0x14007cf13
mov ecx, eax
call fcn.14003bb54
mov r14d, eax
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14007cfa1
test byte [rcx + 0x1c], r13b
je 0x14007cfa1
cmp byte [rcx + 0x19], 2
jb 0x14007cfa1
mov r9, qword [rbp - 9]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
call fcn.140005ca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x14007ccc1
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r13d, 1
cmp rcx, rax
je 0x14007cff8
test byte [rcx + 0x1c], r13b
je 0x14007cff8
cmp byte [rcx + 0x19], 2
jb 0x14007cff8
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3e]
mov r9, rbx
lea r8, [0x140157d80]
call fcn.140005c30
mov rcx, qword [0x14017a048]
mov r14d, 0x80070057
cmp qword [rbp - 0x39], r12
je 0x14007d01b
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14007d03a
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp dword [rbp + 0xf], r12d
je 0x14007d0a6
lea rcx, [rbp + 0xf]
call fcn.140095e0c
mov r15d, eax
test eax, eax
jns 0x14007d09f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007d087
test byte [rcx + 0x1c], r13b
je 0x14007d087
cmp byte [rcx + 0x19], 2
jb 0x14007d087
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
mov edx, 0x47
mov r9d, r15d
call fcn.140004b9c
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 0x14007d0d3
test byte [rcx + 0x1c], r13b
je 0x14007d0d3
cmp byte [rcx + 0x19], 4
jb 0x14007d0d3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157d80]
mov edx, 0x48
call fcn.140004b70
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.14014b700
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