Function at 0x1400906e0
Capabilities:
Copy file
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
lea rax, [0x14017d3a8]
mov r14d, 1
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x140090755
test byte [rcx + 0x1c], r14b
je 0x140090755
cmp byte [rcx + 0x19], 4
jb 0x140090755
lea edx, [r14 + 0x3d]
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 7]
call sub.msvcrt.dll_memset
lea rcx, [0x1400056c0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x49], rax
xor ecx, ecx
test rax, rax
jne 0x14009078a
mov ecx, 0x8007000e
call fcn.14001ad98
nop
mov rdi, rcx
mov qword [rbp - 0x31], rcx
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp - 0x41], rcx
mov r12d, ecx
mov eax, dword [r13 + reloc.ADVAPI32.dll_TraceEvent]
or r15, 0xffffffffffffffff
test eax, eax
je 0x140090844
mov r14, qword [r13 + 0x108]
lea edx, [r15 + 2]
test byte [r14 + 0x4c], dl
je 0x1400907e4
cmp dword [r14 + 0x14], 9
je 0x1400907f5
add r12d, edx
add r14, 0xc0
cmp r12d, eax
jae 0x14009083e
jmp 0x1400907d7
cmp qword [r14 + 0x70], rcx
jne 0x140090815
lea r8, [0x140008950]
mov edx, 0x38d
lea rcx, [0x140008858]
call fcn.1400a8be8
xor ecx, ecx
mov rdx, qword [r14 + 0x70]
test rdx, rdx
jne 0x140090822
mov eax, ecx
jmp 0x14009082e
mov rax, r15
inc rax
cmp word [rdx + rax*2], cx
jne 0x140090825
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.140081c3c
mov rbx, qword [rbp - 0x49]
mov r14d, 1
mov r8d, 4
mov rdx, rbx
lea rcx, [0x140008978]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140090c6e
lea edx, [rax + 0x3f]
mov word [rbx + 2], dx
cmp r12d, dword [r13 + reloc.ADVAPI32.dll_TraceEvent]
jne 0x1400908d5
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x1400908a4
test byte [rcx + 0x1c], r14b
je 0x1400908a4
cmp byte [rcx + 0x19], 2
jb 0x1400908a4
lea edx, [rax + 0x40]
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
lea r8, [0x140003304]
mov edx, 0x3a2
lea rcx, [0x140008858]
call fcn.1400a8be8
mov r14d, 0x8000ffff
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
jmp 0x140090cb2
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.1400a987c
mov r14d, eax
xor r12d, r12d
test eax, eax
js 0x1400909b6
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r11d, eax
test eax, eax
jne 0x140090919
lea r8, [0x140008988]
mov edx, 0x3ae
lea rcx, [0x140008858]
call fcn.1400a8be8
jmp 0x140090940
mov eax, 0x5c
cmp word [rbx + r11*2 - 2], ax
je 0x140090940
mov word [rbp - 0x59], ax
lea r13d, [rax - 0x5b]
mov r8d, r13d
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.140081c3c
jmp 0x140090946
mov r13d, 1
mov r8d, 0x16
lea rdx, [0x140009f48]
lea rcx, [rbp - 0x49]
call fcn.140081c3c
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140090994
mov qword [rbp - 0x51], r12
lea r8, [rbp - 0x51]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x140090994
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rbp - 0x51]
mov qword [rbp - 0x31], rdi
lea rcx, [rbp + 0x17]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x17]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x1400909c9
mov r14d, 0x8000ffff
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
jmp 0x140090cb5
mov rdx, qword [rbp - 0x41]
test rdx, rdx
jne 0x1400909d7
mov eax, r12d
jmp 0x1400909e4
mov rax, r15
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400909da
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.140081c3c
mov r8d, r13d
mov rdi, qword [rbp - 0x31]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140090a64
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400909bd
test byte [rcx + 0x1c], r13b
je 0x1400909bd
cmp byte [rcx + 0x19], 2
jb 0x1400909bd
mov edx, 0x41
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.140028ec8
jmp 0x1400909b6
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp - 0x51], r12
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140090aa4
mov qword [rbp - 0x19], r12
lea r8, [rbp - 0x19]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x140090aa4
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r11, qword [rbp - 0x19]
mov qword [rbp - 0x51], r11
mov rdx, qword [rbp - 0x41]
test rdx, rdx
jne 0x140090ab2
mov r15d, r12d
jmp 0x140090abc
inc r15
cmp word [rdx + r15*2], r12w
jne 0x140090ab2
mov r8d, r15d
lea rcx, [rbp - 0x51]
call fcn.140081c3c
mov rsi, qword [rbp - 0x51]
mov qword [rbp - 0x21], rsi
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
add ax, ax
mov word [rbp - 0x29], ax
add ax, r13w
add ax, ax
mov word [rbp - 0x27], ax
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x11]
call fcn.14009a988
test eax, eax
je 0x140090b95
cmp eax, 0x80390003
jne 0x140090b4d
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140090b9c
test byte [rcx + 0x1c], r13b
je 0x140090b9c
cmp byte [rcx + 0x19], 3
jb 0x140090b9c
mov edx, 0x42
mov r9d, 0x80390003
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x140090b9c
mov ecx, eax
call fcn.14005246c
mov r14d, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140090c60
test byte [rcx + 0x1c], r13b
je 0x140090c60
cmp byte [rcx + 0x19], 2
jb 0x140090c60
mov edx, 0x43
mov dword [rsp + 0x20], r14d
mov r9, qword [rbp - 9]
jmp 0x140090c50
lea r15, [0x14017d3a8]
lea rdx, [rbp + 7]
lea rcx, [0x140008998]
call fcn.1400b6bb8
mov r14d, eax
test eax, eax
jns 0x140090bee
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140090c60
test byte [rcx + 0x1c], r13b
je 0x140090c60
cmp byte [rcx + 0x19], 2
jb 0x140090c60
mov edx, 0x44
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
jmp 0x140090c60
lea rcx, [rbp - 0x29]
call fcn.14009bef8
test eax, eax
je 0x140090c60
cmp eax, 0x80390001
jne 0x140090c21
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140090c60
test byte [rcx + 0x1c], r13b
je 0x140090c60
cmp byte [rcx + 0x19], 3
jb 0x140090c60
mov edx, 0x45
jmp 0x140090bdc
mov ecx, eax
call fcn.14005246c
mov r14d, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140090c60
test byte [rcx + 0x1c], r13b
je 0x140090c60
cmp byte [rcx + 0x19], 2
jb 0x140090c60
mov edx, 0x46
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x21]
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400909b6
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x140090cac
test byte [rcx + 0x1c], r14b
je 0x140090cac
cmp byte [rcx + 0x19], 2
jb 0x140090cac
mov edx, 0x3f
mov r9, rbx
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov r14d, 0x80070057
xor r12d, r12d
cmp qword [rbp - 0x41], r12
je 0x140090ccc
lea rcx, [rbp - 0x41]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rcx, qword [0x14017d3a8]
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140090ce5
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp dword [rbp + 7], r12d
je 0x140090d45
lea rcx, [rbp + 7]
call fcn.1400b6c74
mov r15d, eax
test eax, eax
jns 0x140090d3e
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x140090d2b
test byte [rcx + 0x1c], 1
je 0x140090d2b
cmp byte [rcx + 0x19], 2
jb 0x140090d2b
mov edx, 0x47
mov r9d, eax
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x140090d6c
test byte [rcx + 0x1c], 1
je 0x140090d6c
cmp byte [rcx + 0x19], 4
jb 0x140090d6c
mov edx, 0x48
lea r8, [0x140008c00]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0xc0]
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