Function at 0x180001fa0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
mov dword [rcx + 0x3d0], reloc.WS2_32.dll_recv
mov dword [rcx + 0x3cc], reloc.WS2_32.dll_recv
mov rax, qword [0x18003976d]
mov qword [rcx + 0x3d8], rax
mov rax, qword [0x180039775]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 0x3e0], rax
movsxd r8, dword [rcx + 0x3d0]
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], r12
lea rdx, [0x18003976d]
add rcx, 0x3f8
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
call fcn.1800162a0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x180002033
cmp eax, 0x18
mov eax, select
jne 0x180002053
cmp dword [rbx + 0x3d0], 0x20
mov ecx, recv
cmovne eax, ecx
jmp 0x180002053
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x180002043
lea eax, [rdx - 6]
jmp 0x180002053
mov eax, select
mov ecx, recv
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
mov qword [rsp + 0x38], rdi
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
movsxd r15, eax
mov r14, r15
cmp dword [rbx + 0x3d4], edx
jl 0x18000209e
lea r8, [rbx + 0xc]
test r15d, r15d
jle 0x180002090
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x180002081
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x1800020cd
lea r8, [rbx + 0x1ec]
nop
test r15d, r15d
jle 0x1800020bf
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x1800020b0
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
inc ebp
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
imul ebp, r15d
sar eax, 2
movsxd r13, eax
test eax, eax
jle 0x180002131
mov edi, r13d
nop dword [rax]
movzx ecx, byte [rsi]
lea rsi, [rsi + 4]
lea rdx, [rdx + 4]
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rsi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rsi - 1]
or dword [rdx - 4], eax
dec rdi
jne 0x180002100
xor r9d, r9d
xor r11d, r11d
test r13d, r13d
jle 0x18000218d
lea r10, [rbx + 0x418]
cmp r9d, ebp
jge 0x180002367
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x180002143
cmp r9d, ebp
jge 0x180002367
lea r10, [0x180035c40]
lea r14, [0x180000000]
nop word [rax + rax]
mov edi, dword [rbx + r13*4 + 0x414]
inc r10
movsxd rdx, edi
mov qword [rsp + 0x70], r10
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r10 - 1]
movsx r8d, byte [rcx + r14 + 0x38d60]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x38d60]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x38d60]
shl r8d, 8
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r14 + 0x38d60]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r13d, 8
je 0x180002264
cmp r13, 1
jle 0x1800022ff
lea rcx, [rbx + 0x41c]
lea rdx, [r13 - 1]
nop word [rax + rax]
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x180002250
jmp 0x1800022ff
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x180002270
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx edi, byte [rcx + r14 + 0x38d60]
sar rax, 0x10
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r14 + 0x38d60]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x38d60]
xor edi, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x38d60]
shl edi, 8
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r13, 5
jle 0x1800022ff
lea rcx, [rbx + 0x42c]
lea rdx, [r13 - 5]
nop
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x1800022f0
xor r11d, r11d
test r13d, r13d
jle 0x18000235b
lea r10, [rbx + 0x418]
nop
cmp r9d, ebp
jge 0x180002364
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x180002310
mov r10, qword [rsp + 0x70]
cmp r9d, ebp
jl 0x1800021b0
mov r14, r15
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
mov r10d, 1
cmp dword [rbx + 0x3d4], r10d
jle 0x18000241f
lea r11, [rbx + 0x20c]
test r14, r14
jle 0x1800023fd
mov r8, r11
mov r9, r14
lea rsi, [0x180000000]
nop word [rax + rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
mov edx, dword [rsi + rdx*4 + 0x36860]
sar rax, 0x10
movzx ecx, al
mov rax, rdi
xor edx, dword [rsi + rcx*4 + 0x36460]
sar rax, 8
movzx ecx, al
movzx eax, dil
xor edx, dword [rsi + rcx*4 + 0x36060]
xor edx, dword [rsi + rax*4 + 0x35c60]
mov dword [r8 - 4], edx
dec r9
jne 0x1800023b0
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x180002395
mov byte [rbx + 8], 1
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov byte [rbx + 8], r10b
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret