Function at 0x180003840
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rbp - 0x19], rax
xor ebx, ebx
mov r10, rcx
mov qword [rsp + 0x30], rbx
lea r9, [rbx - 1]
cmp word [rcx], bx
je 0x1800038a3
mov rcx, r9
nop word [rax + rax]
inc rcx
cmp word [r10 + rcx*2], bx
jne 0x180003880
add ecx, 1
mov rax, rbx
mov dword [rsp + 0x38], ecx
cmovne rax, r10
mov dword [rsp + 0x3c], ecx
mov qword [rsp + 0x30], rax
jmp 0x1800038a8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
cmp word [rdx], bx
je 0x1800038d7
inc r9
cmp word [rdx + r9*2], bx
jne 0x1800038b2
add r9d, 1
mov rax, rbx
mov dword [rsp + 0x48], r9d
cmovne rax, rdx
mov dword [rbp - 0x7d], r9d
mov qword [rsp + 0x40], rax
jmp 0x1800038dc
mov qword [rsp + 0x48], rbx
movzx eax, byte [r8]
mov esi, 5
movups xmm0, xmmword [0x180023f20]
movups xmm1, xmmword [0x180023f30]
mov edi, dword [0x180027018]
movaps xmmword [rsp + 0xf0], xmm6
lea r14d, [rsi + 0x1a]
mov byte [rbp - 0x79], al
xor eax, eax
movups xmmword [rbp - 0x69], xmm0
movups xmm0, xmmword [0x180023f40]
movaps xmmword [rsp + 0xe0], xmm7
mov dword [rbp - 0x78], eax
mov word [rbp - 0x74], ax
mov byte [rbp - 0x72], al
mov eax, dword [0x180023f68]
movups xmmword [rbp - 0x59], xmm1
movups xmm1, xmmword [0x180023f50]
movups xmmword [rbp - 0x49], xmm0
movsd xmm0, qword [0x180023f60]
mov dword [rbp - 0x21], eax
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm9
movups xmmword [rbp - 0x39], xmm1
movsd qword [rbp - 0x29], xmm0
cmp word [rbp - 0x1f], bx
je 0x180003af3
mov ecx, ebx
cmp edi, 2
jl 0x180003aa6
movdqa xmm5, xmmword [0x180024100]
lea rdx, [rbp - 0x69]
movdqa xmm4, xmmword [0x180024130]
movdqa xmm7, xmmword [str.____]
movdqa xmm9, xmmword [0x180024120]
movd xmm6, esi
movd xmm8, r14d
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x20
jl 0x1800039b0
cmp ecx, 0x26
jge 0x180003af3
movsxd rax, ecx
lea r8, [rbp - 0x69]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x88888889
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x3c
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x31
xor word [r8 - 2], ax
cmp ecx, 0x26
jl 0x180003ac0
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.180009840
mov rcx, qword [0x180029998]
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.180001200
cmp word [rbp - 0x1f], bx
jne 0x180003ca3
cmp edi, 2
jl 0x180003c58
movdqa xmm5, xmmword [0x180024100]
lea rcx, [rbp - 0x69]
movdqa xmm4, xmmword [0x180024130]
movdqa xmm7, xmmword [str.____]
movdqa xmm9, xmmword [0x180024120]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ebx
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x20
jl 0x180003b60
cmp eax, 0x26
jge 0x180003ca3
movsxd rax, ebx
lea r8, [rbp - 0x69]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x88888889
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3c
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x31
xor word [r8 - 2], ax
cmp ebx, 0x26
jl 0x180003c70
movzx eax, byte [rbp - 0x78]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xf0]
mov rcx, qword [rbp - 0x19]
xor rcx, rsp
call fcn.18000a130
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret