Function at 0x140074200
Capabilities:
Check if file exists
Create directory
Delete file
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r13, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r14w
mov r12d, 1
mov r8d, r12d
lea rdx, [0x1400bbcec]
lea rcx, [rbp - 0x39]
call fcn.140060c40
nop
lea r8, [rbp - 0x39]
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140064e40
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1400742af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400742aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746e0
call fcn.140078e58
mov rbx, qword [rbp + 0x17]
cmp qword [rbp + 0xf], rbx
jne 0x14007430b
movdqa xmm0, xmmword [0x1400bd020]
movdqu xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x29], 0xd1848682
mov dword [rbp - 0x25], 0x9d809282
mov word [rbp - 0x21], 0xfc
nop word [rax + rax]
movsxd rax, r14d
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [r14 - 0x22]
xor byte [rcx], al
inc r14d
cmp r14d, 0x19
jb 0x1400742e0
mov byte [rbp - 0x20], 0
lea rcx, [rbp - 0x39]
call fcn.14006f940
jmp 0x140074669
mov rdx, qword [rbx - 8]
cmp rdx, 8
jb 0x14007434b
mov rcx, qword [rbx - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140074346
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400746e0
mov rcx, r8
call fcn.140078e58
mov word [rbx - 0x20], r14w
mov qword [rbx - 0x10], r14
mov qword [rbx - 8], 7
mov rsi, qword [rbp + 0x17]
sub rsi, 0x20
mov qword [rbp + 0x77], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov r15, qword [rbp + 0xf]
cmp r15, rsi
je 0x1400744d9
movzx ebx, byte [rbp + 0x77]
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [r15 + 0x10]
sub rax, rcx
cmp rax, 1
jb 0x1400746da
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x1400743ba
mov r9, qword [r15]
mov qword [rsp + 0x30], r12
lea rax, [0x1400bbcec]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x39]
call fcn.140068540
nop
lea r9, [rbp - 0x39]
mov r13, qword [rbp - 0x39]
mov r12, qword [rbp - 0x21]
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rbp - 1]
mov r8, qword [rbp + 7]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp - 0x29]
cmp rdx, rax
ja 0x140074435
lea rsi, [rdx + rcx]
mov qword [rbp - 1], rsi
lea rdi, [rbp - 0x11]
cmp r8, 8
cmovae rdi, qword [rbp - 0x11]
lea rcx, [rdi + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.14007b2e0
mov word [rdi + rsi*2], r14w
mov rsi, qword [rbp + 0x77]
jmp 0x14007444f
mov qword [rsp + 0x20], rdx
movzx r8d, bl
lea rcx, [rbp - 0x11]
call fcn.1400682f0
mov r12, qword [rbp - 0x21]
mov r13, qword [rbp - 0x39]
cmp r12, 8
jb 0x14007448a
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140074482
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746d4
mov rcx, r13
call fcn.140078e58
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400744a7
test al, 0x10
jne 0x1400744bd
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add r15, 0x20
cmp r15, rsi
je 0x1400744d1
mov r12d, 1
jmp 0x140074392
mov rdi, qword [rbp + 0x67]
mov r13, qword [rbp + 0x6f]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400744e6
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rdi + 0x18], 8
jb 0x1400744f6
mov rdi, qword [rdi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400745be
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [r13]
mov r8, qword [r13 + 8]
sub r8, rdx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400745b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x1400bd070]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400bcfa0]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x19], 0xf4
mov edx, r14d
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [rdx - 0x22]
xor byte [rcx], al
inc edx
cmp edx, 0x21
jb 0x140074590
mov byte [rbp - 0x18], 0
lea rcx, [rbp - 0x39]
jmp 0x14007460e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, r14d
jmp 0x140074618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x1400bd050]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400bd2f0]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x19], 0xf59a
xor eax, eax
mov byte [rbp - 0x17], al
mov edx, r14d
nop
movsxd rax, edx
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [rdx - 0x22]
xor byte [rcx], al
inc edx
cmp edx, 0x22
jb 0x1400745f0
mov byte [rbp - 0x17], 0
lea rcx, [rbp - 0x39]
mov edx, ebx
call fcn.14006f940
mov r12d, ebx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140074658
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074653
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746e0
call fcn.140078e58
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400746b0
mov rdx, qword [rbp + 0x17]
call fcn.1400684b0
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0xf]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400746ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746ce
call fcn.140078e58
mov eax, r12d
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140088a84
nop
call fcn.140088a84
nop
call fcn.140006c00
nop
call fcn.140088a84
int3