Function at 0x180066de0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor esi, esi
mov dword [rsp + 0x20], esi
cmp byte [reloc.WS2_32.dll_accept], sil
je 0x1800674f7
mov r12, qword [0x1800ff0a0]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], esi
mov rax, qword [r12 + 8]
sub rax, qword [r12]
sar rax, 3
test rax, rax
je 0x1800674f7
xor r13d, r13d
mov qword [rsp + 0x38], r13
nop dword [rax]
nop word [rax + rax]
lea rdx, [0x1800ff270]
mov qword [rsp + 0x48], rdx
nop dword [rax]
mov dword [rsp + 0x20], esi
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rcx
sar rax, 3
cmp rax, r13
jbe 0x180067524
mov r13, qword [rcx + r13*8]
lea rdi, [r13 + 0xd0]
mov rsi, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x180066ea9
mov r14, qword [rdx]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180066eb7
mov rdi, qword [rdi]
cmp rsi, rax
ja 0x180066f28
sub rax, rsi
test rsi, rsi
je 0x180067067
lea r15, [rax + rdi]
movsx r12d, byte [r14]
lea r8, [r15 + 1]
sub r8, rdi
mov edx, r12d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x180066f23
nop word [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180067055
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180066ef0
mov r12, qword [rsp + 0x28]
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rcx
sar rax, 3
mov r13, qword [rsp + 0x38]
cmp rax, r13
jbe 0x180067542
mov rdi, qword [rcx + r13*8]
add rdi, 0xd0
mov dword [rsp + 0x60], 0x80839193
mov dword [rsp + 0x64], 0x8290c881
mov dword [rsp + 0x68], 0x87898080
mov dword [rsp + 0x6c], 0x1009e89
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x20]
xor byte [rsp + rcx + 0x60], al
inc rcx
cmp rcx, 0xe
jb 0x180066f80
mov byte [rsp + 0x6f], 0
mov word [rbp - 0x72], 0
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohl
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [rsp + 0x68]
mov dword [rbp - 0x78], eax
movzx eax, word [rsp + 0x6c]
mov word [rbp - 0x74], ax
mov r15d, dword [rsp + 0x20]
or r15d, 3
mov dword [rsp + 0x20], r15d
lea rcx, [rbp - 0x80]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180066fe6
mov rdi, qword [rdi]
cmp rax, 0xe
jb 0x18006708c
lea rsi, [rax + rdi]
movsx r14d, byte [rcx]
lea r8, [rsi - 0xd]
sub r8, rdi
mov edx, r14d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x180067091
mov dword [rsp + 0x20], r15d
nop word [rax + rax]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x80]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180067079
inc rbx
lea r8, [rsi - 0xd]
sub r8, rbx
mov edx, r14d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180067020
jmp 0x180067091
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x180066f23
mov r12, qword [rsp + 0x28]
mov rax, qword [r13]
mov rdx, qword [rax + 0x48]
mov rcx, r13
call rdx
jmp 0x180066f28
sub rbx, rdi
mov dword [rsp + 0x20], r15d
cmp rbx, 0xffffffffffffffff
je 0x180067091
call fcn.18005fe40
mov dword [rsp + 0x20], r15d
mov rdi, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rdi
sar rax, 3
cmp rax, r13
jbe 0x18006753c
mov rdi, qword [rdi + r13*8]
add rdi, 0xd0
mov dword [rsp + 0x50], 0x80839193
mov dword [rsp + 0x54], 0x8885c881
mov dword [rsp + 0x58], 0x1008c9a
xor ecx, ecx
nop
lea eax, [rcx - 0x20]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0xa
jb 0x1800670d0
mov byte [rsp + 0x5b], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0xa
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbp - 0x80], xmm0
movzx eax, word [rsp + 0x58]
mov word [rbp - 0x78], ax
mov byte [rbp - 0x76], 0
lea rcx, [rbp - 0x80]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180067126
mov rdi, qword [rdi]
cmp rax, 0xa
jb 0x18006721e
lea rsi, [rax + rdi]
movsx r14d, byte [rcx]
lea r8, [rsi - 9]
sub r8, rdi
mov edx, r14d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18006721e
nop word [rax + rax]
mov r8d, 0xa
lea rdx, [rbp - 0x80]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180067198
inc rbx
lea r8, [rsi - 9]
sub r8, rbx
mov edx, r14d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180067160
jmp 0x18006721e
sub rbx, rdi
mov edi, r15d
mov dword [rsp + 0x20], r15d
cmp rbx, 0xffffffffffffffff
je 0x18006721e
call fcn.18005fe40
lea rax, vtable.std::_Func_impl_no_alloc_class__void___cdecl_script::blockspacecore_void_::_2::_lambda_1___void__class_fx::ResourceImpl____ptr64_.0
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x28], rcx
mov rax, qword [0x1800ff0a0]
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
mov dword [rsp + 0x20], r15d
cmp rbx, rsi
je 0x180067209
mov dword [rsp + 0x20], r15d
nop
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x18006752a
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 8
mov rcx, qword [rbp - 0x28]
cmp rbx, rsi
jne 0x1800671e0
test rcx, rcx
je 0x18006721e
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rdi, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rdi
sar rax, 3
cmp rax, r13
jbe 0x180067536
mov rdi, qword [rdi + r13*8]
add rdi, 0xd0
mov dword [rsp + 0x70], 0x86968f89
mov dword [rsp + 0x74], 0x93858496
mov dword [rsp + 0x78], 0x98848681
mov word [rsp + 0x7c], 0x100
xor eax, eax
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x20]
xor byte [rsp + rax + 0x70], cl
inc rax
cmp rax, 0xc
jb 0x180067270
mov byte [rsp + 0x7d], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], ntohs
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [rsp + 0x70]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x78], eax
mov byte [rbp - 0x74], 0
mov esi, dword [rsp + 0x20]
or esi, 0x3c
mov dword [rsp + 0x20], esi
lea r15, [rbp - 0x80]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1800672cf
mov rdi, qword [rdi]
cmp rax, 0xc
jb 0x18006733a
lea rsi, [rdi + rax]
movsx r14d, byte [r15]
lea r8, [rsi - 0xb]
sub r8, rdi
mov edx, r14d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x180067336
nop word [rax + rax]
mov r8d, ntohs
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180067492
inc rbx
lea r8, [rsi - 0xb]
sub r8, rbx
mov edx, r14d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180067300
mov esi, dword [rsp + 0x20]
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1800673ae
lea rax, vtable.std::_Func_impl_no_alloc_class__void___cdecl_script::blockinteractions_void_::_2::_lambda_1___void__class_fx::ResourceImpl____ptr64_.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x18], rcx
mov rax, qword [0x1800ff0a0]
mov rbx, qword [rax]
mov rdi, qword [rax + 8]
cmp rbx, rdi
je 0x180067399
nop dword [rax]
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x180067530
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 8
mov rcx, qword [rbp + 0x18]
cmp rbx, rdi
jne 0x180067370
test rcx, rcx
je 0x1800673ae
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rdx, qword [rsp + 0x48]
add rdx, 0x20
mov qword [rsp + 0x48], rdx
lea rax, [0x1800ff2b0]
cmp rdx, rax
jne 0x180066e70
lea r14, [0x1800ff180]
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rdi
sar rax, 3
cmp rax, r13
jbe 0x180067524
mov rdi, qword [rdi + r13*8]
add rdi, 0xd0
mov rsi, qword [r14 + 0x10]
mov r15, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180067415
mov r15, qword [r14]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180067423
mov rdi, qword [rdi]
cmp rsi, rax
ja 0x1800674ac
sub rax, rsi
test rsi, rsi
je 0x1800674a7
lea r12, [rax + rdi]
movsx r13d, byte [r15]
lea r8, [r12 + 1]
sub r8, rdi
mov edx, r13d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1800674ac
nop word [rax + rax]
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18006749e
inc rbx
lea r8, [r12 + 1]
sub r8, rbx
mov edx, r13d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180067460
jmp 0x1800674ac
sub rbx, rdi
mov esi, dword [rsp + 0x20]
jmp 0x180067341
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x1800674ac
call fcn.18005e1b0
add r14, 0x20
lea rax, [0x1800ff240]
cmp r14, rax
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
jne 0x1800673e0
mov ecx, dword [rsp + 0x30]
inc ecx
mov dword [rsp + 0x30], ecx
mov r13d, ecx
mov qword [rsp + 0x38], r13
mov rax, qword [r12 + 8]
sub rax, qword [r12]
sar rax, 3
cmp r13, rax
jae 0x1800674f7
mov esi, dword [rsp + 0x20]
jmp 0x180066e60
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800b5ef0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18005fc40
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call fcn.18005fc40
int3
call fcn.18005fc40
int3
call fcn.18005fc40
int3