Function at 0x14004c0f0
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 [0x14010e410]
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.1400a0d20
cmp qword [rbx + 0x18], 0x10
jb 0x14004c165
mov rbx, qword [rbx]
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140048160
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 0x14004c6cc
lea rax, [rbp - 0x68]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [str.SW__GWYKVWROIKX_A]
movups xmmword [rsp + 0x40], xmm0
movzx eax, byte [0x1400f58d8]
mov byte [rsp + 0x50], al
mov r8d, r15d
mov r12d, 4
lea r13d, [r12 + 0x1b]
mov r14d, dword [0x14010e418]
cmp r14d, 2
jl 0x14004c333
movdqa xmm5, xmmword [0x1400f8810]
movdqa xmm4, xmmword [0x1400f8930]
movd xmm6, r12d
movdqa xmm7, xmmword [0x1400f8870]
movd xmm8, r13d
movdqa xmm0, xmmword [str.1111111111111111]
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
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 [0x1400f8910]
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, 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 [0x1400f8910]
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 0x14004c230
cmp r8d, 0x11
jge 0x14004c370
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x11
jl 0x14004c340
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
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14004c390
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.14003dfb0
nop
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14003d130
mov rdi, rax
movups xmm0, xmmword [str.CS_GZ_CM_roIVZ__17__4_______6qQ]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x1400f58f0]
movups xmmword [rsp + 0x68], xmm1
movzx ecx, byte [0x1400f5900]
mov byte [rsp + 0x78], cl
mov ecx, r15d
cmp r14d, 2
jl 0x14004c522
movdqa xmm5, xmmword [0x1400f8810]
movdqa xmm4, xmmword [0x1400f8930]
movd xmm6, r12d
movdqa xmm7, xmmword [0x1400f8870]
movd xmm8, r13d
movdqa xmm0, xmmword [str.1111111111111111]
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
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 [0x1400f8910]
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, 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 [0x1400f8910]
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 0x14004c422
cmp ecx, 0x21
jge 0x14004c55c
movsxd rax, ecx
lea r8, [rsp + 0x58]
add r8, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x21
jl 0x14004c530
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 0x14004c570
mov r8, rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.14003dfb0
nop
lea r9, [rbp - 0x68]
mov r8, rdi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.14003b3e0
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14003c150
lea rcx, [rbp + 0x28]
cmp rcx, rax
je 0x14004c5d9
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 0x14004c5dd
mov rbx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004c623
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c612
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c7db
call fcn.14009e5b8
mov qword [rbp - 0x80], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14004c65e
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c659
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c7e1
call fcn.14009e5b8
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.140047910
lea rcx, [rbp + 0x48]
call fcn.140048520
test rax, rax
jne 0x14004c702
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 0x14004c702
test dl, 4
je 0x14004c7e7
lea rbx, str.ios_base::badbit_set
jmp 0x14004c7fc
cmp qword [rdi + 0x18], 0x10
jb 0x14004c6df
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x14004c6e6
mov r8, qword [rdi + 0x10]
add r8, rdi
sub r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.140051110
mov rsi, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x28]
jmp 0x14004c665
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.140047340
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.14009d254
nop
test rbx, rbx
je 0x14004c79c
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x14004c791
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c7d5
mov rdx, rsi
mov rcx, rbx
call fcn.14009e5b8
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14009df90
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.1400ad3d4
nop
call fcn.1400ad3d4
nop
call fcn.1400ad3d4
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.14003fde0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140040810
lea rdx, [0x14010bef0]
lea rcx, [rsp + 0x58]
call fcn.1400a059c
int3