Function at 0x140005960
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1400a7080]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, r8
mov rbx, rdx
mov rsi, 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
cmp qword [rdx + 0x18], 0xf
jbe 0x1400059bb
mov rax, qword [rdx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
call fcn.14008259c
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140003570
mov dword [rsp + 0x40], 6
lea rcx, [rsp + 0x60]
call fcn.140003f70
movzx r14d, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140005a41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082e6c
movdqa xmm0, xmmword [0x140098f10]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
test r14b, r14b
jne 0x140005bc5
mov byte [rsp + 0x30], Ordinal_200
mov byte [rsp + 0x31], 0xed
mov byte [rsp + 0x32], 0xe2
mov byte [rsp + 0x33], 0xe2
mov byte [rsp + 0x34], 0xab
mov byte [rsp + 0x35], Ordinal_217
mov byte [rsp + 0x36], 0xf6
mov byte [rsp + 0x37], 0xe4
mov byte [rsp + 0x38], 0xb8
mov byte [rsp + 0x39], 0xdb
mov byte [rsp + 0x3a], 0xf0
mov byte [rsp + 0x3b], 0xee
mov byte [rsp + 0x3c], 0xf4
mov byte [rsp + 0x3d], 0xf0
mov byte [rsp + 0x3e], __WSAFDIsSet
movzx eax, byte [rsp + 0x30]
mov r9, r15
movabs r11, 0xdfcdda9b2894938b
mov r10, r11
lea rax, [rsp + 0x30]
sub r10, rax
mov r14d, reloc.WS2_32.dll_ntohs
nop dword [rax]
lea r8, [rsp + 0x30]
add r8, r9
mov rcx, r9
and ecx, r14d
cmp rcx, r14
cmovae rcx, r14
shl cl, 2
mov rdx, r11
shr rdx, cl
and dl, r14b
lea eax, [r10 + r8]
xor dl, al
movzx eax, byte [r8]
xor dl, al
mov byte [rsp + r9 + 0x30], dl
inc r9
cmp r9, r14
jb 0x140005ad0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140005b24
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140012e70
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005b72
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005b6d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005bbe
mov rcx, r8
call fcn.140082e6c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r14
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140005d26
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005d21
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140005d1e
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, rbx
lea rcx, [rbp]
call fcn.14000e910
nop
mov qword [rbp - 0x48], r15
lea r8, [rbp - 0x80]
lea rdx, [rbp]
lea rcx, [rbp - 0x10]
call fcn.140011eb0
nop
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000f260
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14000ed30
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], r14
mov byte [rsi], 0
mov dword [rsp + 0x40], Ordinal_45
cmp byte [rax], 3
jne 0x140005d68
mov rdx, qword [rax + 8]
cmp rsi, rdx
je 0x140005c5a
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], r14
jbe 0x140005c51
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140011900
nop
movzx edx, byte [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.140010750
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.14000e8a0
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 [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005ce5
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005ce0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005d5a
mov rcx, r8
call fcn.140082e6c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r14
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140005d26
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005d21
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005d61
mov rcx, r8
call fcn.140082e6c
mov rax, rsi
mov byte [rdi], 0
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x10], r15
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140082b00
mov rbx, qword [rsp + 0x268]
add rsp, 0x220
pop r15
pop r14
pop rdi
pop rsi
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
mov rcx, rax
call fcn.140010c50
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.14001fa40
nop
mov r8, rax
lea rcx, [rbp - 0x80]
call fcn.14001faf0
lea rdx, [0x1400a3780]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3