Function at 0x1401017d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r13, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x70]
mov ebx, edx
sub ebx, r13d
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x38]
mov r15d, edx
sub r15d, r13d
mov qword [rsp + 0x30], r8
mov rsi, r8
mov qword [rsp + 0x40], rax
mov r10, rdx
mov qword [rsp + 0x50], r9
mov r9d, dword [rcx + 0x34]
mov r14d, 1
mov ecx, dword [rcx + 0x100]
mov edx, r14d
shl edx, cl
mov eax, ebx
mov ecx, dword [rdi + 0x1c]
mov r8d, ebx
sub eax, ecx
mov dword [rsp + 4], r9d
sub r8d, edx
mov qword [rsp + 0x20], r13
cmp eax, edx
mov dword [rsp], r15d
mov eax, dword [rdi + 0x10c]
mov ebp, 3
mov rdx, qword [rdi + 0x60]
cmovbe r8d, ecx
cmp dword [rdi + 0x28], 0
mov dword [rsp + 0x10], ebx
cmovne r8d, ecx
mov qword [rsp + 0x48], rdx
mov ecx, 4
mov dword [rsp + 0x28], r8d
cmp eax, ecx
mov dword [rsp + 8], recvfrom
cmovb ecx, eax
xor r11d, r11d
shl r14d, cl
mov dword [rsp + 0xc], r14d
cmp dword [rdi + 0x12c], r11d
jne 0x140101b57
mov ebx, dword [rdi + 0x2c]
mov eax, r15d
sub eax, ebx
cmp eax, 0x180
jbe 0x140101a2c
lea eax, [rbx + 0x60]
cmp ebx, eax
jae 0x140101984
mov rbp, qword [rsp + 0x40]
lea r12, [r13 + 8]
mov r13, qword [rsp + 0x38]
mov r14d, 0x18
sub r14d, r9d
mov r15d, ebx
add r12, rbx
mov esi, eax
nop dword [rax]
mov eax, dword [rdi + 0x60]
mov rcx, r14
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [r13 + rax*4], ebx
inc ebx
cmp ebx, esi
jb 0x1401018f0
mov rsi, qword [rsp + 0x30]
mov ebp, 3
mov r14d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov rcx, qword [rdi + 0x70]
lea ebx, [r15 - 0x20]
mov qword [rsp + 0x18], rcx
lea rax, [r10 + 1]
mov rcx, qword [rdi + 0x38]
lea r9, [rbx + r13]
mov qword [rsp + 0x58], rcx
mov ecx, eax
sub ecx, r13d
mov r8d, ebx
sub ecx, ebx
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [rbx + rcx]
cmp ebx, eax
jae 0x140101a2c
mov rsi, qword [rsp + 0x18]
mov r12d, 0x18
sub r12d, dword [rdi + 0x34]
mov r13, qword [rsp + 0x58]
mov r15d, ecx
nop dword [rax]
mov eax, dword [rdi + 0x60]
mov rcx, r12
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rdi + rax*4 + 0x40], edx
sub r15, 1
jne 0x1401019e0
mov rsi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov rcx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rdi + 8]
cmp ebx, r15d
jae 0x140101b04
mov rsi, qword [rsp + 0x18]
lea r12, [rcx + 8]
mov ebp, dword [rsp]
mov r14d, 0x18
sub r14d, dword [rdi + 0x34]
mov r13, rax
mov r15d, ebx
add r12, r15
nop word [rax + rax]
mov eax, dword [rdi + 0x60]
mov rcx, r14
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [rsi + rax]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + rsi]
lea rdx, [r8 + rsi]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], ebx
inc ebx
cmp ebx, ebp
jb 0x140101a70
mov rsi, qword [rsp + 0x30]
mov ebp, 3
mov r14d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r15d, dword [rsp]
mov eax, dword [rsp + 0x48]
mov ecx, 0x18
sub ecx, dword [rsp + 4]
mov r8d, dword [rsp + 0x10]
mov dword [rdi + 0x2c], r15d
imul edx, dword [r8 + r13 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x38]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rsp + 0x40]
prefetcht0 byte [rax + r9]
and r8d, 7
mov r15d, dword [rdi + r8*4 + 0x40]
mov dword [rdi + r8*4 + 0x40], edx
jmp 0x140101b7b
imul r15d, dword [r10], 0x9e3779b1
mov ecx, 0x18
sub ecx, r9d
mov eax, edx
mov r9, qword [rsp + 0x40]
mov dword [rdi + 0x2c], ebx
xor r15, rax
shr r15, cl
mov rcx, qword [rsp + 0x38]
add dword [rdi + 0x68], r15d
mov eax, r15d
shr rax, 4
mov rbx, r11
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r9]
lea r13, [rcx + rax*4]
lea rcx, [rax + r9]
movzx eax, byte [rax + r9]
mov r12d, eax
mov dword [rsp + 4], eax
mov qword [rsp + 0x48], rcx
and r12d, 0xf
movsx eax, r15b
mov ecx, r12d
neg ecx
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
movzx edx, ax
mov dword [rsp + 0x58], eax
movzx eax, dx
shl ax, cl
movzx ecx, r12b
movzx r9d, ax
mov eax, edx
shr rax, cl
or r9, rax
jbe 0x140101c32
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
nop
test r14d, r14d
je 0x140101c32
bsf rcx, r9
add ecx, r12d
and ecx, 0xf
je 0x140101c29
mov ecx, dword [r13 + rcx*4]
cmp ecx, r8d
jb 0x140101c32
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbx*4 + 0x70], ecx
inc rbx
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x140101c00
mov ecx, dword [rsp + 4]
mov eax, r11d
dec ecx
mov edx, recvfrom
and ecx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [rdi + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [rdi + 0x2c]
test rbx, rbx
je 0x140101d48
mov rdi, qword [rsp + 0x50]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0x70]
mov eax, dword [r10 + rbp - 3]
mov edx, r9d
add rdx, qword [rsp + 0x20]
cmp dword [rdx + rbp - 3], eax
jne 0x140101d3c
lea r8, [rsi - 7]
mov rax, r10
cmp r10, r8
jae 0x140101cd9
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x140101caa
bsf rcx, rcx
shr rcx, 3
jmp 0x140101d1e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x140101cd9
nop word [rax + rax]
mov rcx, qword [rdx]
xor rcx, qword [rax]
jne 0x140101d6f
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x140101cc0
lea rcx, [rsi - 3]
cmp rax, rcx
jae 0x140101cf0
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x140101cf0
add rax, 4
add rdx, 4
lea rcx, [rsi - 1]
cmp rax, rcx
jae 0x140101d09
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x140101d09
add rax, 2
add rdx, 2
cmp rax, rsi
jae 0x140101d18
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x140101d18
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rbp
jbe 0x140101d3c
mov eax, dword [rsp + 0x10]
mov rbp, rcx
sub eax, r9d
add eax, 3
mov qword [rdi], rax
lea rax, [rcx + r10]
cmp rax, rsi
je 0x140101d48
inc r11
cmp r11, rbx
jb 0x140101c70
mov rax, rbp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x140101d1e