Function at 0x140079998
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 [0x140172608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
mov r14d, 1
cmp rcx, rax
je 0x140079a05
test byte [rcx + 0x1c], r14b
je 0x140079a05
cmp byte [rcx + 0x19], 4
jb 0x140079a05
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x3d]
lea r8, [0x14014e950]
call fcn.140004b74
xor eax, eax
lea rcx, [0x14014be58]
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 0x14007a098
movups xmm0, xmmword [0x14015b8f8]
mov ecx, dword [r13 + 0x14c]
xor eax, eax
or r12, 0xffffffffffffffff
mov qword [rbp - 0x29], 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 0x140079af7
mov eax, r15d
lea r14, [rax + rax*2]
shl r14, 6
add r14, qword [r13 + 0x108]
test byte [r14 + 0x4c], 1
je 0x140079a95
cmp dword [r14 + 0x14], 9
je 0x140079aa5
mov r14d, 1
add r15d, r14d
cmp r15d, ecx
jae 0x140079af7
jmp 0x140079a75
cmp qword [r14 + 0x70], r8
jne 0x140079ac6
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008410c
xor r8d, r8d
mov rdx, qword [r14 + 0x70]
test rdx, rdx
jne 0x140079ad4
mov eax, r8d
jmp 0x140079ae1
mov rax, r12
inc rax
cmp word [rdx + rax*2], r8w
jne 0x140079ad7
mov r8d, eax
lea rcx, [rbp - 0x39]
call fcn.14006b19c
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 0x140079f35
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r15d, dword [r13 + 0x14c]
jne 0x140079b81
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x140079b57
test byte [rcx + 0x1c], r14b
je 0x140079b57
cmp byte [rcx + 0x19], 2
jb 0x140079b57
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x14014e950]
call fcn.140004b74
lea r8, [0x140149d6c]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
mov r14d, 0x8000ffff
jmp 0x140079f79
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140084d90
xor r13d, r13d
mov r14d, eax
test eax, eax
js 0x140079c3d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov eax, eax
test rax, rax
jne 0x140079c50
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008410c
mov r15d, 1
mov r8d, 0x16
lea rdx, str.EFIMicrosoftBootBCD
lea rcx, [rbp - 0x39]
call fcn.14006b19c
mov rbx, qword [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140079c1b
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 0x140079c1b
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x29], 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 0x140079c7d
mov r14d, 0x8000ffff
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
jmp 0x140079f7c
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x140079bc7
lea r15d, [rcx - 0x5b]
mov word [rbp - 0x31], cx
mov r8d, r15d
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.14006b19c
jmp 0x140079bcd
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x140079c8b
mov eax, r13d
jmp 0x140079c98
mov rax, r12
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140079c8e
mov r8d, eax
lea rcx, [rbp - 0x29]
call fcn.14006b19c
mov rdi, qword [rbp - 0x29]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140079d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x140079f7c
test byte [rcx + 0x1c], r15b
je 0x140079f7c
cmp byte [rcx + 0x19], 2
jb 0x140079f7c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.140005c9c
mov rcx, qword [0x1401720a0]
jmp 0x140079f7c
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
mov qword [rbp - 0x29], r13
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140079d6b
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 0x140079d6b
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x29], rax
mov rdx, qword [rbp - 0x21]
test rdx, rdx
jne 0x140079d79
mov r12d, r13d
jmp 0x140079d83
inc r12
cmp word [rdx + r12*2], r13w
jne 0x140079d79
mov r8d, r12d
lea rcx, [rbp - 0x29]
call fcn.14006b19c
mov rsi, qword [rbp - 0x29]
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 0x140079e58
cmp eax, 0x80390003
jne 0x140079e15
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x140079e5f
test byte [rcx + 0x1c], r15b
je 0x140079e5f
cmp byte [rcx + 0x19], 3
jb 0x140079e5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140004b98
jmp 0x140079e5f
mov ecx, eax
call fcn.14003ab64
mov r14d, eax
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x140079f27
test byte [rcx + 0x1c], r15b
je 0x140079f27
cmp byte [rcx + 0x19], 2
jb 0x140079f27
mov r9, qword [rbp + 7]
mov edx, 0x43
jmp 0x140079f13
lea r12, [0x1401720a0]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.140091e88
mov r14d, eax
test eax, eax
jns 0x140079eb1
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x140079f27
test byte [rcx + 0x1c], r15b
je 0x140079f27
cmp byte [rcx + 0x19], 2
jb 0x140079f27
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
call fcn.140004b74
jmp 0x140079f27
mov edx, r15d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
test eax, eax
je 0x140079f27
cmp eax, 0x80390001
jne 0x140079ee8
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x140079f27
test byte [rcx + 0x1c], r15b
je 0x140079f27
cmp byte [rcx + 0x19], 3
jb 0x140079f27
mov edx, 0x45
jmp 0x140079e9f
mov ecx, eax
call fcn.14003ab64
mov r14d, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x140079f27
test byte [rcx + 0x1c], r15b
je 0x140079f27
cmp byte [rcx + 0x19], 2
jb 0x140079f27
mov r9, qword [rbp - 9]
mov edx, 0x46
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
mov dword [rsp + 0x20], eax
call fcn.140005b60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140079d1f
mov rcx, qword [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x140079f73
test byte [rcx + 0x1c], r14b
je 0x140079f73
cmp byte [rcx + 0x19], 2
jb 0x140079f73
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
mov edx, 0x3f
mov r9, rbx
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov r14d, 0x80070057
xor r13d, r13d
cmp qword [rbp - 0x21], r13
je 0x140079f93
lea rcx, [rbp - 0x21]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rcx, qword [0x1401720a0]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x140079fac
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp dword [rbp + 0xf], r13d
je 0x14007a01a
lea rcx, [rbp + 0xf]
call fcn.140091f44
mov r15d, eax
test eax, eax
jns 0x14007a013
mov rcx, qword [0x1401720a0]
cmp rcx, r12
mov r12d, 1
je 0x140079ff8
test byte [rcx + 0x1c], r12b
je 0x140079ff8
cmp byte [rcx + 0x19], 2
jb 0x140079ff8
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x46]
mov r9d, eax
lea r8, [0x14014e950]
call fcn.140004b98
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x1401720a0]
mov r12d, 1
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14007a04d
test byte [rcx + 0x1c], r12b
je 0x14007a04d
cmp byte [rcx + 0x19], 4
jb 0x14007a04d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e950]
mov edx, 0x48
call fcn.140004b74
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.140141cf0
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.140001b00
int3