Function at 0x14001d9c0
Capabilities:
Delete file
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, r8
mov r12, rdx
mov r15, rcx
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, 0x5c
lea rcx, [rbp - 0x40]
call fcn.1400314d0
xor edi, edi
test rax, rax
je 0x14001da25
mov word [rax + 2], di
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], di
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x14001da43
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.14000afc0
nop
mov r8, rbx
nop
inc r8
cmp word [r14 + r8*2], 0
jne 0x14001da60
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.14000b150
mov r8d, 4
lea rdx, str..sys
lea rcx, [rbp - 0x68]
call fcn.14000b150
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, r12
mov rcx, r15
call fcn.14001d230
test eax, eax
jne 0x14001dbe1
mov esi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
lea rax, [rbp - 0x40]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001dad0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.14000afc0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.14001d450
test eax, eax
js 0x14001db1c
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
mov rdx, r12
mov rcx, r15
call fcn.14001d230
test eax, eax
jne 0x14001dbe1
inc esi
cmp esi, 3
jl 0x14001dab0
mov dword [rsp + 0x78], 0xcf24
mov eax, dword [rsp + 0x78]
xor eax, 0x2e
mov word [rsp + 0x7c], ax
mov eax, dword [rsp + 0x78]
inc ax
xor eax, 0x75
mov word [rsp + 0x7e], ax
mov eax, dword [rsp + 0x78]
add ax, 2
xor eax, 0x53
mov word [rbp - 0x80], ax
mov eax, dword [rsp + 0x78]
add ax, 3
xor eax, 0x6b
mov word [rbp - 0x7e], ax
xor eax, eax
mov word [rbp - 0x7c], ax
movzx eax, word [rsp + 0x7c]
mov rdx, rdi
movzx eax, word [rsp + rdx*2 + 0x7c]
mov ecx, dword [rsp + 0x78]
add ecx, edx
xor ecx, eax
mov word [rsp + rdx*2 + 0x7c], cx
inc rdx
cmp rdx, 4
jb 0x14001db72
mov word [rbp - 0x7c], di
mov rcx, qword [0x140063e00]
test rcx, rcx
je 0x14001dced
lea rax, [rsp + 0x7c]
nop word [rax + rax]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14001dbb0
lea r8d, [rbx*2 + 2]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001dced
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov rdx, r14
call fcn.14001cce0
mov esi, eax
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001dc50
mov rcx, rax
call qword [0x1400472c0]
test esi, esi
jne 0x14001dceb
mov eax, 0x30
mov word [rbp - 0x78], ax
mov eax, 0x4b
mov word [rbp - 0x76], ax
mov eax, 0x34
mov word [rbp - 0x74], ax
mov eax, 0x3e
mov word [rbp - 0x72], ax
mov word [rbp - 0x70], di
movzx eax, word [rbp - 0x78]
mov rdx, rdi
nop word [rax + rax]
movzx ecx, word [rbp + rdx*2 - 0x78]
sub ecx, 2
mov word [rbp + rdx*2 - 0x78], cx
inc rdx
cmp rdx, 4
jb 0x14001dc90
mov rcx, qword [0x140063e00]
test rcx, rcx
je 0x14001dceb
lea rax, [rbp - 0x78]
nop word [rax + rax]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14001dcc0
lea r8d, [rbx*2 + 2]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea rdx, [rbp - 0x78]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, esi
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14001dd29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dd24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001dd4c
call fcn.14002fb54
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14002fb30
add rsp, 0x2e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140036ad4
int3