Function at 0x140004440
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
movaps xmmword [rsp + 0x240], xmm6
mov rax, qword [0x1400bd040]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov r15, qword [rdx + 0x10]
mov rsi, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400044a1
mov rsi, qword [rdx]
call fcn.1400922bc
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140002870
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002fa0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp], ecx
lea rax, [0x1400bd0c8]
mov qword [rbp + 8], rax
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp], xmm0
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140004702
cmp eax, 1
sete sil
lea rcx, [rsp + 0x70]
call fcn.14000ce50
test sil, sil
je 0x140004712
movups xmm0, xmmword [str.__VSYK_]
movups xmmword [rsp + 0x50], xmm0
mov eax, dword [0x14009a9a8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x14009a9ac]
mov word [rsp + 0x64], ax
movzx eax, byte [0x14009a9ae]
mov byte [rsp + 0x66], al
mov ecx, r12d
cmp dword [0x1400bd088], 2
jl 0x140004692
movdqa xmm5, xmmword [0x1400abcd0]
movdqa xmm4, xmmword [0x1400ac1e0]
movdqa xmm6, xmmword [0x1400abd90]
movdqa xmm0, xmmword [0x1400abe70]
movdqa xmmword [rbp], xmm0
lea rdx, [rsp + 0x54]
mov r8d, dword [rbp]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400abe50]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
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, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400abe50]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140004590
cmp ecx, 0x17
jge 0x1400046cc
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax]
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, 0x17
jl 0x1400046a0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400046e6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000e830
jmp 0x14000490a
mov sil, 1
test ecx, ecx
jne 0x140004980
jmp 0x140004508
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov rsi, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140004730
mov rsi, qword [rdi]
lea rax, [0x14009adb8]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 0xe
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], r15
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x30], rax
mov byte [rbp + 0xac], 0
mov byte [rbp + 0xa1], 0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xb0], r12
mov rax, qword [0x1401cb838]
mov qword [rbp + 0xa4], rax
mov qword [rbp + 0x98], r12
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.14000d4c0
test rax, rax
jne 0x140004809
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r15
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
mov qword [rbp - 0x30], r12
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x18]
call fcn.14000ded0
nop
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14000b720
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14000a5b0
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x30], 0x8e
cmp byte [rax], 3
jne 0x140004947
mov r9, qword [rax + 8]
cmp rbx, r9
je 0x1400048bc
mov rsi, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 0xf
jbe 0x140004895
mov r9, qword [r9]
mov rcx, rbx
cmp rsi, 0xf
ja 0x1400048b3
mov qword [rbx + 0x10], rsi
mov r8, rsi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x1400048bc
mov rdx, rsi
call fcn.14001ab80
nop
movzx edx, byte [rbp - 0x18]
lea rcx, [rbp - 0x10]
call fcn.14000c600
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r15
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.14000b260
lea rcx, [rbp + 0x38]
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 + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, rdi
call fcn.14000cec0
nop
mov rcx, r14
call fcn.14000cec0
mov rax, rbx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140092d60
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rax
call fcn.14000ca90
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rcx, [rbp]
call fcn.14001a950
nop
mov r8, rax
lea rcx, [rbp - 0x68]
call fcn.14001aa10
lea rdx, [0x1400b9550]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x70]
lea rdx, [rbp]
call fcn.140002e60
int3