Function at 0x140016794
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140024690
sub rsp, rax
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov eax, dword [rcx + 8]
xor edi, edi
xorps xmm0, xmm0
mov dword [rsp + 0x74], eax
movups xmmword [rsp + 0x78], xmm0
mov r8, rdx
mov dword [rsp + 0x30], edi
xor eax, eax
mov dword [rsp + 0x34], edi
mov rbx, rcx
mov qword [rbp - 0x58], rax
lea r12d, [rdi + 0x48]
mov dword [rsp + 0x68], 0x30b0005
lea esi, [rdi + 1]
mov dword [rsp + 0x70], r12d
lea rdx, [rbp - 0x78]
mov byte [rbp - 0x80], sil
mov rcx, r8
mov dword [rsp + 0x6c], 0x10
lea r15d, [rdi + 5]
mov qword [rsp + 0x78], 0x10001000
movups xmmword [rbp - 0x78], xmm0
mov r14d, 0x1000
mov dword [rbp - 0x7c], 0x10000
movups xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x54], 2
call fcn.140016654
test eax, eax
jne 0x140016a16
mov dword [rbp - 0x68], 2
xor eax, eax
mov dword [rsp + 0x38], r12d
mov edx, edi
mov byte [rsp + 0x3c], 0x70
mov byte [rsp + 0x3d], 0x29
mov byte [rsp + 0x3e], 0x70
mov byte [rsp + 0x3f], 0x70
mov byte [rsp + 0x40], 0x7d
mov byte [rsp + 0x41], 0x2c
mov byte [rsp + 0x42], 0x78
mov byte [rsp + 0x43], 0x7c
mov byte [rsp + 0x44], 0x65
mov byte [rsp + 0x45], 0x79
mov byte [rsp + 0x46], 0x2b
mov byte [rsp + 0x47], 0x2d
mov byte [rsp + 0x48], 0x2a
mov byte [rsp + 0x49], 0x65
mov byte [rsp + 0x4a], 0x79
mov byte [rsp + 0x4b], 0x79
mov byte [rsp + 0x4c], 0x2b
mov byte [rsp + 0x4d], 0x71
mov byte [rsp + 0x4e], 0x65
mov byte [rsp + 0x4f], 0x71
mov byte [rsp + 0x50], 0x2e
mov byte [rsp + 0x51], 0x2d
mov byte [rsp + 0x52], 0x70
mov byte [rsp + 0x53], 0x65
mov byte [rsp + 0x54], 0x78
mov byte [rsp + 0x55], 0x70
mov byte [rsp + 0x56], 0x78
mov byte [rsp + 0x57], 0x78
mov byte [rsp + 0x58], 0x7a
mov byte [rsp + 0x59], 0x2a
mov byte [rsp + 0x5a], 0x79
mov byte [rsp + 0x5b], 0x78
mov byte [rsp + 0x5c], 0x7c
mov byte [rsp + 0x5d], 0x70
mov byte [rsp + 0x5e], 0x7e
mov byte [rsp + 0x5f], 0x78
mov byte [rsp + 0x60], al
mov al, byte [rsp + 0x3c]
mov al, byte [rsp + rdx + 0x3c]
mov ecx, dword [rsp + 0x38]
xor cl, al
mov byte [rsp + rdx + 0x3c], cl
add rdx, rsi
cmp rdx, 0x24
jb 0x14001691a
lea rdx, [rbp - 0x64]
mov byte [rsp + 0x60], dil
lea rcx, [rsp + 0x3c]
call fcn.140016654
test eax, eax
jne 0x140016a16
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
lea r8d, [rax + 0x10]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140016a16
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, 0x38
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140016a16
add dword [rbx + 8], esi
lea rcx, [rbp - 0x50]
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx]
lea r9, [rsp + 0x34]
mov r8d, r14d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016a16
cmp word [rbp - 0x50], r15w
jne 0x140016a16
cmp byte [rbp - 0x4e], 0xc
jne 0x140016a16
cmp byte [rbp - 0x4d], 3
jne 0x140016a16
movzx eax, word [rbp - 0x48]
cmp eax, dword [rsp + 0x34]
jne 0x140016a16
mov eax, 0x100
cmp word [rbp - 0x38], ax
ja 0x140016a16
movzx ecx, word [rbp - 0x38]
lea rdx, [rcx + 5]
and rdx, 0xfffffffffffffffc
sub rdx, rcx
sub rdx, 2
mov edx, edx
add rdx, rcx
cmp dword [rbp + rdx - 0x36], esi
jne 0x140016a16
cmp word [rbp + rdx - 0x32], di
jne 0x140016a16
xor eax, eax
jmp 0x140016a18
mov eax, esi
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.140023770
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret