Function at 0x1400021e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, qword [rsp + 0xc0]
mov r14, r8
mov rbx, rcx
and r14d, 0xfffffff0
mov rsi, r9
mov rbp, r8
mov rdi, rdx
lea eax, [r14 + 0x10]
movsxd r15, eax
inc r15
mov dword [rsp + 0x30], eax
mov rcx, r15
call fcn.14003f754
mov r8, r15
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, rax
mov r13, rax
call fcn.14004ca60
mov r8, rbp
mov rdx, rdi
mov rcx, r13
call fcn.14004c3b0
and ebp, 0xf
mov edx, reloc.WS2_32.dll_recv
sub edx, ebp
test edx, edx
jle 0x140002270
mov eax, ebp
mov r8d, reloc.WS2_32.dll_recv
sub r8, rax
lea eax, [r14 + rbp]
movsxd rcx, eax
add rcx, r13
call fcn.14004ca60
movsxd rax, r14d
mov rcx, r15
add rax, 0x10
mov qword [rsp + 0x48], rax
mov byte [rax + r13], 0
call fcn.14003f754
mov r8, r15
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14004ca60
lea rbp, [rbx + 0x3f8]
lea r11, [0x140000000]
test rsi, rsi
je 0x140002669
mov dword [rbx + 0x3cc], 0x20
mov dword [rbx + 0x3d0], reloc.WS2_32.dll_recv
movups xmm0, xmmword [r12]
movups xmmword [rbx + 0x3d8], xmm0
movups xmm0, xmmword [r12]
movups xmmword [rbp], xmm0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x14000230b
cmp eax, 0x18
lea r15, [rbx + 0x3d4]
mov eax, reloc.WS2_32.dll_ntohl
jne 0x140002332
cmp dword [rbx + 0x3d0], 0x20
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmovne eax, ecx
jmp 0x140002332
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x14000231b
lea eax, [rdx - 6]
jmp 0x14000232b
cmp edx, 0x18
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmove eax, ecx
lea r15, [rbx + 0x3d4]
mov dword [r15], eax
lea r14, [rbx + 0xc]
mov eax, dword [rbx + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rbp, eax
xor edi, edi
mov r12, rbp
mov qword [rsp + 0xb0], rbp
test r12, r12
jle 0x14000236e
mov r8, r12
xor edx, edx
shl r8, 2
mov rcx, r14
call fcn.14004ca60
mov r13d, dword [r15]
inc edi
add r14, 0x20
cmp edi, r13d
jle 0x140002358
xor r14d, r14d
test r13d, r13d
js 0x1400023b7
lea rdi, [rbx + 0x1ec]
nop dword [rax + rax]
test r12, r12
jle 0x1400023a6
mov r8, r12
xor edx, edx
shl r8, 2
mov rcx, rdi
call fcn.14004ca60
mov r13d, dword [r15]
inc r14d
add rdi, 0x20
cmp r14d, r13d
jle 0x140002390
jmp 0x1400023bf
mov qword [rsp + 0xb0], r12
mov eax, dword [rbx + 0x3cc]
lea r10, [rbx + 0x418]
cdq
inc r13d
and edx, 3
imul r13d, ebp
add eax, edx
mov rdx, r10
sar eax, 2
movsxd r9, eax
test eax, eax
jle 0x140002428
mov r8d, r9d
nop dword [rax]
movzx ecx, byte [rsi]
lea rdx, [rdx + 4]
shl ecx, 0x18
lea rsi, [rsi + 4]
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 3]
shl eax, 0x10
or eax, ecx
mov dword [rdx - 4], eax
movzx ecx, byte [rsi - 2]
shl ecx, 8
or ecx, eax
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 1]
or eax, ecx
mov dword [rdx - 4], eax
sub r8, 1
jne 0x1400023f0
xor r11d, r11d
mov r14, r9
test r9d, r9d
jle 0x140002480
xor edi, edi
cmp r11d, r13d
jge 0x1400025c4
mov ecx, dword [r10]
mov eax, r11d
cdq
inc rdi
idiv ebp
movsxd r9, eax
mov eax, r11d
cdq
inc r11d
idiv ebp
movsxd r8, edx
lea rdx, [r8 + r9*8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov eax, dword [r15]
sub eax, r9d
cdqe
lea rcx, [r8 + rax*8]
mov eax, dword [r10]
add r10, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, r14
jl 0x140002435
cmp r11d, r13d
jge 0x1400025c4
lea rdi, [0x140086bf0]
lea r10, [rbx + 0x41c]
nop word [rax + rax]
mov r8d, dword [rbx + r14*4 + 0x414]
lea rsi, [0x140000000]
movsxd rdx, r8d
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [rdi]
inc rdi
mov qword [rsp + 0xb8], rdi
movsx r9d, byte [rcx + rsi + 0x839f0]
xor r9d, eax
mov rax, rdx
sar rax, 8
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + rsi + 0x839f0]
xor r9d, eax
movzx eax, dl
shl r9d, 8
movzx eax, byte [rax + rsi + 0x839f0]
xor r9d, eax
mov eax, r8d
shr rax, 0x18
shl r9d, 8
movzx eax, byte [rax + rsi + 0x839f0]
xor r9d, eax
xor dword [rbx + 0x418], r9d
cmp r14d, 8
je 0x140002ab0
cmp r14, 1
jle 0x140002551
lea rcx, [r14 - 1]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 - 4]
xor dword [r10], eax
lea r10, [r10 + 4]
sub rcx, 1
jne 0x140002540
lea r10, [rbx + 0x41c]
xor esi, esi
test r14, r14
jle 0x1400025b3
lea rdi, [rbx + 0x418]
cmp r11d, r13d
jge 0x1400025bc
mov ecx, dword [rdi]
mov eax, r11d
cdq
inc rsi
idiv ebp
movsxd r9, eax
mov eax, r11d
cdq
inc r11d
idiv ebp
movsxd r8, edx
lea rdx, [r8 + r9*8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov eax, dword [r15]
sub eax, r9d
cdqe
lea rcx, [r8 + rax*8]
mov eax, dword [rdi]
add rdi, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rsi, r14
jl 0x140002566
mov rdi, qword [rsp + 0xb8]
cmp r11d, r13d
jl 0x1400024a0
mov r12, qword [rsp + 0xb0]
mov esi, 1
cmp dword [r15], esi
jle 0x14000264d
lea rdi, [rbx + 0x20c]
test r12, r12
jle 0x140002642
mov r10, rdi
lea r14, [0x140000000]
mov r11, r12
nop word [rax + rax]
mov eax, dword [r10]
lea r10, [r10 + 4]
mov edx, eax
movsxd r9, eax
shr rdx, 0x18
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov rax, r9
sar rax, 8
mov r8d, dword [r14 + rdx*4 + 0x85bf0]
xor r8d, dword [r14 + rcx*4 + 0x85ff0]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x863f0]
xor r8d, dword [r14 + rax*4 + 0x867f0]
mov dword [r10 - 4], r8d
sub r11, 1
jne 0x1400025f0
inc esi
add rdi, 0x20
cmp esi, dword [r15]
jl 0x1400025d5
mov r13, qword [rsp + 0x50]
lea rbp, [rbx + 0x3f8]
mov rdi, qword [rsp + 0x58]
lea r11, [0x140000000]
mov byte [rbx + 8], 1
cmp byte [rbx + 8], 0
je 0x140002e82
mov r10, qword [rsp + 0x48]
test r10, r10
je 0x140002e82
movsxd r9, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r10
mov rcx, r9
div r9
test rdx, rdx
jne 0x140002e82
mov rax, r10
mov dword [rsp + 0xb0], edx
div rcx
mov r8, r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], rdi
mov r12, rdi
test rax, rax
je 0x140002e82
cmp byte [rbx + 8], 0
mov rcx, rbp
mov eax, r9d
je 0x1400026fa
xor edx, edx
test r9d, r9d
jle 0x1400026fa
nop word [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
xor byte [rcx], al
lea rcx, [rcx + 1]
mov eax, dword [rbx + 0x3d0]
inc edx
cmp edx, eax
jl 0x1400026e0
cmp byte [rbx + 8], 0
mov r8, rbp
je 0x140002e24
cmp eax, 0x10
jne 0x140002b66
movzx esi, byte [rbp]
movzx eax, byte [rbp + 1]
movzx r14d, byte [r8 + 8]
movzx ecx, byte [r8 + 0xc]
movzx r15d, byte [r8 + 0xf]
mov r13d, dword [rbx + 0x3d4]
shl eax, 0x10
shl esi, 0x18
or esi, eax
shl r14d, 0x18
movzx eax, byte [rbp + 2]
shl eax, 8
or esi, eax
shl ecx, 0x18
movzx eax, byte [rbp + 3]
movzx ebp, byte [rbp + 4]
or esi, eax
movzx eax, byte [r8 + 5]
xor esi, dword [rbx + 0xc]
shl eax, 0x10
shl ebp, 0x18
or ebp, eax
movzx eax, byte [r8 + 6]
shl eax, 8
or ebp, eax
movzx eax, byte [r8 + 7]
or ebp, eax
movzx eax, byte [r8 + 9]
xor ebp, dword [rbx + 0x10]
shl eax, 0x10
or r14d, eax
movzx eax, byte [r8 + 0xa]
shl eax, 8
or r14d, eax
movzx eax, byte [r8 + 0xb]
or r14d, eax
movzx eax, byte [r8 + 0xd]
xor r14d, dword [rbx + 0x14]
shl eax, 0x10
or ecx, eax
movzx eax, byte [r8 + 0xe]
shl eax, 8
or r15d, eax
or r15d, ecx
xor r15d, dword [rbx + 0x18]
cmp r13d, 1
jle 0x1400028f8
lea r12d, [r13 - 1]
lea r13, [0x140000000]
lea rdi, [rbx + 0x34]
nop dword [rax + rax]
movsxd r11, r14d
lea rdi, [rdi + 0x20]
movsxd r10, ebp
mov rax, r11
sar rax, 8
movzx ecx, al
mov rax, r10
sar rax, 0x10
movsxd r9, esi
movsxd r8, r15d
mov edx, esi
shr rdx, 0x18
mov esi, dword [r13 + rdx*4 + 0x83bf0]
xor esi, dword [r13 + rcx*4 + 0x843f0]
movzx ecx, al
mov edx, ebp
movzx eax, r8b
shr rdx, 0x18
xor esi, dword [r13 + rcx*4 + 0x83ff0]
xor esi, dword [r13 + rax*4 + 0x847f0]
mov rax, r8
mov ebp, dword [r13 + rdx*4 + 0x83bf0]
xor esi, dword [rdi - 0x28]
sar rax, 8
movzx ecx, al
mov rax, r11
sar rax, 0x10
sar r8, 0x10
xor ebp, dword [r13 + rcx*4 + 0x843f0]
movzx ecx, al
movzx eax, r9b
xor ebp, dword [r13 + rcx*4 + 0x83ff0]
xor ebp, dword [r13 + rax*4 + 0x847f0]
xor ebp, dword [rdi - 0x24]
mov ecx, r14d
shr rcx, 0x18
movzx eax, r8b
mov r14d, dword [r13 + rcx*4 + 0x83bf0]
xor r14d, dword [r13 + rax*4 + 0x83ff0]
mov rax, r9
sar rax, 8
movzx ecx, al
movzx eax, r10b
sar r9, 0x10
sar r10, 8
xor r14d, dword [r13 + rcx*4 + 0x843f0]
xor r14d, dword [r13 + rax*4 + 0x847f0]
xor r14d, dword [rdi - 0x20]
mov ecx, r15d
shr rcx, 0x18
movzx eax, r9b
mov r15d, dword [r13 + rcx*4 + 0x83bf0]
xor r15d, dword [r13 + rax*4 + 0x83ff0]
movzx eax, r10b
xor r15d, dword [r13 + rax*4 + 0x843f0]
movzx eax, r11b
xor r15d, dword [r13 + rax*4 + 0x847f0]
xor r15d, dword [rdi - 0x1c]
sub r12, 1
jne 0x1400027d0
mov r13d, dword [rbx + 0x3d4]
mov r12, qword [rsp + 0x20]
movsxd r10, r13d
lea r13, [0x140000000]
shl r10, 5
add r10, rbx
movsxd r9, r15d
movsxd rdi, ebp
movsxd r11, r14d
mov ecx, esi
mov edx, dword [r10 + 0xc]
mov eax, edx
sar eax, 0x18
shr rcx, 0x18
movsxd r8, esi
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12], al
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 1], al
mov rax, r11
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 2], al
movzx eax, r9b
mov ecx, ebp
shr rcx, 0x18
xor dl, byte [rax + r13 + 0x839f0]
mov byte [r12 + 3], dl
mov edx, dword [r10 + 0x10]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 4], al
mov rax, r11
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 5], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
sar r9, 0x10
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 6], al
movzx eax, r8b
mov ecx, r14d
shr rcx, 0x18
xor dl, byte [rax + r13 + 0x839f0]
mov byte [r12 + 7], dl
mov edx, dword [r10 + 0x14]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 8], al
mov eax, edx
sar eax, 0x10
movzx ecx, r9b
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 9], al
mov rax, r8
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 0xa], al
movzx eax, dil
mov ecx, r15d
xor dl, byte [rax + r13 + 0x839f0]
mov byte [r12 + 0xb], dl
mov edx, dword [r10 + 0x18]
shr rcx, 0x18
lea rbp, [rbx + 0x3f8]
mov eax, edx
sar r8, 0x10
sar eax, 0x18
sar rdi, 8
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, r8b
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, dil
xor al, byte [rcx + r13 + 0x839f0]
mov byte [r12 + 0xe], al
movzx eax, r11b
xor dl, byte [rax + r13 + 0x839f0]
mov byte [r12 + 0xf], dl
jmp 0x140002e24
mov rcx, r10
mov edx, 3
nop dword [rax + rax]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140002ac0
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
sar rax, 0x10
movsx r8d, byte [rcx + rsi + 0x839f0]
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rsi + 0x839f0]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x839f0]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + rsi + 0x839f0]
xor r8d, eax
xor dword [rbx + 0x428], r8d
cmp r14, 5
jle 0x140002558
lea rcx, [rbx + 0x42c]
lea rdx, [r14 - 5]
nop word [rax + rax]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140002b50
xor esi, esi
jmp 0x14000255f
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rdi, eax
xor eax, eax
cmp edi, 4
je 0x140002b82
cmp edi, 6
setne al
inc rax
shl rax, 5
lea r13, [rbx + 0x458]
mov r9, r13
mov r14, rdi
mov esi, dword [rax + r11 + 0x86c18]
mov r12d, dword [rax + r11 + 0x86c20]
mov r15d, dword [rax + r11 + 0x86c28]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0x2c], r15d
test edi, edi
jle 0x140002c19
lea r10, [rbx + 0xc]
mov r11, rdi
nop word [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 4]
shl eax, 0x18
lea r10, [r10 + 4]
mov dword [r9], eax
movzx edx, byte [r8 - 3]
shl edx, 0x10
or edx, eax
mov dword [r9], edx
movzx ecx, byte [r8 - 2]
shl ecx, 8
or ecx, edx
mov rdx, r9
mov dword [r9], ecx
movzx eax, byte [r8 - 1]
or eax, ecx
mov dword [r9], eax
add r9, 4
xor eax, dword [r10 - 4]
mov dword [rdx], eax
sub r11, 1
jne 0x140002bd0
cmp dword [rbx + 0x3d4], 1
mov dword [rsp + 0xa0], 1
jle 0x140002d50
lea eax, [rdi*4]
mov rbp, 0xfffffffffffffbd4
cdqe
lea rcx, [rbx + 0x438]
mov qword [rsp + 0x38], rax
nop dword [rax]
test r14, r14
jle 0x140002d0f
mov r14d, r12d
mov r10d, esi
sub r14d, esi
lea r12, [0x140000000]
sub r15d, esi
mov r11, r13
mov rsi, rdi
lea eax, [r14 + r10]
cdq
lea r11, [r11 + 4]
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [r15 + r10]
cdq
sar rcx, 8
idiv edi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [r12 + r8*4 + 0x843f0]
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, r10d
cdq
inc r10d
idiv edi
xor r9d, dword [r12 + rcx*4 + 0x847f0]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r12 + rax*4 + 0x83ff0]
movzx eax, byte [r11 - 1]
xor r9d, dword [r12 + rax*4 + 0x83bf0]
xor r9d, dword [r11 + rbp - 4]
mov dword [r11 - 0x24], r9d
sub rsi, 1
jne 0x140002c72
mov r12d, dword [rsp + 0xb8]
lea rcx, [rbx + 0x438]
mov esi, dword [rsp + 0x28]
mov r14, rdi
mov r15d, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x38]
mov rdx, rcx
mov r8, rax
mov rcx, r13
call fcn.14004c3b0
mov ecx, dword [rsp + 0xa0]
add rbp, 0x20
mov rax, qword [rsp + 0x38]
inc ecx
cmp ecx, dword [rbx + 0x3d4]
mov dword [rsp + 0xa0], ecx
lea rcx, [rbx + 0x438]
jl 0x140002c50
lea rbp, [rbx + 0x3f8]
xor r10d, r10d
test r14, r14
jle 0x140002e1f
mov r9, qword [rsp + 0x20]
lea r11, [0x140000000]
sub esi, r12d
sub r15d, r12d
nop
movsxd rax, dword [rbx + 0x3d4]
lea r9, [r9 + 4]
lea r13, [r13 + 4]
lea rcx, [r10 + rax*8]
inc r10
mov r8d, dword [rbx + rcx*4 + 0xc]
mov eax, r8d
movzx ecx, byte [r13 - 1]
sar eax, 0x18
xor al, byte [rcx + r11 + 0x839f0]
mov byte [r9 - 4], al
lea eax, [rsi + r12]
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + r11 + 0x839f0]
mov byte [r9 - 3], al
mov eax, r12d
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + r11 + 0x839f0]
mov byte [r9 - 2], al
lea eax, [r15 + r12]
cdq
inc r12d
idiv edi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
xor r8b, byte [rcx + r11 + 0x839f0]
mov byte [r9 - 1], r8b
cmp r10, r14
jl 0x140002d70
mov r12, qword [rsp + 0x20]
movsxd r8, dword [rbx + 0x3d0]
mov rdx, r12
mov rcx, rbp
call fcn.14004c3b0
movsxd r9, dword [rbx + 0x3d0]
lea r11, [0x140000000]
mov rax, qword [rsp + 0x48]
xor edx, edx
mov r10d, dword [rsp + 0xb0]
add r12, r9
mov r8, qword [rsp + 0x40]
inc r10d
div r9
add r8, r9
movsxd rcx, r10d
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xb0], r10d
cmp rcx, rax
jb 0x1400026c2
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x50]
call fcn.14003f74c
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret