Function at 0x1403b9a30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x35c], 0x10
jbe 0x1403b9a51
mov ebp, 0x16
jmp 0x1403b9cfa
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x350]
call fcn.1401eb680
mov ebp, eax
test eax, eax
jne 0x1403b9cfa
mov eax, dword [rbx + 0x358]
cmp eax, 1
je 0x1403b9c27
test eax, eax
jne 0x1403b9a47
mov ecx, dword [rbx + 0x35c]
test ecx, ecx
jne 0x1403b9aa0
cmp qword [rbx + 0x360], 0
mov ebp, 0x16
jne 0x1403b9af2
jmp 0x1403b9cfa
xor eax, eax
cmp ecx, 0xc
jne 0x1403b9ab5
mov ecx, dword [rbx + 0x354]
test ecx, ecx
je 0x1403b9bc0
mov cl, byte [rbx + rax + 0x340]
xor byte [rbx + rax + 0x310], cl
inc rax
mov ecx, dword [rbx + 0x35c]
cmp rax, rcx
jb 0x1403b9ab5
test ecx, ecx
je 0x1403b9af2
movsxd rax, ecx
shl rax, 3
add qword [rbx + 0x360], rax
lea rdx, [rbx + 0x310]
mov rcx, rbx
call fcn.14049f100
lea rcx, [rbx + 0x340]
mov edx, 8
call fcn.140200660
mov rax, qword [rbx + 0x360]
mov rcx, rax
shr rcx, 0x38
mov byte [rbx + 0x348], cl
mov rcx, rax
shr rcx, 0x30
mov byte [rbx + 0x349], cl
mov rcx, rax
shr rcx, 0x28
mov byte [rbx + 0x34a], cl
mov rcx, rax
shr rcx, 0x20
mov byte [rbx + 0x34b], cl
mov rcx, rax
shr rcx, 0x18
mov byte [rbx + 0x34c], cl
mov rcx, rax
shr rcx, 0x10
mov byte [rbx + 0x34d], cl
mov byte [rbx + 0x34e], ah
mov byte [rbx + 0x34f], al
xor eax, eax
movups xmm0, xmmword [rbx + rax + 0x310]
movups xmm1, xmmword [rbx + rax + 0x340]
xorps xmm1, xmm0
movups xmmword [rbx + rax + 0x310], xmm1
test rax, rax
lea rax, [rax + 0x10]
jne 0x1403b9b66
lea rsi, [rbx + 0x310]
mov rcx, rbx
mov rdx, rsi
call fcn.14049f100
lea rcx, [rbx + 0x320]
mov r8d, 0x10
mov rdx, rsi
call fcn.1401fed70
mov edx, 0x10
mov rcx, rsi
call fcn.140200660
jmp 0x1403b9be3
lea rdx, [rbx + 0x340]
lea rcx, [rbx + 0x320]
mov r8d, 0xc
call fcn.1401fed70
mov dword [rbx + 0x32c], 0x1000000
lea rdx, [rbx + 0x320]
lea rcx, [rbx + 0x330]
mov r8d, 0x10
call fcn.1401fed70
lea rcx, [rbx + 0x340]
mov edx, 0x10
call fcn.140200660
mov qword [rbx + 0x360], 0
mov qword [rbx + 0x358], 1
xor eax, eax
jmp 0x1403b9c3b
mov eax, dword [rbx + 0x35c]
mov ebp, 0x16
cmp eax, 0xf
jg 0x1403b9cfa
xor ebp, ebp
cmp r14d, 0x10
jae 0x1403b9c47
xor esi, esi
jmp 0x1403b9ca0
test eax, eax
jne 0x1403b9c43
mov eax, r14d
and eax, 0xfffffff0
jne 0x1403b9c57
xor esi, esi
jmp 0x1403b9c9b
lea r15, [rbx + 0x310]
mov r12d, eax
xor esi, esi
xor eax, eax
lea rcx, [rax + rsi]
mov rcx, qword [rdi + rcx]
xor qword [rbx + rax + 0x310], rcx
add rax, 8
cmp rax, 0x10
jb 0x1403b9c65
mov rcx, rbx
mov rdx, r15
call fcn.14049f100
sub qword [rbx + 0x360], 0xffffffffffffff80
add rsi, 0x10
cmp rsi, r12
jb 0x1403b9c63
mov eax, esi
add rdi, rax
cmp esi, r14d
jae 0x1403b9cfa
lea r15, [rbx + 0x310]
mov eax, dword [rbx + 0x35c]
mov cl, byte [rdi]
lea edx, [rax + 1]
mov dword [rbx + 0x35c], edx
cdqe
xor byte [rbx + rax + 0x310], cl
mov eax, dword [rbx + 0x35c]
cmp eax, 0x10
jne 0x1403b9cf0
mov rcx, rbx
mov rdx, r15
call fcn.14049f100
mov dword [rbx + 0x35c], 0
sub qword [rbx + 0x360], 0xffffffffffffff80
xor eax, eax
inc rdi
inc esi
cmp esi, r14d
jne 0x1403b9cb2
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret