Function at 0x140009410
Capabilities:
Copy file
Delete file

Disassembly:
push rdi
push r13
push r14
mov eax, 0x10c0
call fcn.140197d90
sub rsp, rax
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [rsp + 0x10e0], rbx
mov qword [rsp + 0x10f0], rsi
mov rax, qword [0x1402677d8]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0xe0], rdx
mov rax, qword [rcx + 0x28]
cmp qword [rcx + 0x20], rax
jne 0x1400094aa
mov rdx, qword [rdx + 0x18]
cmp rdx, 0x10
jb 0x1400094a3
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14000949e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400097af
mov rcx, r8
call fcn.140014bac
xor al, al
jmp 0x140009773
movdqa xmm0, xmmword [0x14022e670]
movdqu xmmword [rsp + 0xf8], xmm0
mov byte [rsp + 0xe8], 0
mov r8d, 7
lea rdx, [0x140228bd0]
lea rcx, [rsp + 0xe8]
call fcn.140003aa0
nop
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rcx, qword [rsp + 0xe8]
call fcn.14000c570
mov r14, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x140009572
mov rdx, qword [rsp + 0x100]
cmp rdx, 0x10
jb 0x140009550
inc rdx
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000954b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097af
call fcn.140014bac
movdqa xmm0, xmmword [0x14022e670]
movdqu xmmword [rsp + 0xf8], xmm0
mov byte [rsp + 0xe8], 0
mov rdx, qword [rdi + 0x18]
jmp 0x14000946d
xor esi, esi
mov rbx, qword [r13 + 0x20]
nop dword [rax + rax]
cmp rbx, qword [r13 + 0x28]
je 0x140009629
cmp byte [0x14027806c], 0
jne 0x140009629
cmp byte [0x14027806d], 0
jne 0x140009629
cmp qword [rbx + 0x29], 0
je 0x140009609
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], eax
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400095e1
mov rdx, qword [rbx]
lea r8, [rsp + 0xb0]
mov rcx, r14
call fcn.14000c920
mov esi, eax
test eax, eax
jne 0x140009629
mov r8d, dword [rbx + 0x24]
mov rdx, qword [rbx + 0x29]
mov rcx, r14
call fcn.14000ce40
mov esi, eax
add rbx, 0x31
jmp 0x140009580
mov rcx, r14
call fcn.14000d530
xor edx, edx
mov r8d, 0xfa0
lea rcx, [rsp + 0x110]
call fcn.140199110
mov r14, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140009657
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400096b4
test r14, r14
je 0x1400096b4
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, r14d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [rax - 1]
cmp edx, 0x7cf
ja 0x1400096b4
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, str.tmp.tmp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, str.tmp.tmp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
sete bl
mov rdx, qword [rsp + 0x100]
cmp rdx, 0x10
jb 0x140009721
inc rdx
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000971c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097af
call fcn.140014bac
movdqa xmm0, xmmword [0x14022e670]
movdqu xmmword [rsp + 0xf8], xmm0
mov byte [rsp + 0xe8], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140009770
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000976b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400097af
mov rcx, r8
call fcn.140014bac
movzx eax, bl
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.140197410
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
call fcn.14019bce4
nop
int3