Function at 0x140014320
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
sub rsp, 0x50
movzx eax, byte [rdx]
movzx r14d, r9b
mov rbp, rdx
mov rdi, rcx
cmp eax, 8
ja case.default.0x140014367
mov qword [r11 + 8], rbx
lea rcx, [0x140000000]
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r15
mov r10d, dword [rcx + rax*4 + 0x14a94]
add r10, rcx
jmp r10
mov rax, qword [rdx + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov r9, qword [rcx]
jne 0x140014391
mov r8d, 2
lea rdx, [0x1400b4bf0]
call qword [r9 + ioctlsocket]
jmp 0x140014a12
test r8b, r8b
je 0x14001455d
mov r8d, 2
lea rdx, [0x1400b4bf4]
call qword [r9 + ioctlsocket]
mov r12d, dword [rsp + 0x90]
mov r15d, dword [rsp + 0x98]
mov rdx, qword [rdi + 0x270]
lea r13d, [r12 + r15]
mov r8d, r13d
cmp rdx, r8
jae 0x1400143e3
lea rcx, [rdi + 0x260]
add rdx, rdx
mov r8b, 0x20
call fcn.140018ca0
mov r8d, r13d
mov rax, qword [rbp + 8]
xor esi, esi
mov rbx, qword [rax]
mov rax, qword [rax + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp rax, 1
je 0x1400144be
nop dword [rax]
nop word [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14001442e
mov rdx, qword [rdi + 0x260]
call qword [rax + ioctlsocket]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.140014ac0
mov rcx, qword [rdi]
lea rdx, [0x1400b4bf8]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r13d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
lea rdx, [0x1400b4bfc]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.14000e5a0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jae 0x1400144be
mov r8d, r13d
jmp 0x140014410
mov rcx, qword [rdi]
lea rsi, [rdi + 0x260]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rax, qword [rcx]
jb 0x1400144d8
mov rdx, qword [rsi]
mov r8d, r13d
call qword [rax + ioctlsocket]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.140014ac0
mov rcx, qword [rdi]
lea rdx, [0x1400b4bf8]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r13d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rsi + 0x18], 0x10
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x140014545
mov rsi, qword [rsi]
mov r8d, r15d
mov rdx, rsi
call qword [rax + ioctlsocket]
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
mov dl, 0x7b
call qword [r9]
mov rax, qword [rbp + 8]
xor esi, esi
mov r15d, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x90]
mov rbx, qword [rax]
mov rax, qword [rax + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp rax, 1
je 0x14001460a
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.140014ac0
mov rcx, qword [rdi]
lea rdx, [0x1400b4c00]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.14000e5a0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x140014591
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.140014ac0
mov rcx, qword [rdi]
lea rdx, [0x1400b4c00]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
mov r9, qword [rcx]
cmp qword [rdx], rax
jne 0x14001468f
mov r8d, 2
lea rdx, [0x1400b4c04]
call qword [r9 + ioctlsocket]
jmp 0x140014a12
test r8b, r8b
je 0x1400147d3
mov r8d, 2
lea rdx, [0x1400b4c08]
call qword [r9 + ioctlsocket]
mov r15d, dword [rsp + 0x90]
mov esi, dword [rsp + 0x98]
mov rdx, qword [rdi + 0x270]
lea r12d, [r15 + rsi]
mov r13d, r12d
cmp rdx, r13
jae 0x1400146dd
lea rcx, [rdi + 0x260]
add rdx, rdx
mov r8b, 0x20
call fcn.140018ca0
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x14001475c
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14001470f
mov rdx, qword [rdi + 0x260]
mov r8, r13
call qword [rax + ioctlsocket]
movzx r9d, r14b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov dword [rsp + 0x20], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
lea rdx, [0x1400b4bfc]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov rax, qword [rbp + 8]
add rbx, 0x10
mov rcx, qword [rax + 8]
sub rcx, 0x10
cmp rbx, rcx
jne 0x1400146f1
mov rcx, qword [rdi]
lea rbx, [rdi + 0x260]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov rax, qword [rcx]
jb 0x140014776
mov rdx, qword [rbx]
mov r8, r13
call qword [rax + ioctlsocket]
mov rax, qword [rbp + 8]
movzx r9d, r14b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov rcx, rdi
mov dword [rsp + 0x20], r15d
mov rdx, qword [rax + 8]
sub rdx, 0x10
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x1400147bb
mov rbx, qword [rbx]
mov r8d, esi
mov rdx, rbx
call qword [rax + ioctlsocket]
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
mov dl, 0x5b
call qword [r9]
mov rdx, qword [rbp + 8]
mov esi, dword [rsp + 0x98]
mov r15d, dword [rsp + 0x90]
mov rax, qword [rdx + 8]
mov rbx, qword [rdx]
sub rax, 0x10
cmp rbx, rax
je 0x14001483a
nop dword [rax + rax]
mov dword [rsp + 0x28], esi
movzx r9d, r14b
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
add rbx, 0x10
mov rax, qword [rdx + 8]
sub rax, 0x10
cmp rbx, rax
jne 0x140014800
mov rdx, qword [rdx + 8]
movzx r9d, r14b
sub rdx, 0x10
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call fcn.140014320
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
movzx r8d, r14b
mov rcx, rdi
call fcn.140014ac0
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
cmp byte [rdx + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 8]
je 0x1400148b7
mov r8d, 4
lea rdx, str.true
call r9
jmp 0x140014a12
mov r8d, 5
lea rdx, str.false
call r9
jmp 0x140014a12
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
je 0x140014961
xor esi, esi
lea rbx, [rdi + 0x10]
movabs r11, 0x6666666666666667
nop dword [rax]
mov rax, r11
imul r9
mov r8, rdx
sar r8, 2
mov rcx, r8
shr rcx, 0x3f
add r8, rcx
lea ecx, [r8 + r8*4]
add ecx, ecx
sub r9d, ecx
mov eax, r9d
mov r9, r8
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [rsi + rbx], al
inc rsi
test r8, r8
jne 0x1400148f0
test r10, r10
jg 0x140014935
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.14005f038
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x140014a12
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
jne 0x140014970
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014a12
xor esi, esi
lea rbx, [rdi + 0x10]
movabs r11, 0xcccccccccccccccd
mov rax, r11
mul r9
mov r8, rdx
shr r8, 3
lea ecx, [r8 + r8*4]
add ecx, ecx
sub r9d, ecx
mov eax, r9d
mov r9, r8
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [rsi + rbx], al
inc rsi
test r8, r8
jne 0x140014980
test r10, r10
jne 0x1400149bb
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.14005f038
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x140014a12
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x78]
movsd xmm6, qword [rdx + 8]
movsd qword [rsp + 0x78], xmm6
call fcn.140089fa8
test ax, ax
jle 0x140014a3a
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
movaps xmm6, xmmword [rsp + 0x30]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
lea rbx, [rdi + 0x10]
movaps xmm2, xmm6
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.14000b460
mov rcx, qword [rdi]
sub rax, rbx
mov r8, rax
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + ioctlsocket]
jmp 0x140014a0d
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, recv
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x140014a12
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x140014a12