Function at 0x14000c9dc
Capabilities:
Copy file
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b8]
sub rsp, 0x6b8
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor ebx, ebx
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rbx
mov r15d, ebx
mov r13, r8
mov qword [rsp + 0x60], rdx
mov r14, rdx
mov r12, rcx
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x14000ca58
test byte [rcx + 0x1c], 4
je 0x14000ca58
cmp byte [rcx + 0x19], 5
jb 0x14000ca58
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x7d]
lea r8, [0x140081410]
call fcn.140001010
cmp dword [rbp + 0x620], ebx
jne 0x14000ca6a
mov eax, 0x57
jmp 0x14000cc8b
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r12
call fcn.140064fd4
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14000cae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cc89
test byte [rcx + 0x1c], 4
je 0x14000cc89
cmp byte [rcx + 0x19], 2
jb 0x14000cc89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x7e
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140001250
jmp 0x14000cc89
lea r9, [rbp + 0x390]
xor r8d, r8d
call fcn.140009a50
mov ebx, eax
test eax, eax
je 0x14000cbcf
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cb2a
test byte [rcx + 0x1c], 4
je 0x14000cb2a
cmp byte [rcx + 0x19], 2
jb 0x14000cb2a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x7f
mov r9d, eax
call fcn.140001030
mov r13, qword [rsp + 0x48]
lea r12, str.___t_
mov ecx, r15d
test ebx, ebx
je 0x14000cc6d
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14000cc72
mov r14, qword [rsp + 0x58]
mov rsi, rdi
sub rsi, r14
lea edi, [r15 - 1]
cmp r15d, dword [rbp + 0x620]
cmovne edi, ecx
inc edi
mov r8, qword [r14 + rsi]
test r8, r8
je 0x14000d12e
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
call fcn.1400084a4
test eax, eax
je 0x14000d084
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d12e
test byte [rcx + 0x1c], 4
je 0x14000d12e
cmp byte [rcx + 0x19], 3
jb 0x14000d12e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x8b
mov r9d, eax
call fcn.140001030
jmp 0x14000d12e
mov ecx, dword [rbp + 0x620]
mov eax, 8
mul rcx
mov rdi, rax
test rdx, rdx
je 0x14000cc22
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cc18
test byte [rcx + 0x1c], 4
je 0x14000cc18
cmp byte [rcx + 0x19], 2
jb 0x14000cc18
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x80
mov r9d, 0x80070216
call fcn.140001030
mov ebx, 0x216
jmp 0x14000cb2a
mov rcx, rdi
call fcn.1400625b8
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x14000ccae
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cc68
test byte [rcx + 0x1c], 4
je 0x14000cc68
cmp byte [rcx + 0x19], 2
jb 0x14000cc68
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x79]
mov r9d, edi
lea r8, [0x140081410]
call fcn.140001030
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp r13, 0xffffffffffffffff
je 0x14000cc81
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140062654
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140077900
add rsp, 0x6b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rcx, qword [r13]
call fcn.1400633d4
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x14000cd15
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cd07
test byte [rcx + 0x1c], 4
je 0x14000cd07
cmp byte [rcx + 0x19], 2
jb 0x14000cd07
mov r9, qword [r13]
lea edx, [rbx + 0x7a]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
call fcn.1400011f0
mov r13, qword [rsp + 0x48]
xor eax, eax
mov ecx, eax
jmp 0x14000cb41
mov dword [rsp + 0x40], ecx
cmp dword [rbp + 0x620], ecx
jbe 0x14000ce20
mov r14, qword [rsp + 0x58]
mov r15, rbx
sub r15, r14
mov edx, 0x3b
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000cd4b
mov word [rax], bx
call fcn.14004c3d4
mov qword [r15 + r14], rax
test rax, rax
je 0x14000cf77
mov rdx, qword [r14]
lea r9, [rbp + 0x180]
mov r8, rax
call fcn.1400084a4
mov ebx, eax
test eax, eax
jne 0x14000cf51
lea rax, [rbp + 0x180]
mov edx, 0x104
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x140080e30]
lea rcx, [rsp + 0x70]
call fcn.1400028c0
mov r9d, eax
test eax, eax
js 0x14000cefa
lea r8d, [rbx + 1]
mov rcx, r12
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000cebd
mov r8, rsi
lea rcx, [rsp + 0x70]
mov rdx, r13
call fcn.140005684
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x14000ce88
lea rsi, [rdi + 2]
test rdi, rdi
jne 0x14000cdee
mov esi, ecx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rsp + 0x40]
add r14, 8
inc ebx
mov dword [rsp + 0x40], ebx
cmp ebx, dword [rbp + 0x620]
jb 0x14000cd30
mov r14, qword [rsp + 0x60]
mov r15d, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000cfc5
mov rax, qword [str.___t_]
lea rsi, str.___t_
cmp rax, rsi
je 0x14000cfcc
test byte [rax + 0x1c], 4
je 0x14000cfcc
cmp byte [rax + 0x19], 3
jb 0x14000cfcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140081410]
mov r9d, eax
mov edx, 0x88
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14000cfcc
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cfb6
test byte [rcx + 0x1c], 4
je 0x14000cfb6
cmp byte [rcx + 0x19], 2
jb 0x14000cfb6
mov edx, 0x87
jmp 0x14000cfa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cfb6
test byte [rcx + 0x1c], 4
je 0x14000cfb6
cmp byte [rcx + 0x19], 2
jb 0x14000cfb6
mov edx, 0x86
jmp 0x14000cfa3
mov ecx, r9d
movzx eax, r9w
and ecx, 0x1fff0000
mov ebx, r9d
cmp ecx, 0x70000
cmove ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cfb6
test byte [rcx + 0x1c], 4
je 0x14000cfb6
cmp byte [rcx + 0x19], 2
jb 0x14000cfb6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x85
call fcn.140001030
jmp 0x14000cfb6
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cfb6
test byte [rcx + 0x1c], 4
je 0x14000cfb6
cmp byte [rcx + 0x19], 2
jb 0x14000cfb6
mov edx, 0x84
jmp 0x14000cfa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14000cfb6
test byte [rcx + 0x1c], 4
je 0x14000cfb6
cmp byte [rcx + 0x19], 2
jb 0x14000cfb6
mov edx, 0x83
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov r9d, eax
call fcn.140001030
mov r15d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x14000cb36
lea rsi, str.___t_
mov rcx, r12
or r13, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d02a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000cb2f
test byte [rcx + 0x1c], 4
je 0x14000cb2f
cmp byte [rcx + 0x19], 2
jb 0x14000cb2f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x89
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140001250
jmp 0x14000cb2f
mov r9d, dword [rbp + 0x620]
mov rdx, rbx
mov r8, qword [rsp + 0x58]
mov rcx, r14
call fcn.140053c90
mov ebx, eax
test eax, eax
je 0x14000cb2f
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14000d07b
test byte [rcx + 0x1c], 4
je 0x14000d07b
cmp byte [rcx + 0x19], 3
jb 0x14000d07b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x8a
mov r9d, eax
call fcn.140001030
xor ecx, ecx
mov ebx, ecx
jmp 0x14000cb2f
lea rax, [rbp + 0x180]
mov edx, 0x104
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x140080e30]
lea rcx, [rsp + 0x70]
call fcn.1400028c0
test eax, eax
jns 0x14000d0e3
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d12e
test byte [rcx + 0x1c], 4
je 0x14000d12e
cmp byte [rcx + 0x19], 3
jb 0x14000d12e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081410]
mov edx, 0x8c
mov r9d, eax
call fcn.140001030
jmp 0x14000d12e
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d12e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000d12e
test byte [rcx + 0x1c], 4
je 0x14000d12e
cmp byte [rcx + 0x19], 3
jb 0x14000d12e
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x70]
mov edx, 0x8d
mov dword [rsp + 0x20], eax
lea r8, [0x140081410]
call fcn.140001250
add r14, 8
sub rdi, 1
jne 0x14000cb6a
jmp 0x14000cc6d