Function at 0x14004a460
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140187440]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, rdx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
xor r15d, r15d
mov edi, r15d
mov qword [rbp + 0x30], r15
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x40]
call fcn.1400cbce0
cmp qword [rbx + 0x18], 0xf
jbe 0x14004a4c6
mov rbx, qword [rbx]
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140046340
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], r12
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
lea rax, [rbp - 0x78]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
movups xmm0, xmmword [str.SW__GWYKVWROV_R_A]
movups xmmword [rsp + 0x30], xmm0
movzx eax, byte [0x1400eb5b8]
mov byte [rsp + 0x40], al
mov ecx, r15d
mov esi, dword [0x140187488]
cmp esi, 2
jl 0x14004a672
movdqa xmm5, xmmword [0x140171d30]
movdqa xmm4, xmmword [0x140171e70]
movdqa xmm6, xmmword [0x140171d50]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140171e30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140171e30]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x14004a570
cmp ecx, 0x11
jge 0x14004a6ac
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x11
jl 0x14004a680
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004a6d0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.14003cdd0
nop
lea rdx, [0x140191650]
lea rcx, [rbp - 0x28]
call fcn.14003bf50
mov r14, rax
movups xmm0, xmmword [0x1400eb6b8]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x1400eb6c8]
movups xmmword [rsp + 0x40], xmm1
movzx ecx, byte [0x1400eb6d8]
mov byte [rsp + 0x50], cl
mov r8d, r15d
cmp esi, 2
jl 0x14004a865
movdqa xmm5, xmmword [0x140171d30]
movdqa xmm4, xmmword [0x140171e70]
movdqa xmm6, xmmword [0x140171d50]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x34]
mov edx, dword [rsp + 0x60]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140171e30]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140171e30]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x14004a760
cmp r8d, 0x21
jge 0x14004a8a0
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x21
jl 0x14004a870
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004a8b4
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.14003cdd0
nop
lea r9, [rbp - 0x78]
mov r8, r14
lea rdx, [rbp - 0x58]
lea rcx, [rbp]
call fcn.14003a210
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14003af80
lea rcx, [rbp + 0x20]
cmp rcx, rax
je 0x14004a91e
mov rbx, qword [rax]
mov qword [rbp + 0x20], rbx
mov rsi, qword [rax + 8]
mov qword [rbp + 0x28], rsi
mov rdi, qword [rax + 0x10]
mov qword [rbp + 0x30], rdi
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
jmp 0x14004a926
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x20]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14004a96f
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a95c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004aacf
call fcn.140094048
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x14004a9aa
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a9a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004aad5
call fcn.140094048
sub rsi, rbx
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140045af0
lea rcx, [rbp + 0x48]
call fcn.140046730
test rax, rax
jne 0x14004a9ff
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x88], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x50]
and eax, 0x17
mov dword [rbp + rcx + 0x50], eax
mov edx, dword [rbp + rcx + 0x54]
and edx, eax
jne 0x14004aadb
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x40], r12
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x48]
call fcn.140045610
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe8], rax
lea rcx, [rbp + 0xe8]
call fcn.140092d4c
nop
test rbx, rbx
je 0x14004aa99
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14004aa8e
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004aac9
mov rdx, rdi
mov rcx, rbx
call fcn.140094048
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140093a30
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400a344c
nop
call fcn.1400a344c
nop
call fcn.1400a344c
int3
test dl, 4
je 0x14004aae9
lea rbx, str.ios_base::badbit_set
jmp 0x14004aafe
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14003e8b0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14003f2e0
lea rdx, [0x140184638]
lea rcx, [rbp - 0x28]
call fcn.140096024
int3