Function at 0x140075180
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, [0x1400bcd8c]
lea rcx, [rbp - 0x39]
call fcn.140060e10
nop
lea r8, [rbp - 0x39]
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140065010
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14007522f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007522a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075660
call fcn.14007a00c
mov rbx, qword [rbp + 0x17]
cmp qword [rbp + 0xf], rbx
jne 0x14007528b
movdqa xmm0, xmmword [0x1400bdfe0]
movdqu xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x29], 0xdc8f9395
mov dword [rbp - 0x25], 0x688b9f8d
mov word [rbp - 0x21], 0xb
nop word [rax + rax]
movsxd rax, r14d
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [r14 - 0x17]
xor byte [rcx], al
inc r14d
cmp r14d, 0x19
jb 0x140075260
mov byte [rbp - 0x20], 0
lea rcx, [rbp - 0x39]
call fcn.14006fb10
jmp 0x1400755e9
mov rdx, qword [rbx - 8]
cmp rdx, 8
jb 0x1400752cb
mov rcx, qword [rbx - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400752c6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140075660
mov rcx, r8
call fcn.14007a00c
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 0x140075459
movzx ebx, byte [rbp + 0x77]
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [r15 + 0x10]
sub rax, rcx
cmp rax, 1
jb 0x14007565a
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x14007533a
mov r9, qword [r15]
mov qword [rsp + 0x30], r12
lea rax, [0x1400bcd8c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x39]
call fcn.140068710
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 0x1400753b5
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.14007c4a0
mov word [rdi + rsi*2], r14w
mov rsi, qword [rbp + 0x77]
jmp 0x1400753cf
mov qword [rsp + 0x20], rdx
movzx r8d, bl
lea rcx, [rbp - 0x11]
call fcn.1400684c0
mov r12, qword [rbp - 0x21]
mov r13, qword [rbp - 0x39]
cmp r12, 8
jb 0x14007540a
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140075402
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075654
mov rcx, r13
call fcn.14007a00c
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 0x140075427
test al, 0x10
jne 0x14007543d
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 0x140075451
mov r12d, 1
jmp 0x140075312
mov rdi, qword [rbp + 0x67]
mov r13, qword [rbp + 0x6f]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140075466
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rdi + 0x18], 8
jb 0x140075476
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 0x14007553e
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 0x140075530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x1400be000]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400bde40]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x19], 3
mov edx, r14d
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [rdx - 0x17]
xor byte [rcx], al
inc edx
cmp edx, 0x21
jb 0x140075510
mov byte [rbp - 0x18], 0
lea rcx, [rbp - 0x39]
jmp 0x14007558e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, r14d
jmp 0x140075598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x1400be040]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400bd830]
movdqu xmmword [rbp - 0x29], xmm1
mov byte [rbp - 0x19], 0x6d
xor eax, eax
mov word [rbp - 0x18], ax
mov edx, r14d
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x39]
add rcx, rax
lea eax, [rdx - 0x17]
xor byte [rcx], al
inc edx
cmp edx, 0x22
jb 0x140075570
mov byte [rbp - 0x17], 0
lea rcx, [rbp - 0x39]
mov edx, ebx
call fcn.14006fb10
mov r12d, ebx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400755d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400755d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075660
call fcn.14007a00c
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140075630
mov rdx, qword [rbp + 0x17]
call fcn.140068680
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0xf]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007562b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007564e
call fcn.14007a00c
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.140089c44
nop
call fcn.140089c44
nop
call fcn.140006ca0
nop
call fcn.140089c44
int3