Function at 0x140004560
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1401a80c0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov rcx, qword [rdx + 0x10]
mov rax, rdx
lea r12d, [r15 + 0xf]
cmp qword [rdx + 0x18], r12
jbe 0x1400045bd
mov rax, qword [rdx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14001c5b8
nop
lea rcx, [rsp + 0x60]
call fcn.14000396c
mov bl, al
lea rcx, [rsp + 0x60]
call fcn.140011e3c
test bl, bl
jne 0x140004704
movsd xmm0, qword [str.w__Q]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x14017d288]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14017d28c]
mov word [rsp + 0x3c], ax
mov al, byte [0x14017d28e]
mov byte [rsp + 0x3e], al
mov r8d, r15d
lea r9, [rsp + 0x30]
mov eax, 0xa0a0a0a1
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x33
mov al, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
inc r9
cmp r8d, r12d
jl 0x14000462b
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r15b
jne 0x140004669
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140005990
nop
mov rdx, qword [rdi + 0x18]
mov ebx, 0x1000
cmp rdx, r12
jbe 0x1400046b6
mov rcx, qword [rdi]
inc rdx
cmp rdx, rbx
jb 0x1400046b1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400046fd
mov rcx, r8
call fcn.140148f04
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov byte [rdi], r15b
mov rdx, qword [rsi + 0x18]
cmp rdx, r12
jbe 0x14000484a
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x140004845
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140004842
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
lea rcx, [rbp]
call fcn.14001007c
nop
mov qword [rbp - 0x48], r15
lea r8, [rbp - 0x80]
lea rdx, [rbp]
lea rcx, [rbp - 0x10]
call fcn.140012cd8
nop
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14000cc74
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14001041c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r12
mov byte [r14], r15b
mov dword [rsp + 0x40], reloc.WS2_32.dll_select
cmp byte [rax], 3
jne 0x140004887
mov rdx, qword [rax + 8]
mov rcx, r14
call fcn.14001fe5c
nop
mov dl, byte [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.140011790
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.140010010
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x18]
mov ebx, 0x1000
cmp rdx, r12
jbe 0x14000480e
mov rcx, qword [rdi]
inc rdx
cmp rdx, rbx
jb 0x140004809
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004879
mov rcx, r8
call fcn.140148f04
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov byte [rdi], r15b
mov rdx, qword [rsi + 0x18]
cmp rdx, r12
jbe 0x14000484a
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x140004845
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004880
mov rcx, r8
call fcn.140148f04
mov rax, r14
mov byte [rsi], r15b
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140148a70
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140011c24
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.14001ff2c
nop
mov r8, rax
lea rcx, [rbp - 0x80]
call fcn.14001ffd8
lea rdx, [0x1401a2d88]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3