Function at 0x140173e00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xa8]
mov rbp, rcx
mov rbx, rdx
movzx r11d, byte [rax]
movzx r12d, byte [rax + 4]
movzx ecx, byte [rax + 7]
lea rdx, [rax + 1]
shl ecx, 8
mov r13d, r8d
movzx eax, byte [rdx]
shl eax, 8
or r11d, eax
movzx eax, byte [rdx + 1]
shl eax, 0x10
or r11d, eax
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r11d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
mov dword [rsp + 0xa8], r11d
or r12d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
mov rax, qword [rsp + 0xb0]
movzx r15d, byte [rax]
movzx r8d, byte [rax + 4]
lea rdx, [rax + 1]
movzx eax, byte [rax + 1]
shl ecx, 0x10
shl eax, 8
or r12d, ecx
movzx ecx, byte [rdx + 6]
or r15d, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
shl eax, 0x10
mov dword [rsp + 0x20], r12d
or r15d, eax
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r15d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
mov dword [rsp + 0xb0], r15d
or r8d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r8d, ecx
cmp dword [rsp + 0xb8], 0
mov dword [rsp + 0x90], r8d
je 0x1401741a2
mov r14, qword [rsp + 0xa0]
lea esi, [r13 - 8]
mov r13d, dword [rsp + 0x90]
movzx eax, byte [r14 + 1]
movzx r8d, byte [r14]
movzx r9d, byte [r14 + 4]
movzx ecx, byte [r14 + 7]
shl eax, 8
lea rdi, [r14 + 1]
or r8d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov qword [rsp + 0xb0], rdi
or r8d, eax
movzx eax, byte [rdi + 2]
shl eax, 0x18
or r8d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
or r9d, eax
movzx eax, byte [rdi + 5]
or ecx, eax
shl ecx, 0x10
or r9d, ecx
test esi, esi
js 0x140174062
lea r14d, [rsi + 8]
mov edi, r11d
shr r14, 3
mov eax, r14d
neg eax
lea esi, [rsi + rax*8]
mov dword [rsp + 0xb8], esi
mov rsi, qword [rsp + 0x98]
nop dword [rax]
movzx eax, byte [rbp + 1]
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
shl eax, 8
add rbp, 8
or edx, eax
movzx eax, byte [rbp - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp - 3]
shl eax, 8
xor edx, r8d
mov r8d, 1
or ecx, eax
movzx eax, byte [rbp - 2]
xor edx, edi
shl eax, 0x10
mov dword [rsp + 0x28], edx
mov rdx, rsi
or ecx, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or ecx, eax
xor ecx, r9d
xor ecx, r12d
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
call fcn.140153c40
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x2c]
xor r8d, r15d
xor r9d, r13d
add rbx, 8
mov byte [rbx - 8], r8b
mov eax, r8d
shr eax, 8
mov byte [rbx - 7], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx - 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx - 5], al
mov byte [rbx - 4], r9b
mov eax, r9d
shr eax, 8
mov byte [rbx - 3], al
mov eax, r9d
shr eax, 0x10
mov byte [rbx - 2], al
mov eax, r9d
shr eax, 0x18
mov byte [rbx - 1], al
dec r14
jne 0x140173f80
mov rdi, qword [rsp + 0xb0]
mov esi, dword [rsp + 0xb8]
mov r11d, dword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
cmp esi, 0xfffffff8
je 0x140174163
lea eax, [rsi + 8]
add esi, 7
movsxd rcx, eax
add rbp, rcx
xor ecx, ecx
mov edx, ecx
cmp esi, 7
ja case.default.0x140174095
lea r10, [0x140000000]
movsxd rax, esi
mov eax, dword [r10 + rax*4 + 0x174480]
add rax, r10
jmp rax
movzx ecx, byte [rbp - 1]
dec rbp
shl ecx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
or ecx, eax
movzx edx, byte [rbp - 1]
dec rbp
shl edx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
or edx, eax
xor edx, r8d
xor ecx, r9d
mov r8d, 1
xor edx, r11d
xor ecx, r12d
mov dword [rsp + 0x28], edx
mov rdx, qword [rsp + 0x98]
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
call fcn.140153c40
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x2c]
xor r8d, r15d
xor r9d, r13d
mov byte [rbx], r8b
mov eax, r8d
shr eax, 8
mov byte [rbx + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 3], al
mov byte [rbx + 4], r9b
mov eax, r9d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r9d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r9d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [r14], r8b
mov eax, r8d
shr eax, 8
mov byte [rdi], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r8b
mov byte [rdi + 3], r9b
mov eax, r9d
shr eax, 8
mov byte [rdi + 4], al
mov eax, r9d
shr eax, 0x10
shr r9d, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], r9b
jmp 0x140174465
mov rax, qword [rsp + 0xa0]
add r13d, 0xfffffff8
movzx r15d, byte [rax]
movzx r12d, byte [rax + 4]
movzx ecx, byte [rax + 7]
lea r14, [rax + 1]
shl ecx, 8
movzx eax, byte [r14]
mov qword [rsp + 0x38], r14
shl eax, 8
or r15d, eax
movzx eax, byte [r14 + 1]
shl eax, 0x10
or r15d, eax
movzx eax, byte [r14 + 2]
shl eax, 0x18
or r15d, eax
movzx eax, byte [r14 + 4]
shl eax, 8
or r12d, eax
movzx eax, byte [r14 + 5]
or ecx, eax
shl ecx, 0x10
or r12d, ecx
test r13d, r13d
jle 0x14017431d
lea eax, [r13 - 1]
mov r14d, r11d
shr eax, 3
inc eax
mov ecx, eax
neg eax
lea r13d, [r13 + rax*8]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0xb8], r13d
mov r13d, dword [rsp + 0xb0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + 1]
movzx esi, byte [rbp]
movzx edi, byte [rbp + 4]
shl eax, 8
lea rcx, [rsp + 0x28]
mov rdx, r9
or esi, eax
movzx eax, byte [rbp + 2]
add rbp, 8
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp - 5]
shl eax, 0x18
or esi, eax
mov eax, esi
xor eax, r13d
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp - 3]
shl eax, 8
or edi, eax
movzx eax, byte [rbp - 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or edi, eax
mov eax, edi
xor eax, r8d
xor r8d, r8d
mov dword [rsp + 0x2c], eax
call fcn.140153c40
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x90]
mov r9, qword [rsp + 0x98]
xor ecx, r15d
xor edx, r12d
add rbx, 8
xor edx, dword [rsp + 0x20]
xor ecx, r14d
mov r15d, esi
mov byte [rbx - 8], cl
mov eax, ecx
mov r12d, edi
shr eax, 8
mov byte [rbx - 7], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbx - 6], al
mov byte [rbx - 5], cl
mov byte [rbx - 4], dl
mov eax, edx
shr eax, 8
mov byte [rbx - 3], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
dec qword [rsp + 0x30]
mov byte [rbx - 2], al
mov byte [rbx - 1], dl
jne 0x140174240
mov r14, qword [rsp + 0x38]
mov r13d, dword [rsp + 0xb8]
cmp r13d, 0xfffffff8
je 0x14017441f
movzx eax, byte [rbp + 1]
movzx edi, byte [rbp]
movzx ecx, byte [rbp + 7]
movzx esi, byte [rbp + 4]
shl eax, 8
shl ecx, 8
or edi, eax
movzx eax, byte [rbp + 2]
mov rdx, r9
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edi, eax
mov eax, edi
xor eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp + 5]
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
lea rcx, [rsp + 0x28]
mov eax, esi
xor eax, r8d
xor r8d, r8d
mov dword [rsp + 0x2c], eax
call fcn.140153c40
mov edx, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
lea eax, [r13 + 8]
xor edx, r15d
xor edx, dword [rsp + 0xa8]
xor r8d, r12d
movsxd rcx, eax
xor r8d, dword [rsp + 0x20]
add r13d, 7
add rbx, rcx
cmp r13d, 7
ja case.default.0x1401743cf
lea r10, [0x140000000]
movsxd rax, r13d
mov eax, dword [r10 + rax*4 + 0x1744a0]
add rax, r10
jmp rax
dec rbx
mov eax, r8d
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 8
mov byte [rbx], al
dec rbx
mov byte [rbx], r8b
dec rbx
mov eax, edx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
mov byte [rbx - 1], dl
mov r15d, edi
mov r12d, esi
mov rax, qword [rsp + 0xa0]
mov byte [rax], r15b
mov eax, r15d
shr eax, 8
mov byte [r14], al
mov eax, r15d
shr r15d, 0x18
shr eax, 0x10
mov byte [r14 + 1], al
mov byte [r14 + 2], r15b
mov byte [r14 + 3], r12b
mov eax, r12d
shr eax, 8
mov byte [r14 + 4], al
mov eax, r12d
shr eax, 0x10
shr r12d, 0x18
mov byte [r14 + 5], al
mov byte [r14 + 6], r12b
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret