Function at 0x14004ca30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x1401340e8]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x38], esi
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.1400273d0
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
mov byte [rsp + 0x40], sil
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140033020
nop
movabs rax, 0xddf72d162e17903e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
movabs r14, 0xf6ded18574c16bb8
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x68], rax
movabs r15, 0xb89a4c785c72e34b
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1e8], rax
vmovdqu xmm0, xmmword [rbp - 0x70]
vpxor xmm1, xmm0, xmmword [rbp + 0x1e0]
vmovdqu xmmword [rbp - 0x70], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004cb30
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140028ae0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x80]
call fcn.1400259b0
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov byte [rsp + 0x40], dl
mov rcx, qword [rax + 8]
mov r8, qword [rsp + 0x48]
mov qword [rax + 8], r8
mov qword [rsp + 0x48], rcx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140026ed0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x80], rax
mov byte [rsp + 0x50], 0
xor eax, eax
mov qword [rsp + 0x58], rax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140033020
nop
movabs rax, 0xdce8230f2f01823b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x200], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x208], rax
vmovdqu xmm0, xmmword [rbp - 0x30]
vpxor xmm1, xmm0, xmmword [rbp + 0x200]
vmovdqu xmmword [rbp - 0x30], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
lea rax, [rbp - 0x30]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004cc20
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140028ae0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x80]
call fcn.1400259b0
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x50]
mov byte [rax], cl
mov byte [rsp + 0x50], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov qword [rax + 8], rdx
mov qword [rsp + 0x58], rcx
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140026ed0
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x80]
call fcn.140025b60
nop
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0x10
cmovae rdx, qword [rbp + 0xb0]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x60], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x70], xmm1
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14004ccb7
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.140028ae0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x90]
call fcn.1400260c0
mov dword [rsp + 0x38], 1
mov r10d, esi
cmp qword [rbp + 0xa0], r10
jbe 0x14004cd4c
mov r9, rsi
nop word [rax + rax]
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
setae r8b
cmovae rcx, qword [rbp + 0x90]
movzx ecx, byte [r9 + rcx]
xor cl, 0x32
lea rax, [rbp + 0x90]
test r8b, r8b
cmovne rax, qword [rbp + 0x90]
mov byte [r9 + rax], cl
inc r10d
lea r9, [r9 + 1]
movsxd rax, r10d
cmp rax, qword [rbp + 0xa0]
jb 0x14004cd00
lea rcx, [rsp + 0x60]
call fcn.140027510
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xd0]
call fcn.1400c20e0
movabs rax, 0xcbfd221128068638
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0xf6ded18574b70496
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x220], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x228], rax
vmovdqu xmm0, xmmword [rsp + 0x60]
vpxor xmm1, xmm0, xmmword [rbp + 0x220]
vmovdqu xmmword [rsp + 0x60], xmm1
lea rax, [0x14010db18]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0x180], rsi
mov qword [rbp + 0x1a8], rsi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rbp + 0x1b0], xmm0
mov dword [rsp + 0x38], 3
lea r14, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x178], r14
mov dword [rbp + 0x174], 0x98
xor r8d, r8d
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0x178]
call fcn.1400412b0
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xd0], rsi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call fcn.14004fb70
nop
mov edi, 2
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xd8]
call fcn.14004fad0
lea ebx, [rdi + 4]
test rax, rax
jne 0x14004ceca
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx + 0x118], 0
cmovne eax, edi
or eax, dword [rbp + rcx + 0xe0]
and eax, 0x17
mov dword [rbp + rcx + 0xe0], eax
mov edx, dword [rbp + rcx + 0xe4]
and edx, eax
jne 0x14004d059
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
lea rcx, [rbp + 0xd0]
call fcn.140050e70
lea rcx, [rbp + 0xd8]
call fcn.14004f9d0
test rax, rax
jne 0x14004cf3c
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0x118], 0
cmovne ebx, edi
or ebx, dword [rbp + rcx + 0xe0]
and ebx, 0x17
mov dword [rbp + rcx + 0xe0], ebx
mov eax, dword [rbp + rcx + 0xe4]
and eax, ebx
jne 0x14004d00a
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rsi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call fcn.14004f0c0
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], r14
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xcc], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 0x178]
call fcn.1400bdec8
nop
lea rcx, [rbp + 0x90]
call fcn.140027510
nop
lea rcx, [rbp + 0xb0]
call fcn.140027510
nop
movzx edx, byte [rbp + 0x80]
lea rcx, [rbp + 0x88]
call fcn.140026ed0
nop
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400bf1c0
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x14004d017
lea rbx, str.ios_base::badbit_set
jmp 0x14004d02b
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.1400349f0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.1400351d0
lea rdx, [0x1401315a8]
lea rcx, [rbp + 0x58]
call fcn.1400c1948
nop
test dl, 4
je 0x14004d067
lea rbx, str.ios_base::badbit_set
jmp 0x14004d07c
test dil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.1400349f0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.1400351d0
lea rdx, [0x1401315a8]
lea rcx, [rbp + 0x30]
call fcn.1400c1948
int3