Function at 0x140395a80
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
mov rbp, rsp
mov eax, 0x30
call fcn.1403cb200
sub rsp, rax
mov rdi, qword [rbp + 0x60]
mov r14, rcx
xor ebx, ebx
mov rsi, rdx
movzx eax, byte [rdi]
movzx r12d, byte [rdi + 1]
lea r15d, [rbx + 1]
movzx r13d, byte [rdi + 4]
movzx ecx, byte [rdi + 7]
shl r12d, 8
or r12d, eax
shl ecx, 8
movzx eax, byte [rdi + 2]
shl eax, 0x10
or r12d, eax
movzx eax, byte [rdi + 3]
shl eax, 0x18
or r12d, eax
movzx eax, byte [rdi + 5]
shl eax, 8
or r13d, eax
movzx eax, byte [rdi + 6]
or ecx, eax
shl ecx, 0x10
or r13d, ecx
lea ecx, [r8 - 8]
cmp dword [rbp + 0x68], ebx
je 0x140395d09
test ecx, ecx
js 0x140395c07
mov rbx, qword [rbp + 0x58]
mov eax, r8d
shr rax, 3
mov qword [rbp - 8], rax
neg eax
mov rdi, qword [rbp - 8]
lea ecx, [rcx + rax*8]
mov dword [rbp + 0x68], ecx
movzx edx, byte [r14]
mov r8d, r15d
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or edx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or edx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or edx, eax
xor edx, r12d
movzx ecx, byte [r14]
add r14, r15
mov dword [rbp - 0x10], edx
mov rdx, rbx
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ecx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ecx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ecx, eax
xor ecx, r13d
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.140393310
mov r12d, dword [rbp - 0x10]
mov eax, r12d
mov r13d, dword [rbp - 0xc]
mov byte [rsi], r12b
add rsi, r15
shr eax, 8
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 8
mov byte [rsi], r13b
add rsi, r15
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
sub rdi, r15
jne 0x140395b2a
mov rdi, qword [rbp + 0x60]
xor ebx, ebx
mov ecx, dword [rbp + 0x68]
mov r9, qword [rbp + 0x58]
cmp ecx, 0xfffffff8
je 0x140395efc
add ecx, 8
mov edx, ebx
movsxd rax, ecx
add r14, rax
sub ecx, r15d
je 0x140395c90
sub ecx, r15d
je 0x140395c84
sub ecx, r15d
je 0x140395c78
sub ecx, r15d
je 0x140395c6e
sub ecx, r15d
je 0x140395c65
sub ecx, r15d
je 0x140395c59
sub ecx, r15d
je 0x140395c4d
cmp ecx, r15d
jne 0x140395c97
sub r14, r15
movzx ebx, byte [r14]
shl ebx, 0x18
sub r14, r15
movzx eax, byte [r14]
shl eax, 0x10
or ebx, eax
sub r14, r15
movzx eax, byte [r14]
shl eax, 8
or ebx, eax
sub r14, r15
movzx eax, byte [r14]
or ebx, eax
sub r14, r15
movzx edx, byte [r14]
shl edx, 0x18
sub r14, r15
movzx eax, byte [r14]
shl eax, 0x10
or edx, eax
sub r14, r15
movzx eax, byte [r14]
shl eax, 8
or edx, eax
movzx eax, byte [r14 - 1]
or edx, eax
xor edx, r12d
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], edx
xor ebx, r13d
mov rdx, r9
mov dword [rbp - 0xc], ebx
mov r8d, r15d
call fcn.140393310
mov r12d, dword [rbp - 0x10]
mov eax, r12d
mov r13d, dword [rbp - 0xc]
mov byte [rsi], r12b
add rsi, r15
shr eax, 8
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 8
mov byte [rsi], r13b
add rsi, r15
mov byte [rsi], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + r15], al
mov eax, r13d
shr eax, 0x18
mov byte [rsi + r15 + 1], al
jmp 0x140395efc
mov dword [rbp + 0x68], ecx
test ecx, ecx
js 0x140395dfb
mov eax, r8d
shr rax, 3
mov qword [rbp - 8], rax
neg eax
lea ecx, [rcx + rax*8]
mov dword [rbp + 0x68], ecx
movzx edi, byte [r14]
lea rcx, [rbp - 0x10]
add r14, r15
xor r8d, r8d
mov rdx, r9
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or edi, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or edi, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or edi, eax
mov dword [rbp - 0x10], edi
movzx ebx, byte [r14]
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ebx, eax
mov dword [rbp - 0xc], ebx
call fcn.140393310
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
xor ecx, r12d
mov r9, qword [rbp + 0x58]
xor edx, r13d
mov byte [rsi], cl
mov eax, ecx
add rsi, r15
shr eax, 8
mov r12d, edi
mov r13d, ebx
mov byte [rsi], al
add rsi, r15
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, edx
shr eax, 8
mov byte [rsi], cl
add rsi, r15
mov byte [rsi], dl
add rsi, r15
mov byte [rsi], al
add rsi, r15
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov byte [rsi], dl
add rsi, r15
sub qword [rbp - 8], r15
jne 0x140395d27
mov rdi, qword [rbp + 0x60]
mov ecx, dword [rbp + 0x68]
cmp ecx, 0xfffffff8
je 0x140395efc
movzx ebx, byte [r14]
xor r8d, r8d
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ebx, eax
mov dword [rbp - 0x10], ebx
movzx edx, byte [r14]
add r14, r15
movzx ecx, byte [r14 + r15 + 1]
movzx eax, byte [r14]
shl ecx, 8
shl eax, 8
or edx, eax
movzx eax, byte [r14 + r15]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x50], edx
mov dword [rbp - 0xc], edx
mov rdx, r9
call fcn.140393310
mov ecx, dword [rbp + 0x68]
mov r8d, dword [rbp - 0x10]
add ecx, 8
mov edx, dword [rbp - 0xc]
xor r8d, r12d
movsxd rax, ecx
xor edx, r13d
add rsi, rax
sub ecx, r15d
je 0x140395ef1
sub ecx, r15d
je 0x140395ee6
sub ecx, r15d
je 0x140395edb
sub ecx, r15d
je 0x140395ed0
sub ecx, r15d
je 0x140395ecb
sub ecx, r15d
je 0x140395ec1
sub ecx, r15d
je 0x140395eb7
cmp ecx, r15d
jne 0x140395ef5
sub rsi, r15
mov eax, edx
shr eax, 0x18
mov byte [rsi], al
sub rsi, r15
mov eax, edx
shr eax, 0x10
mov byte [rsi], al
sub rsi, r15
mov eax, edx
shr eax, 8
mov byte [rsi], al
sub rsi, r15
mov byte [rsi], dl
sub rsi, r15
mov eax, r8d
shr eax, 0x18
mov byte [rsi], al
sub rsi, r15
mov eax, r8d
shr eax, 0x10
mov byte [rsi], al
sub rsi, r15
mov eax, r8d
shr eax, 8
mov byte [rsi], al
mov byte [rsi - 1], r8b
mov r13d, dword [rbp + 0x50]
mov r12d, ebx
mov byte [rdi], r12b
mov eax, r13d
shr eax, 0x18
mov ecx, r13d
shr ecx, 0x10
mov edx, r13d
shr edx, 8
mov r8d, r12d
shr r8d, 0x18
mov r9d, r12d
shr r9d, 0x10
mov r10d, r12d
shr r10d, 8
mov byte [rdi + 1], r10b
mov byte [rdi + 2], r9b
mov byte [rdi + 3], r8b
mov byte [rdi + 4], r13b
mov byte [rdi + 5], dl
mov byte [rdi + 6], cl
mov byte [rdi + 7], al
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret