Function at 0x1400393d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], 0
lea r14, [rdx + 0x10]
mov rax, qword [r14]
mov qword [rbp + 0x148], rax
mov r13, rdx
lea r15, [rdx + 0x18]
cmp qword [rdx + 0x18], 0xf
jbe 0x14003942e
mov r13, qword [rdx]
lea r14, [rdx + 0x10]
call fcn.1400bd2e0
mov qword [rsp + 0x40], r13
mov rcx, qword [rbp + 0x148]
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140037e10
nop
lea rcx, [rsp + 0x70]
call fcn.1400386d0
movzx r13d, al
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x1400394ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400394a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400396fb
lea r14, [rbx + 0x10]
lea r15, [rbx + 0x18]
call fcn.1400bc4a0
test r13b, r13b
jne 0x140039710
movsd xmm0, qword [str.w__Q]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x14013b640]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14013b644]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x14013b646]
mov byte [rsp + 0x4e], al
xor r14d, r14d
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400395fb
movdqa xmm4, xmmword [0x14013c4b0]
movdqa xmm2, xmmword [0x14013c360]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013c380]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14013c3e0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, dword [str.w__Q]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x14013c370]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013c380]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14013c3e0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x140039610
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140039660
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14004b380
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400396ad
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400396a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039702
mov rcx, r8
call fcn.1400bc4a0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x1400396f2
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400396ed
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039709
mov rcx, r8
call fcn.1400bc4a0
mov qword [rsi + 0x10], r14
jmp 0x140039877
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140046700
nop
xor r13d, r13d
mov qword [rbp - 0x38], r13
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400498e0
nop
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140047150
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140046aa0
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r13b
mov dword [rsp + 0x30], Ordinal_45
cmp byte [rax], 3
jne 0x1400398a7
mov rdx, qword [rax + 8]
mov r12, r15
cmp rdi, rdx
je 0x1400397a3
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14003979a
mov rdx, qword [rdx]
lea r14, [rbx + 0x10]
lea r12, [rbx + 0x18]
mov rcx, rdi
call fcn.140058200
nop
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140048580
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_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 - 0xb0]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x20]
call fcn.140046690
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 + 0x80]
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 [r15]
cmp rdx, 0xf
jbe 0x14003982f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14003982a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039899
mov rcx, r8
call fcn.1400bc4a0
mov qword [r14], r13
mov qword [r12], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140039873
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14003986e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400398a0
mov rcx, r8
call fcn.1400bc4a0
mov qword [rsi + 0x10], r13
mov rax, rdi
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
add rsp, 0x1e8
pop r15
pop r14
pop r13
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
mov rcx, rax
call fcn.140048a20
mov qword [rbp + 0x148], rax
lea r8, [rbp + 0x148]
lea rcx, [rsp + 0x40]
call fcn.140058370
nop
mov r8, rax
lea rcx, [rbp - 0x70]
call fcn.140058420
lea rdx, [0x14014a570]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3