Function at 0x14006f560
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbx
push rbp
push r14
push r15
sub rsp, 0xa8
mov rbx, qword [rcx]
movzx r10d, byte [rcx + 0x1e2]
mov r15d, r8d
bt dword [rbx + 0x18], 0x1a
mov r14, rdx
mov rbp, rcx
jae 0x14006fb3d
mov rcx, qword [rdx + 0x78]
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], rdi
mov edi, 0xfff0bdc0
xor edx, edx
mov qword [rax - 0x40], r13
mov dword [rsp + 0xd0], edi
test rcx, rcx
je 0x14006f5eb
cmp dword [rbx + 8], edx
mov edi, edx
mov dword [rsp + 0xd0], edx
jle 0x14006f5eb
mov rax, qword [rbx + 0x10]
add rax, 0x18
cmp qword [rax], rcx
je 0x14006f5e4
inc edi
add rax, 0x20
cmp edi, dword [rbx + 8]
jl 0x14006f5d4
mov dword [rsp + 0xd0], edi
mov rax, qword [rbx + 0x10]
mov rsi, qword [r14 + 0x38]
movsxd rcx, edi
shl rcx, 5
mov qword [rsp + 0x90], r12
mov r13, r10
mov rax, qword [rcx + rax]
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x14006f821
nop dword [rax]
cmp byte [rbp + 0x1e2], 0
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x50], edx
je 0x14006f64b
mov rdx, qword [rsi + 0x10]
mov r8, rax
mov rcx, rbx
call fcn.140062070
mov r12, rax
jmp 0x14006f65f
mov r8, qword [rsi + 0x10]
mov r9, rax
xor edx, edx
mov rcx, rbp
call fcn.140062200
mov r12, rax
test r12, r12
je 0x14006f7e7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov r8, rsi
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14006dda0
test eax, eax
jne 0x14006f7e7
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14006f69c
mov r14, rax
jmp 0x14006f6a8
mov eax, dword [rsi + 0x40]
lea r14, [rsp + 0x54]
mov dword [rsp + 0x54], eax
mov r15, qword [rsp + 0x60]
xor r13d, r13d
cmp dword [rsi + 0x28], r13d
jle 0x14006f73d
xor edi, edi
nop dword [rax]
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
cmp dword [rdi + r14], eax
jne 0x14006f6d9
mov dword [rdi + r14], 0xffffffff
cmp qword [rbx + 0x188], 0
je 0x14006f729
test r15, r15
je 0x14006f6f1
mov rax, qword [r15 + 0x10]
mov ecx, dword [rdi + rax]
jmp 0x14006f6f6
mov ecx, dword [r12 + 8]
mov r9d, dword [rsp + 0xd0]
mov rdx, qword [r12]
movsxd rax, ecx
lea r8, [rax + rax*2]
mov rax, qword [r12 + 0x10]
mov rcx, rbp
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.140061700
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [rsp + 0x50], ecx
inc r13d
add rdi, 4
cmp r13d, dword [rsi + 0x28]
jl 0x14006f6c0
mov edi, dword [rsp + 0xd0]
mov rax, qword [r12]
mov r8d, dword [r12 + 0x20]
xor r9d, r9d
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400619c0
mov eax, dword [rsp + 0xe0]
inc dword [rbp + 0x54]
test eax, eax
je 0x14006f798
mov r13d, dword [rsp + 0x50]
mov r9, r15
mov r8, r12
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], eax
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
call fcn.14006e110
jmp 0x14006f79d
mov r13d, dword [rsp + 0x50]
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x14006f7d3
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], eax
mov r9, r15
mov r8, r12
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
call fcn.14006e110
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400249c0
mov r13, qword [rsp + 0x68]
jmp 0x14006f7fa
test r13, r13
je 0x14006fb1d
cmp byte [rbx + 0x2a], 0
jne 0x14006fb1d
mov rsi, qword [rsi + 8]
mov rax, qword [rsp + 0x70]
mov edx, 0
test rsi, rsi
jne 0x14006f620
mov r14, qword [rsp + 0xd8]
mov r15d, dword [rsp + 0xe0]
mov r11, qword [r14]
mov r8, r11
test r11, r11
jne 0x14006f831
mov r8d, edx
jmp 0x14006f84a
cmp byte [r11], 0
je 0x14006f840
inc r8
cmp byte [r8], 0
jne 0x14006f837
sub r8d, r11d
and r8d, 0x3fffffff
mov rdi, qword [r14 + 0x78]
cmp qword [rdi + 0x60], 0
je 0x14006f893
mov r9d, r8d
mov r10, r11
mov eax, edx
test r8d, r8d
jle 0x14006f88e
lea rsi, [0x140113150]
nop dword [rax]
movzx ecx, byte [r10]
dec r9d
inc r10
movzx edx, byte [rcx + rsi]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r9d, r9d
jg 0x14006f870
xor edx, edx
div dword [rdi + 0x50]
mov r9d, edx
lea rcx, [rdi + 0x50]
mov rdx, r11
call fcn.140028410
test rax, rax
je 0x14006fb1d
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x14006fb1d
mov r12d, WSAAsyncSelect
nop
cmp byte [rsi + 0x2c], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
jne 0x14006f8ef
cmp qword [rbp + 0x1c8], 0
jne 0x14006f8ef
cmp byte [rbp + 0x168], 0
je 0x14006fb0b
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14006dda0
test eax, eax
je 0x14006f928
test r13, r13
je 0x14006fb1d
cmp byte [rbx + 0x2a], 0
jne 0x14006fb1d
jmp 0x14006fb0b
cmp byte [rbx + 0x2a], 0
mov r13, qword [rsp + 0x60]
jne 0x14006fb00
cmp byte [rbx + 0x15a], 0
je 0x14006f950
cmp r12w, word [rbx + 0x158]
jbe 0x14006f99b
inc dword [rbx + 0x168]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x14006f9e5
mov rcx, qword [0x14014de40]
test rcx, rcx
je 0x14006f96f
call qword [0x1401440f0]
lea rdx, [rsp + 0xd0]
mov ecx, r12d
call fcn.1400244e0
mov rcx, qword [0x14014de40]
test rcx, rcx
je 0x14006f9db
call qword [0x140144100]
mov rdi, qword [rsp + 0xd0]
jmp 0x14006f9f9
mov rdi, qword [rbx + 0x170]
test rdi, rdi
jne 0x14006f9af
inc dword [rbx + 0x16c]
jmp 0x14006f950
mov rax, qword [rdi]
inc dword [rbx + 0x15c]
inc dword [rbx + 0x164]
mov qword [rbx + 0x170], rax
mov eax, dword [rbx + 0x15c]
cmp eax, dword [rbx + 0x160]
jle 0x14006fa02
mov dword [rbx + 0x160], eax
jmp 0x14006fa02
mov rdi, qword [rsp + 0xd0]
jmp 0x14006f9f9
mov ecx, r12d
call qword [0x140144090]
mov rdi, rax
mov qword [rsp + 0xd0], rax
test rdi, rdi
jne 0x14006fa02
mov byte [rbx + 0x2a], 1
test rdi, rdi
je 0x14006fb00
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.1400e1fc0
mov eax, 1
mov rdx, rdi
mov word [rdi + 2], ax
movsx r9d, word [rdi]
mov r8d, eax
mov rcx, rbx
call fcn.140066cf0
cmp byte [rbx + 0x2a], 0
mov rdi, rax
je 0x14006fa4c
mov rdx, rax
mov rcx, rbx
call fcn.140066fc0
jmp 0x14006fb00
movsx eax, word [rax]
mov r12, qword [rsp + 0x58]
dec eax
movsxd rcx, eax
xor eax, eax
imul rcx, rcx, 0x58
mov qword [rcx + rdi + 0x10], rax
mov qword [rcx + rdi + 8], rax
mov rdx, qword [rsi]
mov qword [rdi + 0x20], rdx
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
inc word [rdx + 0x30]
mov eax, dword [rbp + 0x54]
mov dword [rdi + 0x34], eax
mov eax, dword [rsp + 0xe8]
inc dword [rbp + 0x54]
test eax, eax
je 0x14006fab9
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], eax
mov r9, r12
mov r8, r14
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rsi
call fcn.14006ebb0
test r15d, r15d
je 0x14006fae7
mov eax, 1
mov r9, r12
mov r8, r14
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rsi
call fcn.14006ebb0
mov rdx, rdi
mov rcx, rbx
mov qword [rdi + 0x10], 0
call fcn.140066fc0
mov r12d, WSAAsyncSelect
mov rdx, r13
mov rcx, rbx
call fcn.1400249c0
mov rsi, qword [rsi + 0x18]
mov r13, qword [rsp + 0x68]
test rsi, rsi
jne 0x14006f8c0
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x88]
add rsp, 0xa8
pop r15
pop r14
pop rbp
pop rbx
ret