Function at 0x14001a030
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.0x14001a077
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 + 0x1a7f4]
add r10, rcx
jmp r10
mov rax, qword [rdx + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov r9, qword [rcx]
jne 0x14001a0a1
mov r8d, 2
lea rdx, [0x1400b462c]
call qword [r9 + ioctlsocket]
jmp 0x14001a772
test r8b, r8b
je 0x14001a28d
mov r8d, 2
lea rdx, [0x1400b4630]
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 0x14001a116
lea rcx, [rdi + 0x260]
add rdx, rdx
mov rax, qword [rcx + 0x10]
cmp rdx, rax
ja 0x14001a108
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x14001a0fe
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdx
mov byte [rax + rdx], 0
jmp 0x14001a116
sub rdx, rax
mov r8b, 0x20
call fcn.140017920
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 0x14001a1ee
nop word [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14001a15e
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.14001a820
mov rcx, qword [rdi]
lea rdx, [0x1400b4634]
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.14001a030
mov rcx, qword [rdi]
lea rdx, [0x1400b4638]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.140014fb0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jae 0x14001a1ee
mov r8d, r13d
jmp 0x14001a140
mov rcx, qword [rdi]
lea rsi, [rdi + 0x260]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rax, qword [rcx]
jb 0x14001a208
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.14001a820
mov rcx, qword [rdi]
lea rdx, [0x1400b4634]
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.14001a030
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 0x14001a275
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 0x14001a772
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 0x14001a33a
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.14001a820
mov rcx, qword [rdi]
lea rdx, [0x1400b463c]
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.14001a030
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.140014fb0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x14001a2c1
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.14001a820
mov rcx, qword [rdi]
lea rdx, [0x1400b463c]
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.14001a030
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14001a772
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
mov r9, qword [rcx]
cmp qword [rdx], rax
jne 0x14001a3bf
mov r8d, 2
lea rdx, [0x1400b4640]
call qword [r9 + ioctlsocket]
jmp 0x14001a772
test r8b, r8b
je 0x14001a532
mov r8d, 2
lea rdx, [0x1400b4644]
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 0x14001a430
lea rcx, [rdi + 0x260]
add rdx, rdx
mov rax, qword [rcx + 0x10]
cmp rdx, rax
ja 0x14001a425
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x14001a41b
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdx
mov byte [rax + rdx], 0
jmp 0x14001a430
sub rdx, rax
mov r8b, 0x20
call fcn.140017920
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x14001a4bb
nop dword [rax]
nop dword [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14001a46e
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.14001a030
mov rcx, qword [rdi]
lea rdx, [0x1400b4638]
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 0x14001a450
mov rcx, qword [rdi]
lea rbx, [rdi + 0x260]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov rax, qword [rcx]
jb 0x14001a4d5
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.14001a030
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 0x14001a51a
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 0x14001a772
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 0x14001a59a
nop word [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.14001a030
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 0x14001a560
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.14001a030
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14001a772
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.14001a820
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
jmp 0x14001a772
cmp byte [rdx + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 8]
je 0x14001a617
mov r8d, 4
lea rdx, str.true
call r9
jmp 0x14001a772
mov r8d, 5
lea rdx, str.false
call r9
jmp 0x14001a772
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
je 0x14001a6c1
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 0x14001a650
test r10, r10
jg 0x14001a695
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.140060aa4
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x14001a772
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
jne 0x14001a6d0
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x14001a772
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 0x14001a6e0
test r10, r10
jne 0x14001a71b
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.140060aa4
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x14001a772
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x78]
movsd xmm6, qword [rdx + 8]
movsd qword [rsp + 0x78], xmm6
call fcn.14008a320
test ax, ax
jle 0x14001a79a
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.140012bb0
mov rcx, qword [rdi]
sub rax, rbx
mov r8, rax
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + ioctlsocket]
jmp 0x14001a76d
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, recv
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x14001a772
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x14001a772