Function at 0x14004cac0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x140259410]
xor rax, rsp
mov qword [rbp + 0x150], rax
movzx r14d, r8b
mov rbx, rdx
mov rdi, rcx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
xor r15d, r15d
mov esi, r15d
mov qword [rbp + 0x38], r15
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x40]
call fcn.140097800
cmp qword [rbx + 0x18], 0x10
jb 0x14004cb35
mov rbx, qword [rbx]
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.1400485b0
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
test r14b, r14b
je 0x14004d0be
lea rax, [rbp - 0x68]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [str.TRKMHZRNQR_266_F]
movups xmmword [rsp + 0x40], xmm0
movzx eax, byte [0x1400e9ff0]
mov byte [rsp + 0x50], al
mov r8d, r15d
mov r12d, 5
lea r13d, [r12 + 0x1a]
mov r14d, dword [0x140259418]
cmp r14d, 2
jl 0x14004cd0b
movdqa xmm5, xmmword [0x140243cc0]
movdqa xmm4, xmmword [0x140243e30]
movd xmm6, r12d
movdqa xmm7, xmmword [0x140243d20]
movd xmm8, r13d
movdqa xmm0, xmmword [str.66666666666666667777777777777777]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rsp + 0x30]
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
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
andps xmm2, xmmword [0x140243db0]
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
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140243db0]
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, 0x10
jl 0x14004cc00
cmp r8d, 0x11
jge 0x14004cd53
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x11
jl 0x14004cd20
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14004cd71
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.14003e1d0
nop
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14003d350
mov rdi, rax
movups xmm0, xmmword [str.DVVJUVHHY_t]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x1400ea298]
movups xmmword [rsp + 0x68], xmm1
movzx ecx, byte [0x1400ea2a8]
mov byte [rsp + 0x78], cl
mov ecx, r15d
cmp r14d, 2
jl 0x14004cf0b
movdqa xmm5, xmmword [0x140243cc0]
movdqa xmm4, xmmword [0x140243e30]
movd xmm6, r12d
movdqa xmm7, xmmword [0x140243d20]
movd xmm8, r13d
movdqa xmm0, xmmword [str.66666666666666667777777777777777]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x5c]
mov r8d, dword [rsp + 0x30]
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
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
andps xmm2, xmmword [0x140243db0]
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
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140243db0]
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, 0x20
jl 0x14004ce03
cmp ecx, 0x21
jge 0x14004cf4e
movsxd rax, ecx
lea r8, [rsp + 0x58]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x21
jl 0x14004cf20
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
lea rax, [rsp + 0x58]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004cf62
mov r8, rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.14003e1d0
nop
lea r9, [rbp - 0x68]
mov r8, rdi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.14003b610
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14003c380
lea rcx, [rbp + 0x28]
cmp rcx, rax
je 0x14004cfcb
mov rbx, qword [rax]
mov qword [rbp + 0x28], rbx
mov rcx, qword [rax + 8]
mov qword [rbp + 0x30], rcx
mov rsi, qword [rax + 0x10]
mov qword [rbp + 0x38], rsi
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
jmp 0x14004cfcf
mov rbx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004d015
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d004
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d1cd
call fcn.140095098
mov qword [rbp - 0x80], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14004d050
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d04b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d1d3
call fcn.140095098
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov r8, qword [rbp + 0x30]
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140047d60
lea rcx, [rbp + 0x48]
call fcn.140048970
test rax, rax
jne 0x14004d0f4
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
je 0x14004d0f4
test dl, 4
je 0x14004d1d9
lea rbx, str.ios_base::badbit_set
jmp 0x14004d1ee
cmp qword [rdi + 0x18], 0x10
jb 0x14004d0d1
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x14004d0d8
mov r8, qword [rdi + 0x10]
add r8, rdi
sub r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.140053430
mov rsi, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x28]
jmp 0x14004d057
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.140047880
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.140093d34
nop
test rbx, rbx
je 0x14004d18e
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x14004d183
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d1c7
mov rdx, rsi
mov rcx, rbx
call fcn.140095098
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140094a70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a3eb4
nop
call fcn.1400a3eb4
nop
call fcn.1400a3eb4
int3
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 + 0x30]
call fcn.1400404b0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140040ee0
lea rdx, [0x140256890]
lea rcx, [rsp + 0x58]
call fcn.14009707c
int3