Function at 0x18005eaf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x18], r8
push rbp
mov rbp, rsp
sub rsp, 0x80
cmp qword [r9 + 0x88], 0
mov rsi, r9
mov rdi, rdx
je 0x18005ec50
cmp qword [rcx + 0x18], 0x10
mov r8, qword [rcx + 0x10]
jb 0x18005eb47
mov rdx, qword [rcx]
mov rcx, r9
call fcn.18005f0c0
mov r8, rax
mov eax, dword [0x18006cdf4]
mov dword [rbp + 0x20], eax
jmp 0x18005eb5e
mov rdx, rcx
mov rcx, rsi
call fcn.18005f0c0
mov ecx, dword [0x18006cdf4]
mov r8, rax
mov dword [rbp + 0x20], ecx
movzx eax, byte [0x18006cdf8]
lea rdx, [rbp + 0x20]
xor byte [rbp + 0x21], 0x31
xor al, 0x34
xor byte [rbp + 0x22], 0x32
mov rcx, r8
xor byte [rbp + 0x23], 0x33
mov byte [rbp + 0x24], al
mov byte [rbp + 0x20], 0x20
call fcn.18005c7c0
xor ebx, ebx
add rdi, 8
nop dword [rax]
mov edx, dword [rdi - 8]
mov rcx, rsi
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___int____ptr64]
mov rcx, rax
lea rdx, [0x18006b780]
call fcn.18005c7c0
mov edx, dword [rdi - 4]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x18006b780]
call fcn.18005c7c0
lea rdx, [0x180056d40]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rdi]
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___int____ptr64]
cmp rbx, 3
je 0x18005ec12
movzx eax, word [0x18006cde8]
lea rdx, [rbp + 0x20]
mov word [rbp + 0x20], ax
mov rcx, rsi
movzx eax, byte [0x18006cdea]
xor byte [rbp + 0x21], 0x31
xor al, 0x32
mov byte [rbp + 0x22], al
mov byte [rbp + 0x20], 0x2c
call fcn.18005c7c0
inc rbx
add rdi, 0xc
cmp rbx, 4
jb 0x18005eb90
cmp byte [0x18006cded], 0
movzx eax, word [0x18006cdec]
mov word [rbp + 0x20], ax
je 0x18005ec3f
xor byte [rbp + 0x21], 0x31
mov byte [rbp + 0x20], 0x5d
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.18005c7c0
jmp 0x18005ee65
mov eax, dword [0x18006cde0]
xor ebx, ebx
cmp dword [0x180079018], 2
movups xmm0, xmmword [str.vP__QQ]
mov dword [rbp - 0x40], eax
movzx eax, byte [0x18006cde4]
movups xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x3c], al
jl 0x18005edea
movdqa xmm0, xmmword [str.00000000000000009999999999999999]
lea rcx, [rbp - 0x4c]
movdqa xmm5, xmmword [0x18006d2b0]
mov eax, 5
movdqa xmm4, xmmword [0x18006d450]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x18006d2e0]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rbp - 0x60], xmm0
mov edx, dword [rbp - 0x60]
movaps xmmword [rsp + 0x50], xmm8
movd xmm8, eax
nop dword [rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
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
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d300]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x18005ecd0
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
cmp eax, 0x15
jge 0x18005ee2f
movsxd rax, ebx
lea r8, [rbp - 0x50]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, bl
inc ebx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ebx, 0x15
jl 0x18005ee00
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [rbp - 0x50]
call fcn.18005c7c0
cmp qword [0x18007e890], 0x10
lea rdx, [0x18007e878]
mov r8, qword [0x18007e888]
mov rcx, rax
cmovae rdx, qword [0x18007e878]
call fcn.18005f0c0
lea rdx, [0x18005c990]
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]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret