Function at 0x140491074
Capabilities:
Encode data using xor

Disassembly:
xchg rbx, rdi
mov qword [rsp + 0x10], rdi
xchg rbx, rdi
xchg r15, rsi
mov qword [rsp + 0x18], r15
xchg rsi, r15
push rbp
nop
push r9
mov qword [rsp], rdi
push r13
mov dword [rsp - 0x44], ebx
push r14
nop
sub rsp, 8
mov qword [rsp], r15
xchg r14, rbp
mov r14, rsp
xchg rbp, r14
sub rsp, 0x42b33b05
add rsp, 0x42b33a85
xor esi, esi
xchg rcx, rcx
xchg rbx, rcx
mov rcx, rbx
xchg rcx, rbx
lea r14d, [rsi + 9]
cmp qword [rcx + 0x20], rsi
jne 0x140491264
mov dword [rsp - 0x3c], 0x1f2c12ee
lea eax, [rsi + 0x76]
mov dword [rbp - 0x60], 0x16d66d5c
add dword [rbp - 0x60], 0x49f50e56
xor dword [rbp - 0x60], 0x63a4749b
xor dword [rbp - 0x60], 0x781cdf24
sub dword [rbp - 0x60], 0x7b62cfb8
mov word [rbp - 0x50], ax
mov dword [rsp - 0x20], 0x2185207c
mov dword [rbp - 0x5c], 0x5de285a2
add dword [rbp - 0x5c], 0x1cb8634c
sub dword [rbp - 0x5c], 0x57e5e63e
xor dword [rbp - 0x5c], 0x59e69913
sub dword [rbp - 0x5c], 0x7b239ae1
mov dword [rbp - 0x58], 0x1f9dfed0
xor dword [rbp - 0x58], 0x94f6986
sub dword [rbp - 0x58], 0x14c5f090
sub dword [rbp - 0x58], 0x1b9a69e
mov dword [rbp - 0x54], 0x343b2d9d
add dword [rbp - 0x54], 0x394846e9
sub dword [rbp - 0x54], 0x2552f34d
sub dword [rbp - 0x54], 0x47c18076
mov qword [rbp + 0x30], rsi
xchg r11, rax
mov r11, qword [rbp + 0x30]
xchg r11, rax
xchg rcx, rdx
mov rdx, qword [rbp + 0x30]
xchg rdx, rcx
mov rax, qword [rbp + 0x30]
and cl, 3
mov dword [rsp - 0x20], 0x3a025ea
shl cl, 1
shl cl, 2
movzx edx, word [rbp + rax*2 - 0x60]
xchg rsi, rsi
mov eax, 0x28de1ab1
add eax, 0x41eea30b
sub eax, 0x4938f26c
xor eax, 0x2ae2a82
sub eax, 0x1f9664b8
shr eax, cl
mov dword [rsp - 0x30], 0x16e3c81d
movzx ecx, al
mov rax, qword [rbp + 0x30]
xor cx, dx
mov dword [rsp - 0xc], 0x5a64f0f2
mov word [rbp + rax*2 - 0x4e], cx
mov rax, qword [rbp + 0x30]
inc rax
xchg r11, rax
mov qword [rbp + 0x30], r11
xchg r11, rax
xchg r15, rax
mov r15, qword [rbp + 0x30]
xchg r15, rax
cmp rax, r14
jb 0x140491177
xor edx, edx
mov rcx, rcx
mov word [rbp - 0x3c], si
lea rcx, [rbp - 0x4e]
call fcn.1400a78d0
mov dword [rsp - 0x2c], 0x1fdae5a3
xchg r8, rdx
mov rdx, rax
xchg r8, rdx
xchg r8, rax
mov qword [rbx + 0x20], r8
xchg r8, rax
xor eax, eax
xchg rbp, rbp
lea rdi, [rbp - 0x4e]
xchg rcx, r14
mov r14, rcx
xchg r14, rcx
rep stosb byte [rdi], al
test r8, r8
je 0x140491410
xchg r12, r12
lea rdx, [rbx + 0x30]
xchg rdi, rcx
mov rdi, r8
xchg rcx, rdi
call fcn.140491464
mov dword [rsp - 0x18], 0x2bd05bc0
test al, al
je 0x140491410
cmp qword [rbx + 0x28], rsi
mov dword [rsp - 0x24], 0x1b69923a
jne 0x140491417
mov dword [rbp - 0x3a], 0x5a8b51f
xor dword [rbp - 0x3a], 0x958f7ec
add dword [rbp - 0x3a], 0x4839920
sub dword [rbp - 0x3a], 0x1162dbbe
mov dword [rbp - 0x36], 0x8e805b2
add dword [rbp - 0x36], 0x43097ec5
sub dword [rbp - 0x36], 0x1cca4ed5
sub dword [rbp - 0x36], 0xb7960dd
sub dword [rbp - 0x36], 0x236bd403
mov dword [rbp - 0x32], 0x49f3f1ec
sub dword [rbp - 0x32], 0x461b8430
add dword [rbp - 0x32], 0x7e6510e
add dword [rbp - 0x32], 0x3f484257
sub dword [rbp - 0x32], 0x4afe00b2
mov dword [rbp - 0x2e], 0x77ba9d41
xor dword [rbp - 0x2e], 0x39976661
add dword [rbp - 0x2e], 0x75140f0
sub dword [rbp - 0x2e], 0x554e3b7c
mov dword [rbp - 0x2a], 0x233d173e
add dword [rbp - 0x2a], 0x28c8bd4e
xor dword [rbp - 0x2a], 0x305d705d
sub dword [rbp - 0x2a], 0x7c3fa49d
mov dword [rbp - 0x26], 0x14aa5a17
xor dword [rbp - 0x26], 0x78b52d9e
sub dword [rbp - 0x26], 0x55c85c
xor dword [rbp - 0x26], 0x6ba6afe6
mov qword [rbp + 0x30], rsi
mov dword [rsp - 0x3c], esp
xchg r15, rax
mov r15, qword [rbp + 0x30]
xchg r15, rax
xchg rcx, r15
mov r15, qword [rbp + 0x30]
xchg r15, rcx
mov rax, qword [rbp + 0x30]
and cl, 3
shl cl, 2
shl cl, 1
movzx edx, word [rbp + rax*2 - 0x3a]
mov eax, 0x22593f2b
sub eax, 0xf498d52
xor eax, 0x120c761d
xor eax, 0x2a4bade
shr eax, cl
movzx ecx, al
mov dword [rsp - 0x18], edi
mov rax, qword [rbp + 0x30]
xor cx, dx
mov word [rbp + rax*2 - 0x22], cx
mov dword [rsp - 0x1c], 0x78d8173c
xchg r10, rax
mov r10, qword [rbp + 0x30]
xchg r10, rax
inc rax
mov rbp, rbp
xchg r15, rax
mov qword [rbp + 0x30], r15
xchg r15, rax
xchg r14, rax
mov r14, qword [rbp + 0x30]
xchg r14, rax
cmp rax, 0xc
mov r10, r10
jb 0x14049133c
xor edx, edx
mov word [rbp - 0xa], si
lea rcx, [rbp - 0x22]
mov dword [rsp - 0x28], ecx
call fcn.1400a78d0
xchg r8, rax
mov rax, r8
xchg r8, rax
mov qword [rbx + 0x28], rax
xor eax, eax
lea rdi, [rbp - 0x22]
mov rdx, rdx
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test r8, r8
mov dword [rsp - 0x18], ebx
je 0x140491410
lea rdx, [rbx + 0x58]
xchg rcx, r10
mov r10, r8
xchg r10, rcx
call fcn.1404919c4
mov dword [rsp - 0x44], 0x71263166
test al, al
setne al
jmp 0x140491421
xor al, al
jmp 0x140491421
mov al, 0x12
xor al, 0x36
sub al, 5
xor al, 0x34
sub al, 0x2a
lea r11, [rsp + 0x80]
xchg r9, r9
mov rbx, qword [r11 + 0x38]
xchg r14, rsi
mov r14, qword [r11 + 0x40]
xchg r14, rsi
mov rsp, r11
xchg r9, r9
nop
mov r15, qword [rsp]
add rsp, 8
nop
mov r14, qword [rsp]
add rsp, 8
pop r13
xchg r12, r12
nop
mov rdi, qword [rsp]
add rsp, 8
pop rbp
ret