Function at 0x140318610
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 r12, qword [rsp + 0xa0]
mov rbp, rcx
mov rax, qword [rsp + 0xa8]
mov rbx, rdx
lea rdx, [rax + 1]
mov r13d, r8d
movzx r10d, byte [rdx + 3]
mov r11, r9
movzx ecx, byte [rdx + 6]
movzx edi, byte [rax]
movzx eax, byte [rdx]
movzx r14d, byte [r12 + 1]
movzx r15d, byte [r12 + 4]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [rdx + 1]
shl eax, 0x10
or edi, eax
shl r14d, 8
movzx eax, byte [rdx + 2]
shl eax, 0x18
or edi, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r10d, eax
mov dword [rsp + 0x90], edi
movzx eax, byte [rdx + 5]
or ecx, eax
mov rax, qword [rsp + 0xb0]
movzx r9d, byte [rax + 4]
lea rdx, [rax + 1]
shl ecx, 0x10
or r10d, ecx
movzx ecx, byte [rdx + 6]
movzx r8d, byte [rax]
movzx eax, byte [rdx]
shl eax, 8
or r8d, eax
shl ecx, 8
movzx eax, byte [rdx + 1]
shl eax, 0x10
or r8d, eax
mov dword [rsp + 0x20], r10d
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r8d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r9d, eax
mov dword [rsp + 0xa8], r8d
movzx eax, byte [rdx + 5]
or ecx, eax
movzx eax, byte [r12]
or r14d, eax
shl ecx, 0x10
movzx eax, byte [r12 + 2]
or r9d, ecx
movzx ecx, byte [r12 + 7]
shl eax, 0x10
or r14d, eax
shl ecx, 8
movzx eax, byte [r12 + 3]
shl eax, 0x18
or r14d, eax
mov dword [rsp + 0xb0], r9d
movzx eax, byte [r12 + 5]
shl eax, 8
or r15d, eax
movzx eax, byte [r12 + 6]
or ecx, eax
shl ecx, 0x10
or r15d, ecx
cmp dword [rsp + 0xb8], 0
je 0x140318981
lea esi, [r13 - 8]
test esi, esi
js 0x140318879
mov r12d, dword [rsp + 0x90]
mov edi, r13d
shr rdi, 3
mov r13d, r9d
mov eax, edi
neg eax
lea esi, [rsi + rax*8]
mov dword [rsp + 0xb8], esi
mov esi, r8d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rbp]
mov r8d, 1
movzx ecx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp + 5]
shl eax, 8
xor edx, r14d
or ecx, eax
xor edx, r12d
movzx eax, byte [rbp + 6]
shl eax, 0x10
or ecx, eax
mov dword [rsp + 0x28], edx
movzx eax, byte [rbp + 7]
mov rdx, r11
shl eax, 0x18
add rbp, 8
or ecx, eax
xor ecx, r15d
xor ecx, r10d
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
call fcn.1402da660
mov r14d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
xor r14d, esi
mov r10d, dword [rsp + 0x20]
xor r15d, r13d
mov r11, qword [rsp + 0x98]
mov eax, r14d
shr eax, 8
mov byte [rbx], r14b
mov byte [rbx + 1], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r15d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [rbx + 4], r15b
add rbx, 8
sub rdi, 1
jne 0x140318790
mov r12, qword [rsp + 0xa0]
mov esi, dword [rsp + 0xb8]
mov edi, dword [rsp + 0x90]
jmp 0x14031887c
mov r13d, r9d
cmp esi, 0xfffffff8
je 0x140318bb4
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.0x1403188af
lea r9, [0x140000000]
movsxd rax, esi
mov eax, dword [r9 + rax*4 + 0x318c1c]
add rax, r9
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, r14d
xor ecx, r15d
xor edx, edi
xor ecx, r10d
mov dword [rsp + 0x28], edx
mov r8d, 1
mov dword [rsp + 0x2c], ecx
mov rdx, r11
lea rcx, [rsp + 0x28]
call fcn.1402da660
mov r14d, dword [rsp + 0x28]
xor r14d, dword [rsp + 0xa8]
mov r15d, dword [rsp + 0x2c]
mov eax, r14d
shr eax, 8
xor r15d, r13d
mov byte [rbx], r14b
mov byte [rbx + 1], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r15d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [rbx + 4], r15b
jmp 0x140318bb4
add r13d, 0xfffffff8
test r13d, r13d
jle 0x140318aaf
lea eax, [r13 - 1]
mov r12d, edi
shr eax, 3
inc eax
mov ecx, eax
neg eax
mov qword [rsp + 0x30], rcx
lea r13d, [r13 + rax*8]
mov dword [rsp + 0xb8], r13d
mov r13d, r8d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + 1]
lea rcx, [rsp + 0x28]
movzx esi, byte [rbp]
xor r8d, r8d
movzx edi, byte [rbp + 4]
mov rdx, r11
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or esi, eax
mov eax, esi
xor eax, r13d
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edi, eax
movzx eax, byte [rbp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or edi, eax
mov eax, edi
xor eax, r9d
mov dword [rsp + 0x2c], eax
call fcn.1402da660
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
xor ecx, r14d
mov r9d, dword [rsp + 0xb0]
xor ecx, r12d
mov r11, qword [rsp + 0x98]
xor edx, r15d
xor edx, dword [rsp + 0x20]
mov eax, ecx
mov byte [rbx], cl
mov r14d, esi
shr eax, 8
mov r15d, edi
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, edx
shr eax, 8
mov byte [rbx + 5], al
mov eax, edx
mov byte [rbx + 4], dl
shr eax, 0x10
shr ecx, 0x18
shr edx, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 3], cl
mov byte [rbx + 7], dl
add rbx, 8
sub qword [rsp + 0x30], 1
jne 0x1403189c0
mov r12, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0xb8]
mov edi, dword [rsp + 0x90]
mov r8d, dword [rsp + 0xa8]
cmp r13d, 0xfffffff8
je 0x140318bb4
movzx edx, byte [rbp + 4]
movzx ecx, byte [rbp + 7]
movzx eax, byte [rbp + 1]
movzx esi, byte [rbp]
shl eax, 8
or esi, eax
shl ecx, 8
movzx eax, byte [rbp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or esi, eax
mov eax, esi
xor eax, r8d
xor r8d, r8d
mov dword [rsp + 0x28], eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rsp + 0x28]
mov eax, edx
mov dword [rsp + 0xb8], edx
xor eax, r9d
mov rdx, r11
mov dword [rsp + 0x2c], eax
call fcn.1402da660
mov r8d, dword [rsp + 0x28]
lea eax, [r13 + 8]
mov edx, dword [rsp + 0x2c]
xor r8d, r14d
xor edx, r15d
movsxd rcx, eax
xor edx, dword [rsp + 0x20]
xor r8d, edi
add rbx, rcx
add r13d, 7
cmp r13d, 7
ja case.default.0x140318b5f
lea r9, [0x140000000]
movsxd rax, r13d
mov eax, dword [r9 + rax*4 + 0x318c3c]
add rax, r9
jmp rax
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
dec rbx
mov byte [rbx], dl
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
mov byte [rbx - 1], r8b
mov r15d, dword [rsp + 0xb8]
mov r14d, esi
mov byte [r12], r14b
mov eax, r15d
shr eax, 0x18
mov ecx, r15d
shr ecx, 0x10
mov edx, r15d
shr edx, 8
mov r8d, r14d
shr r8d, 0x18
mov r9d, r14d
shr r9d, 0x10
mov r10d, r14d
shr r10d, 8
mov byte [r12 + 1], r10b
mov byte [r12 + 2], r9b
mov byte [r12 + 3], r8b
mov byte [r12 + 4], r15b
mov byte [r12 + 5], dl
mov byte [r12 + 6], cl
mov byte [r12 + 7], al
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret