Function at 0x14008480c
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 [0x140183808]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 0x29], rcx
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
mov eax, 1
cmp rcx, rdx
je 0x14008487a
test byte [rcx + 0x1c], al
je 0x14008487a
cmp byte [rcx + 0x19], 4
jb 0x14008487a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3d]
lea r8, [0x1401605a0]
call fcn.140004e50
xorps xmm0, xmm0
lea rcx, [0x14015d5f8]
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 0x140084f31
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 [0x140162618]
movups xmmword [rbp - 1], xmm1
movdqu xmmword [rbp + 0x1f], xmm0
test ecx, ecx
je 0x140084922
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 0x140084913
cmp dword [r14 + r12 + 0x14], 9
je 0x1400849ba
add r13d, eax
cmp r13d, ecx
jb 0x1400848f0
xor r12d, r12d
mov r14, qword [rbp - 0x29]
mov r8d, 4
lea rcx, [0x140160318]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140084db5
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r13d, dword [r14 + 0x14c]
jne 0x140084a0f
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
lea r13d, [rax + 1]
cmp rcx, r15
je 0x140084990
test byte [rcx + 0x1c], r13b
je 0x140084990
cmp byte [rcx + 0x19], 2
jb 0x140084990
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x40]
lea r8, [0x1401605a0]
call fcn.140004e50
lea r8, [0x14015b4f4]
mov edx, 0x3a2
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008f4c8
mov rcx, qword [0x140183048]
mov r14d, 0x8000ffff
jmp 0x140084dfe
mov rdx, qword [r14 + r12 + 0x70]
test rdx, rdx
jne 0x1400849e1
lea r8, str.pVolCtxt__m_wszRestoreTargetPath
mov edx, 0x38d
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008f4c8
mov rdx, qword [r14 + r12 + 0x70]
xor r12d, r12d
test rdx, rdx
je 0x14008491e
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400849f0
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.1400756b4
mov rbx, qword [rbp - 0x49]
jmp 0x14008491e
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140090224
mov r14d, eax
test eax, eax
js 0x140084ac1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov eax, eax
test rax, rax
jne 0x140084ad3
lea r8, str.length___0
mov edx, 0x3ae
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.14008f4c8
mov r13d, 1
lea rdx, str.EFIMicrosoftBootBCD
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140084a68
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.1400756b4
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.140086968
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 0x140084b00
mov rbx, qword [rbp - 0x49]
mov r14d, 0x8000ffff
mov rdi, qword [rbp - 0x31]
mov rcx, qword [0x140183048]
mov r13d, 1
jmp 0x140084dfe
mov ecx, 0x5c
cmp word [rbx + rax*2 - 2], cx
je 0x140084a58
lea r13d, [rcx - 0x5b]
mov word [rbp - 0x41], cx
mov r8d, r13d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.1400756b4
jmp 0x140084a5e
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x140084b22
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140084b0c
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.1400756b4
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 0x140084bb2
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 [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140084ac8
test byte [rcx + 0x1c], r13b
je 0x140084ac8
cmp byte [rcx + 0x19], 2
jb 0x140084ac8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.1400060c0
jmp 0x140084ac1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.140086968
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x140084bec
inc r15
cmp word [rdx + r15*2], r12w
jne 0x140084bd6
mov r8d, r15d
lea rcx, [rbp - 0x21]
call fcn.1400756b4
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 0x140084ccc
cmp eax, 0x80390003
jne 0x140084c84
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x140084cd3
test byte [rcx + 0x1c], r13b
je 0x140084cd3
cmp byte [rcx + 0x19], 3
jb 0x140084cd3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
mov edx, 0x42
mov r9d, 0x80390003
call fcn.140004e7c
jmp 0x140084cd3
mov ecx, eax
call fcn.14003bf04
mov r14d, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140084da1
test byte [rcx + 0x1c], r13b
je 0x140084da1
cmp byte [rcx + 0x19], 2
jb 0x140084da1
mov r9, qword [rbp + 7]
mov edx, 0x43
mov dword [rsp + 0x20], r14d
jmp 0x140084d91
lea r15, [0x140183048]
lea r8, [rbp + 0xf]
lea rcx, str.SeSystemEnvironmentPrivilege
call fcn.14009db38
mov r14d, eax
test eax, eax
jns 0x140084d25
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x140084da1
test byte [rcx + 0x1c], r13b
je 0x140084da1
cmp byte [rcx + 0x19], 2
jb 0x140084da1
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
call fcn.140004e50
jmp 0x140084da1
mov edx, r13d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcd.dll_BcdImportStoreWithFlags]
nop dword [rax + rax]
test eax, eax
je 0x140084da1
cmp eax, 0x80390001
jne 0x140084d62
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x140084da1
test byte [rcx + 0x1c], r13b
je 0x140084da1
cmp byte [rcx + 0x19], 3
jb 0x140084da1
mov edx, 0x45
jmp 0x140084d13
mov ecx, eax
call fcn.14003bf04
mov r14d, eax
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x140084da1
test byte [rcx + 0x1c], r13b
je 0x140084da1
cmp byte [rcx + 0x19], 2
jb 0x140084da1
mov r9, qword [rbp - 9]
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
call fcn.140005f80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x140084ac1
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
mov r13d, 1
cmp rcx, rax
je 0x140084df8
test byte [rcx + 0x1c], r13b
je 0x140084df8
cmp byte [rcx + 0x19], 2
jb 0x140084df8
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x3e]
mov r9, rbx
lea r8, [0x1401605a0]
call fcn.140005f10
mov rcx, qword [0x140183048]
mov r14d, 0x80070057
cmp qword [rbp - 0x39], r12
je 0x140084e1b
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x140084e3a
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp dword [rbp + 0xf], r12d
je 0x140084ea6
lea rcx, [rbp + 0xf]
call fcn.14009dc0c
mov r15d, eax
test eax, eax
jns 0x140084e9f
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140084e87
test byte [rcx + 0x1c], r13b
je 0x140084e87
cmp byte [rcx + 0x19], 2
jb 0x140084e87
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
mov edx, 0x47
mov r9d, r15d
call fcn.140004e7c
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140084ed3
test byte [rcx + 0x1c], r13b
je 0x140084ed3
cmp byte [rcx + 0x19], 4
jb 0x140084ed3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401605a0]
mov edx, 0x48
call fcn.140004e50
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.1401534b0
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.140001b90
int3