Function at 0x14003638c
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rdi, rcx
xor eax, eax
mov r12d, eax
mov qword [rbp + 0x58], rax
mov qword [rbp - 0x18], rax
mov esi, eax
mov qword [rbp + 0x50], rax
mov r15d, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x48], rax
mov r13d, eax
cmp qword [rcx + 0x1d8], rax
jne 0x1400363ed
lea r8, [0x140004208]
mov edx, 0x1eb7
lea rcx, [0x140003c50]
call fcn.1400a8be8
lea r14, [0x14017d3a8]
test byte [rdi + 0x154], 4
je 0x140036502
lea r9, [rbp - 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x1d8]
call fcn.14014fcc8
mov ebx, eax
test eax, eax
js 0x1400366a8
lea rdx, [rbp + 0x50]
mov r14, qword [rbp - 0x18]
mov rcx, r14
call fcn.14011f17c
mov ebx, eax
test eax, eax
jns 0x14003648f
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140036486
test byte [rcx + 0x1c], 1
je 0x140036486
cmp byte [rcx + 0x19], 2
jb 0x140036486
mov edx, 0x16e
mov dword [rsp + 0x28], ebx
mov rax, qword [rdi + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.140028ec8
mov rsi, qword [rbp + 0x50]
jmp 0x140036677
mov rsi, qword [rbp + 0x50]
jmp 0x14003667e
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x140036502
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140036502
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x1400364ef
test byte [rcx + 0x1c], 1
je 0x1400364ef
cmp byte [rcx + 0x19], 2
jb 0x1400364ef
mov edx, 0x16f
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140036685
lea r14, [rdi + 0x128]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rdi + 0x1d8]
call fcn.14014fcc8
mov ebx, eax
mov r15, qword [rbp + 0x60]
test eax, eax
js 0x140036677
test byte [rdi + 0x154], 1
je 0x140036547
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.1400a99e4
jmp 0x14003655d
lea r9, [rbp + 0x48]
mov r8b, 1
mov rdx, r14
mov rcx, qword [rdi + 0x1d8]
call fcn.14014fcc8
mov ebx, eax
test eax, eax
js 0x140036665
lea rcx, [rbp + 0x58]
call fcn.14014f62c
mov ebx, eax
mov r12, qword [rbp + 0x58]
mov r14, qword [rbp + 0x48]
test eax, eax
js 0x140036669
mov r9, r12
mov r8d, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
mov rdx, r14
mov rcx, r15
call fcn.14011e870
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140036669
test byte [rdi + 0x154], 0x80
je 0x140036669
cmp byte [rdi + 0x114], cl
je 0x140036669
mov ecx, 0x40
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rbp + 0x48], rax
xor ecx, ecx
test rax, rax
je 0x1400365df
mov rcx, rax
call fcn.140052668
mov r13, rax
jmp 0x1400365e2
mov r13, rcx
mov qword [rbp + 0x48], r13
mov rdx, r15
mov rcx, r13
call fcn.140029a6c
mov ebx, eax
test eax, eax
js 0x140036669
or r8, 0xffffffffffffffff
xor ebx, ebx
inc r8
cmp word [r12 + r8*2], bx
jne 0x1400365fd
lea r8, [r8*2 + 2]
mov rdx, r12
mov rcx, r13
call fcn.140029d98
mov ebx, eax
test eax, eax
js 0x140036669
add rdi, 0x308
mov r13, qword [rdi + 8]
cmp r13, qword [rdi + 0x10]
jb 0x14003664c
lea rdx, [r13 + 1]
mov rcx, rdi
call fcn.14008b270
test al, al
jne 0x14003664c
mov ecx, 0x8007000e
call fcn.14001ad98
int3
mov rax, qword [rdi]
lea rcx, [rax + r13*8]
mov r13, qword [rbp + 0x48]
test rcx, rcx
je 0x14003665f
mov qword [rcx], r13
inc qword [rdi + 8]
jmp 0x140036669
mov r14, qword [rbp + 0x48]
test r14, r14
je 0x140036677
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
test rsi, rsi
je 0x14003669a
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test r15, r15
je 0x1400366af
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x1400366c8
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14003670f
test r13, r13
je 0x1400366e6
mov rax, qword [r13]
mov edx, 1
mov rcx, r13
call qword [rax]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x14003670f
test byte [rcx + 0x1c], 1
je 0x14003670f
cmp byte [rcx + 0x19], 2
jb 0x14003670f
mov edx, 0x170
mov r9d, ebx
lea r8, [0x140003c28]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
test r12, r12
je 0x14003671d
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret