Function at 0x180013a40
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x180014014
push rbp
push rsi
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x1800a5010]
xor rax, rsp
mov qword [rbp - 0x48], rax
mov r8, qword [0x1800a7808]
mov rsi, rcx
mov rdx, qword [0x1800a7670]
lea rcx, [rbp - 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x158], r12
movups xmmword [rbp - 0x58], xmm0
call fcn.18005daa0
mov eax, dword [rbp - 0x50]
mov r12, qword [rbp - 0x58]
test eax, eax
jle 0x180013fee
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x150], rdi
mov rdi, r12
mov qword [rsp + 0x120], r13
xor r13d, r13d
mov qword [rsp + 0x118], r14
mov r14d, eax
mov qword [rsp + 0x110], r15
mov r15d, dword [0x1800a5018]
movaps xmmword [rsp + 0xd0], xmm9
lea r12d, [r13 + 0x4c]
movss xmm9, dword [0x18009d858]
movaps xmmword [rsp + 0xc0], xmm10
movss xmm10, dword [0x18009d894]
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm8
nop word [rax + rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x180013f89
mov rdx, rbx
mov rcx, rsi
call fcn.18006bc10
movsd xmm1, qword [0x180094a50]
mov r8d, r13d
movzx eax, word [0x180094a58]
divss xmm0, xmm9
mov word [rbp - 0x80], ax
movsd qword [rsp + 0x78], xmm1
comiss xmm10, xmm0
movups xmm0, xmmword [str.cDBCXL]
cmovbe rbx, r13
movups xmmword [rsp + 0x68], xmm0
cmp r15d, 2
jl 0x180013c6c
movdqa xmm2, xmmword [0x18009d8f0]
mov eax, 4
movdqa xmm3, xmmword [0x18009d910]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov r8d, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18009d930]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [str.cDBCXL]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x18009d9d0]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movq qword [rsp + 0x68], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18009d930]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x70]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18009d9d0]
pxor xmm2, xmm0
movq qword [rsp + 0x70], xmm2
mov eax, r8d
lea r9, [rsp + 0x68]
lea r9, [r9 + rax*2]
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0xd
jl 0x180013c80
mov qword [rsp + 0x48], r13
cmp word [rsp + 0x68], r13w
je 0x180013cf8
lea rax, [rsp + 0x68]
mov ecx, r13d
nop word [rax + rax]
lea rax, [rax + 2]
lea ecx, [rcx + 1]
cmp word [rax], r13w
jne 0x180013cd0
lea eax, [rcx + 1]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
test eax, eax
je 0x180013cfd
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x180013cfd
mov qword [rsp + 0x50], r13
test rbx, rbx
je 0x180013d0e
mov rcx, qword [0x1800a79b0]
add rcx, rbx
jmp 0x180013d11
mov rcx, r13
movups xmm0, xmmword [rcx]
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
call fcn.180060d80
test al, al
jne 0x180013f50
mov eax, dword [0x180094a38]
mov ecx, r13d
movups xmm0, xmmword [0x180094a28]
mov dword [rsp + 0x30], eax
movzx eax, word [0x180094a3c]
xor word [rsp + 0x30], 0x38
xor word [rsp + 0x32], 0x39
movups xmmword [rsp + 0x20], xmm0
xor word [rsp + 0x22], 0x31
xor word [rsp + 0x24], 0x32
xor word [rsp + 0x26], 0x33
xor word [rsp + 0x28], 0x34
xor word [rsp + 0x2a], 0x35
xor word [rsp + 0x2c], 0x36
xor word [rsp + 0x2e], 0x37
xor ax, 0x3a
mov word [rsp + 0x20], r12w
mov word [rsp + 0x34], ax
lea rax, [rsp + 0x20]
nop dword [rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], r13w
jne 0x180013da0
add ecx, 1
lea rax, [rsp + 0x20]
mov dword [rbp - 0x70], ecx
cmove rax, r13
mov dword [rbp - 0x6c], ecx
mov qword [rbp - 0x78], rax
test rbx, rbx
je 0x180013dd3
mov rcx, qword [0x1800a79b0]
add rcx, rbx
jmp 0x180013dd6
mov rcx, r13
movups xmm0, xmmword [rcx]
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
call fcn.180060d80
test al, al
jne 0x180013f50
cmp word [str.3_G], r13w
mov rax, qword [0x180094a20]
mov qword [rsp + 0x38], rax
je 0x180013ede
mov r8d, r13d
cmp r15d, 2
jl 0x180013ea4
movdqa xmm3, xmmword [0x18009d8f0]
mov eax, 4
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18009dd00]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18009dd00]
shufps xmm2, xmm0, 0xdd
movd xmm0, eax
mov eax, 0x1f
psrad xmm2, xmm0
movdqa xmm1, xmm2
movd xmm0, eax
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x18009d930]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x38]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18009d9d0]
pxor xmm2, xmm0
movq qword [rsp + 0x38], xmm2
jmp 0x180013ede
lea r9, [rsp + 0x38]
nop dword [rax]
mov eax, 0x51eb851f
lea r9, [r9 + 2]
mul r8d
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 4
jl 0x180013eb0
mov qword [rsp + 0x58], r13
cmp word [rsp + 0x38], r13w
je 0x180013f1b
lea rax, [rsp + 0x38]
mov ecx, r13d
lea rax, [rax + 2]
lea ecx, [rcx + 1]
cmp word [rax], r13w
jne 0x180013ef3
lea eax, [rcx + 1]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x180013f20
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
jmp 0x180013f20
mov qword [rsp + 0x60], r13
test rbx, rbx
je 0x180013f31
mov rcx, qword [0x1800a79b0]
add rcx, rbx
jmp 0x180013f34
mov rcx, r13
movups xmm0, xmmword [rcx]
mov r8b, 1
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
movups xmmword [rbp - 0x68], xmm0
call fcn.180060d80
test al, al
je 0x180013f89
mov eax, dword [0x1800a76b0]
inc eax
mov dword [0x1800a76b0], eax
cmp eax, 5
jl 0x180013f89
test rbx, rbx
je 0x180013f74
mov rdx, qword [0x1800a79a8]
add rdx, rbx
jmp 0x180013f77
mov rdx, r13
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.180071ce0
mov dword [0x1800a76b0], r13d
add rdi, 8
sub r14, 1
jne 0x180013b20
mov r12, qword [rbp - 0x58]
movaps xmm10, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xd0]
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm6, xmmword [rsp + 0x100]
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x148]
mov rcx, r12
call qword [0x1800a7760]
mov r12, qword [rsp + 0x158]
mov rcx, qword [rbp - 0x48]
xor rcx, rsp
call fcn.180079a30
add rsp, 0x128
pop rsi
pop rbp
ret