Function at 0x14001f970
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1010]
mov eax, 0x1110
call fcn.140044e80
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1140], rbx
mov qword [rsp + 0x1148], rsi
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x1000], rax
mov r14, rdx
mov rsi, rcx
movdqa xmm0, xmmword [0x140054e40]
movdqu xmmword [rbp - 0x10], xmm0
xor edi, edi
mov word [rbp - 0x20], di
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], di
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rcx + r8*2], 0
jne 0x14001f9e0
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000afc0
nop
mov qword [rbp - 0x48], 7
mov dword [rbp - 0x60], 0x2f005c
mov qword [rbp - 0x50], 2
mov word [rbp - 0x5c], di
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.140021ab0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14001fa65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fd35
call fcn.14002fb54
movdqa xmm0, xmmword [0x140054e40]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], di
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14001fab6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fab1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fd3b
call fcn.14002fb54
movdqa xmm0, xmmword [0x140054e40]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], di
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea r8, [0x140054cf0]
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400370b0
cmp qword [rsp + 0x38], 0
jne 0x14001fba8
mov dword [rbp - 0x80], 0xf013
mov eax, 0xf03d
mov word [rbp - 0x7c], ax
mov eax, 0xf07f
mov word [rbp - 0x7a], ax
mov eax, 0xf064
mov word [rbp - 0x78], ax
mov eax, 0xf051
mov word [rbp - 0x76], ax
xor eax, eax
mov word [rbp - 0x74], ax
movzx eax, word [rbp - 0x7c]
mov r8, rdi
nop word [rax + rax]
movzx edx, word [rbp + r8*2 - 0x7c]
mov eax, dword [rbp - 0x80]
movzx ecx, ax
mov eax, edx
xor eax, ecx
mov word [rbp + r8*2 - 0x7c], ax
inc r8
cmp r8, 4
jb 0x14001fb40
mov word [rbp - 0x74], di
mov rcx, qword [0x140063e00]
test rcx, rcx
je 0x14001fb9e
lea rax, [rbp - 0x7c]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14001fb73
lea r8d, [rbx*2 + 2]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea rdx, [rbp - 0x7c]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0xe0010001
jmp 0x14001fcca
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x30], 1
lea r8, [0x140054cf8]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400370b0
cmp qword [rsp + 0x40], 0
jne 0x14001fc53
mov dword [rbp - 0x70], 0x5a9b
mov eax, 0x5ab5
mov word [rbp - 0x6c], ax
mov eax, 0x5aee
mov word [rbp - 0x6a], ax
mov eax, 0x5ae2
mov word [rbp - 0x68], ax
mov eax, 0x5af4
mov word [rbp - 0x66], ax
xor eax, eax
mov word [rbp - 0x64], ax
movzx eax, word [rbp - 0x6c]
mov r8, rdi
nop word [rax + rax]
movzx edx, word [rbp + r8*2 - 0x6c]
mov eax, dword [rbp - 0x70]
movzx ecx, ax
mov eax, edx
xor eax, ecx
mov word [rbp + r8*2 - 0x6c], ax
inc r8
cmp r8, 4
jb 0x14001fc20
mov word [rbp - 0x64], di
lea rcx, [rbp - 0x6c]
call fcn.14001c7d0
mov edi, 0xe0010001
jmp 0x14001fcbf
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x38]
mov edx, 1
mov r8d, 0x1000
lea rcx, [rbp]
call fcn.1400381ac
test rax, rax
je 0x14001fcb4
mov r9, qword [rsp + 0x40]
mov r8, rax
mov edx, 1
lea rcx, [rbp]
call fcn.140037ea8
mov r9, qword [rsp + 0x38]
mov edx, 1
mov r8d, 0x1000
lea rcx, [rbp]
call fcn.1400381ac
test rax, rax
jne 0x14001fc80
lea rcx, [rsp + 0x58]
call fcn.140021a70
nop
lea rcx, [rsp + 0x68]
call fcn.140021a70
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14001fd06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fd2f
call fcn.14002fb54
mov eax, edi
mov rcx, qword [rbp + 0x1000]
xor rcx, rsp
call fcn.14002fb30
lea r11, [rsp + 0x1110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140036ad4
nop
call fcn.140036ad4
nop
call fcn.140036ad4
int3