Function at 0x140046f60
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 0x140046fbe
mov r13, qword [rdx]
lea r14, [rdx + 0x10]
call fcn.1400d432c
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.1400454a0
nop
lea rcx, [rsp + 0x70]
call fcn.140045e90
movzx r13d, al
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14004703d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047038
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047271
lea r14, [rbx + 0x10]
lea r15, [rbx + 0x18]
call fcn.1400d317c
test r13b, r13b
jne 0x140047286
movsd xmm0, qword [str.u_YS]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x1400f9ca0]
mov dword [rsp + 0x48], eax
movzx eax, word [0x1400f9ca4]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x1400f9ca6]
mov byte [rsp + 0x4e], al
xor r14d, r14d
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140047183
movdqa xmm4, xmmword [0x1400fa5e0]
movdqa xmm2, xmmword [0x1400fa220]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400fa250]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400fa320]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400fa4b0]
movd xmm0, dword [str.u_YS]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x1400fa240]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400fa250]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400fa320]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400fa4b0]
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
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x140047190
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1400471d6
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005ab10
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140047223
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004721e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047278
mov rcx, r8
call fcn.1400d317c
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 0x140047268
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140047263
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004727f
mov rcx, r8
call fcn.1400d317c
mov qword [rsi + 0x10], r14
jmp 0x1400473f7
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.1400566e0
nop
xor r13d, r13d
mov qword [rbp - 0x38], r13
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140059a80
nop
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140057000
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140056ad0
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_41
cmp byte [rax], 3
jne 0x140047427
mov rdx, qword [rax + 8]
mov r12, r15
cmp rdi, rdx
je 0x140047319
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140047310
mov rdx, qword [rdx]
lea r14, [rbx + 0x10]
lea r12, [rbx + 0x18]
mov rcx, rdi
call fcn.140059380
nop
lea rcx, [rsp + 0x60]
call fcn.140058980
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140058500
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.140056670
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 0x1400473af
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400473aa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047419
mov rcx, r8
call fcn.1400d317c
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 0x1400473f3
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400473ee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047420
mov rcx, r8
call fcn.1400d317c
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.1400588f0
mov qword [rbp + 0x148], rax
lea r8, [rbp + 0x148]
lea rcx, [rsp + 0x40]
call fcn.14006ac30
nop
mov r8, rax
lea rcx, [rbp - 0x70]
call fcn.14006ace0
lea rdx, [0x140109fb8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3