Function at 0x180110ba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1802407e8]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r15d, r15d
lea rcx, [rbp - 0x50]
call fcn.18010f8d0
nop
lea rcx, [rbp - 0x70]
call fcn.18010fce0
mov r14, rax
cmp qword [rax + 0x18], 0x10
jb 0x180110bfd
mov r14, qword [rax]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x180110c10
call fcn.180179f44
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1800dead0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.18010efc0
nop
lea rcx, [rsp + 0x60]
call fcn.1800e8670
nop
lea rcx, [rbp - 0x70]
call fcn.1800db3e0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call fcn.1801a1dc0
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1800fc040
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
mov r12d, 2
mov r8d, r12d
lea rcx, [rbp - 0x30]
call fcn.180111a20
nop
lea rcx, [rbp - 0x70]
call fcn.1800db3e0
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800fc040
nop
lea r14, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r14, qword [rsp + 0x40]
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x180110d20
call fcn.180179f44
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1800dead0
nop
lea rcx, [rsp + 0x60]
call fcn.1800df180
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.1800e8670
nop
lea rcx, [rsp + 0x40]
call fcn.1800db3e0
test bl, bl
jne 0x180110e04
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
xor r8d, r8d
lea rdx, [0x18020734d]
mov rcx, rsi
call fcn.1800dd050
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1800e6110
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rbp + rdx - 0x34], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.1801798c8
nop
jmp 0x180110fa2
lea rcx, [rbp - 0x28]
call fcn.1800e7ad0
test rax, rax
jne 0x180110e40
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x18], 0
cmovne eax, r12d
or eax, dword [rbp + rcx - 0x20]
and eax, 0x17
mov dword [rbp + rcx - 0x20], eax
mov edx, dword [rbp + rcx - 0x1c]
and edx, eax
jne 0x180110fd9
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800fc040
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
nop word [rax + rax]
inc rdi
cmp byte [rdx + rdi], 0
jne 0x180110ea0
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.1800dd050
mov r9d, r15d
cmp qword [rsp + 0x50], r9
jbe 0x180110f01
mov r8, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1802449e8]
movzx edx, word [rax + 0x60]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
xor byte [r8 + rcx], dl
inc r9d
lea r8, [r8 + 1]
movsxd rax, r9d
cmp rax, qword [rsp + 0x50]
jb 0x180110ed0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.1800db3e0
nop
lea rcx, [rsp + 0x60]
call fcn.1800db3e0
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1800e6110
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.1801798c8
nop
lea rcx, [rbp - 0x50]
call fcn.1800e8670
mov rax, rsi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.18015c7e0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test dl, 4
je 0x180110fe7
lea rbx, str.ios_base::badbit_set
jmp 0x180110ffc
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.1800d7ec0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1800d8740
lea rdx, [0x18023e250]
lea rcx, [rsp + 0x60]
call fcn.1801a14b4
int3