Function at 0x1401559d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
cmp dword [rbp + 0x78], 0
mov r10, r9
mov r11d, r8d
mov rbx, rdx
mov r14, rcx
je 0x140155c84
mov r13, qword [rbp + 0x70]
mov r12, qword [rbp + 0x58]
lea esi, [r11 - 8]
movzx eax, byte [r13 + 1]
movzx r10d, byte [r13]
movzx r8d, byte [r13 + 4]
movzx ecx, byte [r13 + 7]
mov r11, qword [rbp + 0x68]
shl eax, 8
or r10d, eax
movzx eax, byte [r13 + 2]
shl ecx, 8
shl eax, 0x10
or r10d, eax
movzx eax, byte [r13 + 3]
shl eax, 0x18
or r10d, eax
movzx eax, byte [r13 + 5]
shl eax, 8
or r8d, eax
movzx eax, byte [r13 + 6]
or ecx, eax
shl ecx, 0x10
or r8d, ecx
test esi, esi
js 0x140155b45
lea r15d, [rsi + 8]
shr r15, 3
mov eax, r15d
neg eax
lea esi, [rsi + rax*8]
nop word [rax + rax]
movzx eax, byte [r14 + 1]
movzx edx, byte [r14]
movzx ecx, byte [r14 + 4]
shl eax, 8
mov r9, r11
add r14, 8
or edx, eax
movzx eax, byte [r14 - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [r14 - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [r14 - 3]
shl eax, 8
xor edx, r10d
or ecx, eax
movzx eax, byte [r14 - 2]
mov dword [rbp + 0x40], edx
shl eax, 0x10
mov rdx, r12
or ecx, eax
movzx eax, byte [r14 - 1]
shl eax, 0x18
or ecx, eax
xor ecx, r8d
mov r8, qword [rbp + 0x60]
mov dword [rbp + 0x44], ecx
lea rcx, [rbp + 0x40]
call fcn.1401551b0
mov r10d, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r11, qword [rbp + 0x68]
movzx eax, r10b
add rbx, 8
mov byte [rbx - 8], al
mov eax, r10d
shr eax, 8
mov byte [rbx - 7], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx - 6], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx - 5], al
movzx eax, r8b
mov byte [rbx - 4], al
mov eax, r8d
shr eax, 8
mov byte [rbx - 3], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx - 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx - 1], al
dec r15
jne 0x140155a80
cmp esi, 0xfffffff8
je 0x140155c3f
lea eax, [rsi + 8]
add esi, 7
movsxd rcx, eax
add r14, rcx
xor ecx, ecx
mov edx, ecx
cmp esi, 7
ja case.default.0x140155b78
lea r9, [0x140000000]
movsxd rax, esi
mov eax, dword [r9 + rax*4 + 0x155f08]
add rax, r9
jmp rax
movzx ecx, byte [r14 - 1]
dec r14
shl ecx, 0x18
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
or ecx, eax
movzx edx, byte [r14 - 1]
dec r14
shl edx, 0x18
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or edx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or edx, eax
movzx eax, byte [r14 - 1]
or edx, eax
xor ecx, r8d
mov r8, qword [rbp + 0x60]
xor edx, r10d
mov dword [rbp + 0x44], ecx
mov dword [rbp + 0x40], edx
lea rcx, [rbp + 0x40]
mov r9, r11
mov rdx, r12
call fcn.1401551b0
mov r10d, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
movzx eax, r10b
mov byte [rbx], al
mov eax, r10d
shr eax, 8
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx + 3], al
movzx eax, r8b
mov byte [rbx + 4], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [r13], r10b
mov eax, r10d
shr eax, 8
mov byte [r13 + 1], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [r13 + 2], al
mov byte [r13 + 3], r10b
mov byte [r13 + 4], r8b
mov eax, r8d
shr eax, 8
mov byte [r13 + 5], al
mov eax, r8d
shr eax, 0x10
shr r8d, 0x18
mov byte [r13 + 6], al
mov byte [r13 + 7], r8b
jmp 0x140155ef3
mov rax, qword [rbp + 0x70]
mov r11, qword [rbp + 0x60]
lea edi, [r8 - 8]
movzx r12d, byte [rax]
movzx r13d, byte [rax + 4]
movzx ecx, byte [rax + 7]
mov r8, qword [rbp + 0x68]
lea r15, [rax + 1]
shl ecx, 8
movzx eax, byte [r15]
mov qword [rbp + 0x48], r15
shl eax, 8
or r12d, eax
movzx eax, byte [r15 + 1]
shl eax, 0x10
or r12d, eax
movzx eax, byte [r15 + 2]
shl eax, 0x18
or r12d, eax
movzx eax, byte [r15 + 4]
shl eax, 8
or r13d, eax
movzx eax, byte [r15 + 5]
or ecx, eax
shl ecx, 0x10
or r13d, ecx
test edi, edi
js 0x140155dc4
lea r15d, [rdi + 8]
shr r15, 3
mov eax, r15d
neg eax
lea edi, [rdi + rax*8]
mov dword [rbp + 0x78], edi
nop
movzx eax, byte [r14 + 1]
movzx esi, byte [r14]
movzx edi, byte [r14 + 4]
shl eax, 8
mov r9, r8
lea rcx, [rbp + 0x40]
or esi, eax
movzx eax, byte [r14 + 2]
mov rdx, r10
shl eax, 0x10
mov r8, r11
add r14, 8
or esi, eax
movzx eax, byte [r14 - 5]
shl eax, 0x18
or esi, eax
movzx eax, byte [r14 - 3]
shl eax, 8
mov dword [rbp + 0x40], esi
or edi, eax
movzx eax, byte [r14 - 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [r14 - 1]
shl eax, 0x18
or edi, eax
mov dword [rbp + 0x44], edi
call fcn.140155300
mov ecx, dword [rbp + 0x40]
mov edx, dword [rbp + 0x44]
mov r10, qword [rbp + 0x58]
mov r8, qword [rbp + 0x68]
mov r11, qword [rbp + 0x60]
xor ecx, r12d
xor edx, r13d
mov byte [rbx], cl
mov eax, ecx
add rbx, 8
shr eax, 8
mov r12d, esi
mov r13d, edi
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
mov byte [rbx - 2], al
mov byte [rbx - 1], dl
dec r15
jne 0x140155d00
mov r15, qword [rbp + 0x48]
mov edi, dword [rbp + 0x78]
cmp edi, 0xfffffff8
je 0x140155eb1
movzx eax, byte [r14 + 1]
movzx edx, byte [r14 + 4]
movzx esi, byte [r14]
movzx ecx, byte [r14 + 7]
shl eax, 8
mov r9, r8
or esi, eax
movzx eax, byte [r14 + 2]
shl ecx, 8
shl eax, 0x10
mov r8, r11
or esi, eax
movzx eax, byte [r14 + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [r14 + 5]
shl eax, 8
mov dword [rbp + 0x40], esi
or edx, eax
movzx eax, byte [r14 + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x78], edx
mov dword [rbp + 0x44], edx
mov rdx, r10
call fcn.140155300
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
lea eax, [rdi + 8]
add edi, 7
xor edx, r12d
movsxd rcx, eax
xor r8d, r13d
add rbx, rcx
cmp edi, 7
ja case.default.0x140155e60
lea r9, [0x140000000]
movsxd rax, edi
mov eax, dword [r9 + rax*4 + 0x155f28]
add rax, r9
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 r13d, dword [rbp + 0x78]
mov r12d, esi
mov rax, qword [rbp + 0x70]
mov byte [rax], r12b
mov eax, r12d
shr eax, 8
mov byte [r15], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [r15 + 1], al
mov byte [r15 + 2], r12b
mov byte [r15 + 3], r13b
mov eax, r13d
shr eax, 8
mov byte [r15 + 4], al
mov eax, r13d
shr eax, 0x10
shr r13d, 0x18
mov byte [r15 + 5], al
mov byte [r15 + 6], r13b
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret