Function at 0x18005b340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18016b440]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [rcx]
mov rdi, rcx
movsxd rdx, dword [rcx + 8]
mov rcx, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x40]
call fcn.180046e30
mov rdx, qword [rbx + 0x10]
mov rcx, rax
test byte [rax + 8], 0xf
jne 0x18005b384
xor al, al
jmp 0x18005b38e
mov rax, qword [rax]
mov qword [rdx], rax
movzx eax, byte [rcx + 8]
mov byte [rdx + 8], al
lea r8, [rsp + 0x50]
add qword [rbx + 0x10], 0x10
lea rdx, [0x18001ba30]
mov rcx, qword [rdi]
xor ebx, ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x20], rbx
mov r9, qword [rcx + 0x10]
add r9, 0xfffffffffffffff0
mov qword [rsp + 0x50], r9
sub r9, qword [rcx + 0x30]
call fcn.18002a4a0
test eax, eax
je 0x18005b621
cmp dword [0x18016b410], 2
mov ecx, ebx
movups xmm0, xmmword [str.pDEWK]
movzx eax, word [0x1801485a8]
mov word [rsp + 0x48], ax
movzx eax, byte [0x1801485aa]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x98], rbp
movsd xmm0, qword [0x1801485a0]
movsd qword [rsp + 0x40], xmm0
mov qword [rsp + 0xa0], rsi
mov byte [rsp + 0x4a], al
jl 0x18005b54b
movdqa xmm0, xmmword [str.55555555555555556666666666666666]
lea rdx, [rsp + 0x34]
movdqa xmm4, xmmword [0x1801508d0]
movdqa xmm3, xmmword [0x180151a20]
movdqa xmm5, xmmword [0x180150d30]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x180151570]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x18005b460
movaps xmm6, xmmword [rsp + 0x70]
cmp ecx, 0x1b
jge 0x18005b58d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x1b
jl 0x18005b560
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [rsp + 0x30]
call fcn.180062cd0
mov rsi, qword [rdi]
mov rbp, rax
mov rcx, qword [rsi + 0x10]
sub rcx, 0x10
movzx edx, byte [rcx + 8]
and dl, 0xf
cmp dl, 4
je 0x18005b5e2
cmp dl, 3
jne 0x18005b5e9
mov rdx, rcx
mov rcx, rsi
call fcn.1800371a0
mov rax, qword [rsi + 0x18]
cmp qword [rax + 0x18], rbx
jle 0x18005b5da
mov rcx, rsi
call fcn.18002de50
mov rcx, qword [rsi + 0x10]
sub rcx, 0x10
mov rbx, qword [rcx]
add rbx, 0x18
mov rdx, rbx
mov rcx, rbp
call fcn.180062cd0
lea rdx, [0x180062fb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rdi]
mov edx, 0xfffffffe
call fcn.18001a9f0
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi]
call fcn.18001da40
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180111c00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret