Function at 0x180007e90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
sub rsp, 0x28
mov rbp, qword [0x1800adca0]
mov rbx, rbp
mov eax, dword [rbp + 0x3db8]
cmp dword [rbp + 0x3dbc], eax
je 0x1800082f7
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
xor edi, edi
mov esi, edi
mov qword [rsp + 0x20], r14
cmp dword [rbp + 0x5350], edi
jle 0x180007f04
mov ebp, edi
mov rax, qword [rbx + 0x5358]
cmp dword [rax + rbp + 4], 2
jne 0x180007eef
movsxd rdx, esi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rbp + 0x10]
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x5350]
jl 0x180007ed0
mov rbp, qword [0x1800adca0]
cmp dword [rbp + 0x3e08], 2
jl 0x180007f25
nop dword [rax]
call fcn.180007b50
cmp dword [rbp + 0x3e08], 1
jg 0x180007f10
mov rbp, qword [0x1800adca0]
mov r8, qword [rbx + 0xc0]
test r8, r8
je 0x180007f5e
lea rdx, [rbx + 0x52e8]
mov rax, qword [rdx]
cmp rax, qword [rbx + 0x52f8]
jne 0x180007f51
mov rax, qword [rdx + 8]
cmp rax, qword [rbx + 0x5300]
je 0x180007f5e
mov rcx, qword [rbp + 0x4040]
mov rcx, qword [rcx]
call r8
mov rax, qword [rbx + 0x3e38]
mov byte [rbx + 0x3dc5], dil
test rax, rax
je 0x180007f81
cmp byte [rax + 0x90], dil
jne 0x180007f81
mov byte [rax + 0x8e], dil
call fcn.180007b50
mov rcx, qword [0x1800adca0]
mov rsi, rcx
cmp qword [rcx + 0x41b0], rdi
je 0x180007fa5
call fcn.18000ed80
mov rcx, qword [0x1800adca0]
cmp qword [rsi + 0x4048], rdi
je 0x180007fe1
cmp byte [rcx + 0x40a5], dil
je 0x180007fe1
cmp dword [rcx + 0x40f8], edi
jne 0x180007fe1
cmp dword [rcx + 0x4158], edi
jne 0x180007fe1
mov eax, dword [rsi + 0x40a8]
test al, 0xf
je 0x180007fe1
test al, al
js 0x180007fe1
call fcn.18000df90
mov rcx, qword [0x1800adca0]
cmp byte [rbx + 0x41dc], dil
je 0x180008144
mov eax, dword [rbx + 0x4204]
inc eax
cmp eax, dword [rbx + 0x3db8]
jge 0x18000801c
test byte [rbx + 0x41e0], 0x20
jne 0x180008018
movsxd rax, dword [rbx + 0x41e8]
cmp byte [rax + rcx + 0xd14], dil
jne 0x18000801c
mov al, 1
jmp 0x18000801e
xor al, al
cmp byte [rbx + 0x422a], dil
jne 0x18000802b
test al, al
je 0x180008030
call fcn.180006f10
cmp byte [rbx + 0x41dc], dil
je 0x180008144
mov eax, dword [rbx + 0x3db8]
cmp dword [rbx + 0x41e4], eax
jge 0x180008144
test byte [rbx + 0x41e0], 1
jne 0x180008144
cmp byte [0x18004e103], dil
mov eax, dword [0x18004e100]
mov dword [rsp + 0x40], eax
mov byte [rbx + 0x41dd], 1
je 0x180008133
cmp dword [0x1800adb58], 2
mov r8d, edi
jl 0x1800080f9
movdqa xmm3, xmmword [0x18004e8e0]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18004e960]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18004e960]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 1
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [str.7777]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmmword [0x18004e950]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x18004e970]
xorps xmm3, xmm0
movd dword [rsp + 0x40], xmm3
jmp 0x180008133
lea r9, [rsp + 0x40]
nop
mov eax, 0x29e4129f
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x36
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x180008100
lea rcx, [rsp + 0x40]
call fcn.180014110
mov byte [rbx + 0x41dd], dil
mov eax, dword [rbx + 0x3db8]
mov dword [rbx + 0x3dbc], eax
mov byte [rbx + 0x3dc4], dil
call fcn.1800164b0
mov ecx, dword [rbx + 0x3dfc]
test ecx, ecx
jns 0x180008182
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x3df8]
test eax, eax
cmovg edx, eax
call fcn.180018c90
mov dword [rbx + 0x3df8], edi
lea rcx, [rbx + 0x3df8]
mov edx, dword [rbx + 0x3dd8]
call fcn.180018c90
mov ecx, dword [rbx + 0x3dd8]
mov ebp, edi
test ecx, ecx
je 0x1800081e9
mov rsi, rdi
nop dword [rax]
mov rax, qword [rbx + 0x3de0]
mov rdx, qword [rsi + rax]
cmp byte [rdx + 0x8e], dil
je 0x1800081cd
test dword [rdx + 0xc], 0x1000000
jne 0x1800081d9
lea rcx, [rbx + 0x3df8]
call fcn.1800036c0
mov ecx, dword [rbx + 0x3dd8]
inc ebp
add rsi, 8
cmp ebp, ecx
jne 0x1800081b0
mov eax, dword [rbx + 0x3df8]
mov r14, qword [rsp + 0x20]
mov dword [rbx + 0x3dd8], eax
mov eax, dword [rbx + 0x3ddc]
mov dword [rbx + 0x3df8], ecx
mov ecx, dword [rbx + 0x3dfc]
mov dword [rbx + 0x3dfc], eax
mov rax, qword [rbx + 0x3de0]
mov dword [rbx + 0x3ddc], ecx
mov rcx, qword [rbx + 0x3e00]
mov qword [rbx + 0x3e00], rax
mov eax, dword [rbx + 0x3e28]
mov dword [rbx + 0xe8], eax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x3de0], rcx
mov byte [rax + 0x18], dil
mov qword [rbx + 0xd1c], rdi
mov ecx, dword [rbx + 0x374c]
test ecx, ecx
jns 0x180008275
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x3748]
test eax, eax
cmovg edx, eax
call fcn.180018b50
mov dword [rbx + 0x3748], edi
xorps xmm0, xmm0
mov eax, dword [rbx + 0xd78]
mov dword [rbx + 0xd7c], eax
movups xmmword [rbx + 0xd28], xmm0
movups xmmword [rbx + 0xd38], xmm0
movups xmmword [rbx + 0xd48], xmm0
movups xmmword [rbx + 0xd58], xmm0
movups xmmword [rbx + 0xd68], xmm0
cmp dword [rbx + 0x5350], edi
jle 0x1800082ed
mov rsi, rdi
nop dword [rax + rax]
mov rax, qword [rbx + 0x5358]
cmp dword [rsi + rax + 4], 3
jne 0x1800082df
movsxd rdx, edi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rsi + rax + 0x10]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x5350]
jl 0x1800082c0
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop rbp
pop rbx
ret