Function at 0x14017f700
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x140634590]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rsi, qword [rbp + 0x5f8]
mov rdi, qword [rbp + 0x600]
mov r12d, edx
mov dword [rsp + 0x50], edx
xor edx, edx
mov dword [rsp + 0x54], r8d
mov rbx, rcx
lea r8d, [rdx + 0x44]
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov byte [0x14063d43a], 0
call fcn.140361a80
cmp r12d, 0x100
jbe 0x14017f77d
mov r14d, dword [rbx + 0x400]
jmp 0x14017f783
mov r14d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov edx, r12d
nop dword [rax]
mov eax, dword [rcx]
add rcx, 4
inc dword [rbp + rax*4 + 0x10]
dec edx
jne 0x14017f790
cmp dword [rbp + 0x10], r12d
jne 0x14017f7b0
xor eax, eax
mov qword [rsi], rax
mov dword [rdi], eax
jmp 0x14017fbc2
mov qword [rsp + 0x690], r15
mov r15d, 1
mov ecx, r15d
mov eax, ecx
cmp dword [rbp + rax*4 + 0x10], 0
jne 0x14017f7d1
inc ecx
cmp ecx, 0x10
jbe 0x14017f7c1
mov eax, dword [rdi]
mov r10d, ecx
mov dword [rsp + 0x20], ecx
cmp eax, ecx
mov edx, reloc.WS2_32.dll_recv
cmovb eax, ecx
mov dword [rdi], eax
lea rax, [rbp + 0x50]
nop word [rax + rax]
cmp dword [rax], 0
jne 0x14017f7fd
sub rax, 4
dec edx
jne 0x14017f7f0
mov eax, dword [rdi]
mov r9d, r15d
mov r8d, edx
cmp eax, edx
mov dword [rsp + 0x28], edx
cmova eax, edx
shl r9d, cl
mov dword [rdi], eax
cmp ecx, edx
jae 0x14017f829
mov eax, ecx
sub r9d, dword [rbp + rax*4 + 0x10]
js 0x14017f839
inc ecx
add r9d, r9d
cmp ecx, edx
jb 0x14017f817
mov ecx, edx
mov eax, dword [rbp + rcx*4 + 0x10]
sub r9d, eax
mov dword [rsp + 0x58], r9d
jns 0x14017f843
mov eax, 2
jmp 0x14017fbba
xor esi, esi
add eax, r9d
dec edx
mov dword [rbp + rcx*4 + 0x10], eax
mov ecx, esi
mov qword [rsp + 0x6e0], r13
mov dword [rbp + 0x64], esi
je 0x14017f870
mov eax, esi
nop
add ecx, dword [rbp + rax + 0x14]
add rax, 4
dec edx
mov dword [rbp + rax + 0x64], ecx
jne 0x14017f860
mov edx, esi
mov eax, dword [rbx]
add rbx, 4
test eax, eax
je 0x14017f88f
mov ecx, eax
mov eax, dword [rbp + rax*4 + 0x60]
mov dword [rbp + rax*4 + 0x100], edx
inc eax
mov dword [rbp + rcx*4 + 0x60], eax
inc edx
cmp edx, r12d
jb 0x14017f872
or rax, 0xffffffffffffffff
lea rdx, [rbp + 0x100]
mov r12d, esi
mov dword [rbp + 0x60], esi
mov dword [rbp + 0xb0], esi
mov edi, esi
mov qword [rbp - 0x70], rsi
mov r9, rsi
mov r13d, esi
mov qword [rsp + 0x48], rdx
mov r11d, eax
mov rsi, rax
cmp r10d, r8d
jg 0x14017fb92
nop dword [rax]
movsxd rax, r10d
lea rax, [rbp + rax*4 + 0x10]
mov qword [rbp - 0x80], rax
mov ebx, dword [rax]
test ebx, ebx
je 0x14017fb81
mov eax, dword [rsp + 0x50]
lea rax, [rbp + rax*4 + 0x100]
mov qword [rsp + 0x78], rax
nop word [rax + rax]
mov ecx, dword [rbp + rsi*4 + 0xb4]
dec ebx
add ecx, edi
mov dword [rsp + 0x24], ebx
cmp r10d, ecx
jle 0x14017fa63
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
sub r8d, ecx
inc r11d
mov eax, dword [rax]
inc rsi
mov edi, ecx
cmp r8d, eax
mov ebx, r10d
mov edx, r15d
cmova r8d, eax
sub ebx, ecx
mov dword [rsp + 0x40], r11d
mov ecx, ebx
shl edx, cl
mov ecx, dword [rsp + 0x24]
lea eax, [rcx + 1]
cmp edx, eax
jbe 0x14017f986
or eax, 0xffffffff
inc ebx
sub eax, ecx
mov rcx, qword [rbp - 0x80]
add edx, eax
cmp ebx, r8d
jae 0x14017f986
nop word [rax + rax]
mov eax, dword [rcx + 4]
add rcx, 4
add edx, edx
cmp edx, eax
jbe 0x14017f986
inc ebx
sub edx, eax
cmp ebx, r8d
jb 0x14017f970
lea eax, [rdi + rbx]
cmp eax, r14d
jbe 0x14017f998
cmp edi, r14d
jae 0x14017f998
mov ebx, r14d
sub ebx, edi
mov ecx, ebx
mov r13d, r15d
mov eax, reloc.WS2_32.dll_recv
shl r13d, cl
mov dword [rbp + rsi*4 + 0xb4], ebx
lea ecx, [r13 + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402245bc
mov rcx, qword [rsp + 0x70]
lea r9, [rax + 0x10]
add rax, 8
mov qword [rcx], r9
mov qword [rax], 0
mov qword [rsp + 0x70], rax
mov qword [rbp + rsi*8 - 0x70], r9
test rsi, rsi
je 0x14017fa38
movzx eax, byte [rbp + rsi*4 + 0xb0]
mov ecx, edi
mov edx, r15d
shl edx, cl
sub ecx, dword [rbp + rsi*4 + 0xb0]
mov byte [rsp + 0x31], al
dec edx
mov eax, r12d
add bl, 0x10
and rdx, rax
mov byte [rsp + 0x30], bl
mov rax, qword [rsp + 0x30]
shr rdx, cl
mov rcx, qword [rbp + rsi*8 - 0x78]
mov dword [rbp + rsi*4 + 0x60], r12d
add rdx, rdx
mov qword [rsp + 0x38], r9
mov qword [rcx + rdx*8], rax
mov qword [rcx + rdx*8 + 8], r9
mov eax, dword [rbp + rsi*4 + 0xb4]
mov r10d, dword [rsp + 0x20]
mov r11d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x28]
lea ecx, [rdi + rax]
cmp r10d, ecx
jg 0x14017f920
mov ebx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x48]
movzx eax, r10b
sub al, dil
mov byte [rsp + 0x31], al
cmp rdx, qword [rsp + 0x78]
jb 0x14017fa7c
mov byte [rsp + 0x30], 0x63
jmp 0x14017fad9
mov eax, dword [rdx]
mov ecx, dword [rsp + 0x54]
cmp eax, ecx
jae 0x14017fa99
cmp eax, 0x100
setb al
add al, 0xf
mov byte [rsp + 0x30], al
movzx eax, word [rdx]
jmp 0x14017facb
mov r8, qword [rbp + 0x5f0]
test r8, r8
je 0x14017fbe1
cmp qword [rsp + 0x60], 0
je 0x14017fbe1
sub eax, ecx
mov ecx, eax
movzx eax, byte [r8 + rax*2]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2]
add rdx, 4
mov word [rsp + 0x38], ax
mov qword [rsp + 0x48], rdx
mov ecx, r10d
mov r8d, r15d
mov edx, r12d
sub ecx, edi
shl r8d, cl
mov ecx, edi
shr edx, cl
cmp edx, r13d
jae 0x14017fb21
mov rcx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
nop word [rax + rax]
mov eax, edx
add edx, r8d
add rax, rax
mov qword [r9 + rax*8], rcx
mov qword [r9 + rax*8 + 8], r15
cmp edx, r13d
jb 0x14017fb00
mov r10d, dword [rsp + 0x20]
mov r15d, 1
lea ecx, [r10 - 1]
mov eax, r15d
shl eax, cl
test r12d, eax
je 0x14017fb3a
nop
xor r12d, eax
shr eax, 1
test r12d, eax
jne 0x14017fb30
xor r12d, eax
mov ecx, edi
mov eax, r15d
shl eax, cl
dec eax
and eax, r12d
cmp eax, dword [rbp + rsi*4 + 0x60]
je 0x14017fb6f
nop
sub edi, dword [rbp + rsi*4 + 0xb0]
dec rsi
mov eax, r15d
mov ecx, edi
dec r11d
shl eax, cl
dec eax
and eax, r12d
cmp eax, dword [rbp + rsi*4 + 0x60]
jne 0x14017fb50
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x28]
test ebx, ebx
jne 0x14017f900
inc r10d
mov dword [rsp + 0x20], r10d
cmp r10d, r8d
jle 0x14017f8d0
cmp dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rbp + 0xb4]
mov dword [rcx], eax
je 0x14017fbac
cmp r8d, 1
jne 0x14017fbaf
xor r15d, r15d
mov eax, r15d
mov r13, qword [rsp + 0x6e0]
mov r15, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140360fe0
add rsp, 0x698
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov byte [0x14063d43a], 1
xor eax, eax
jmp 0x14017fbb2