Function at 0x180077780
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 [0x1802b1080]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], r8
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov rcx, qword [rdx + 0x10]
mov rax, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1800777da
mov rax, qword [rdx]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rcx
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180062570
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x20]
call fcn.18012dd84
mov edx, eax
test eax, eax
jne 0x180077877
mov ecx, dword [rbp - 0x10]
test cl, 1
mov eax, 0x1ff
mov r8d, 0x16d
cmovne eax, r8d
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 0xa
test al, 1
je 0x18007786c
mov eax, dword [rbp - 0xc]
cmp eax, 0xa000000c
jne 0x18007785e
mov ecx, 4
jmp 0x18007789b
cmp eax, 0xa0000003
jne 0x18007786c
mov ecx, 0xa
jmp 0x18007789b
shr ecx, 4
and ecx, 1
or ecx, 2
jmp 0x18007789b
mov dword [rsp + 0x34], 0xffff
sub eax, 2
je 0x180077896
sub eax, 1
je 0x180077896
sub eax, 0x32
je 0x180077896
cmp eax, 0x46
mov ecx, r15d
jne 0x18007789b
mov ecx, 1
mov dword [rsp + 0x30], edx
lea rax, [0x1801ae8e0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ecx, ecx
je 0x180077ad2
cmp ecx, 1
sete r14b
lea rcx, [rsp + 0x58]
call fcn.180072440
test r14b, r14b
je 0x180077ae2
movsd xmm0, qword [str.s___]
movsd qword [rsp + 0x40], xmm0
mov edx, dword [0x180140d80]
mov dword [rsp + 0x48], edx
movzx eax, word [0x180140d84]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x180140d86]
mov byte [rsp + 0x4e], al
mov ecx, r15d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x180077a61
movdqa xmm5, xmmword [0x180143550]
movdqa xmm2, xmmword [0x18013cb90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.6666]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x180143490]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555]
movd xmm0, dword [str.s___]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm2, xmmword [0x1801433e0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.6666]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555]
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movdqa xmm3, xmmword [0x1801433f0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.6666]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [str.5555555555555555]
movd xmm0, edx
xorps xmm3, xmm0
movd dword [rsp + 0x48], xmm3
mov ecx, ntohl
mov eax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax + 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, 0x35
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x180077a70
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180077ab6
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18003d5d0
jmp 0x180077cb9
mov r14b, 1
test edx, edx
jne 0x180077d39
jmp 0x1800778c5
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180077b00
mov rdx, qword [rdi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rcx, [rbp]
call fcn.18006cbf0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], r12
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
mov qword [rbp - 0x50], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rsp + 0x78]
lea rdx, [rbp]
lea rcx, [rbp - 0x30]
call fcn.18006a2f0
nop
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.18004fff0
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.18006f780
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x50], Ordinal_35
cmp byte [rax], 3
jne 0x180077cee
mov rdx, qword [rax + 8]
cmp rbx, rdx
je 0x180077bc3
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x180077bba
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1800499a0
nop
movzx edx, byte [rbp - 0x30]
cmp dl, 1
jne 0x180077bf4
cmp qword [rbp - 0x28], 0
jne 0x180077c6f
mov r8d, 0x4e12
lea rdx, str.E:ProjectsStanExecutor_srcmiscjson.hpp
lea rcx, str.m_data.m_type___value_t::object__m_data.m_value.object___nullptr
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
movzx edx, byte [rbp - 0x30]
cmp dl, 2
jne 0x180077c1d
cmp qword [rbp - 0x28], 0
jne 0x180077c6f
mov r8d, 0x4e13
lea rdx, str.E:ProjectsStanExecutor_srcmiscjson.hpp
lea rcx, str.m_data.m_type___value_t::array__m_data.m_value.array___nullptr
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
movzx edx, byte [rbp - 0x30]
cmp dl, 3
jne 0x180077c46
cmp qword [rbp - 0x28], 0
jne 0x180077c6f
mov r8d, 0x4e14
lea rdx, str.E:ProjectsStanExecutor_srcmiscjson.hpp
lea rcx, str.m_data.m_type___value_t::string__m_data.m_value.string___nullptr
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
movzx edx, byte [rbp - 0x30]
cmp dl, 8
jne 0x180077c6f
cmp qword [rbp - 0x28], 0
jne 0x180077c6f
mov r8d, 0x4e15
lea rdx, str.E:ProjectsStanExecutor_srcmiscjson.hpp
lea rcx, str.m_data.m_type___value_t::binary__m_data.m_value.binary___nullptr
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
movzx edx, byte [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.180072cc0
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], r12
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.18006ea10
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 rcx, rdi
call fcn.18003e1a0
nop
mov rcx, rsi
call fcn.18003e1a0
mov rax, rbx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18012eac0
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r14
call fcn.18008acb0
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rsp + 0x58]
call fcn.180064160
nop
mov r9, r14
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x78]
call fcn.180064e90
lea rdx, [0x1801a89d8]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.1800722d0
int3