Function at 0x14006dfa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea r14d, [rsi + 2]
cmp dword [rcx + 0x44], 1
je 0x14006e162
mov r11d, 1
nop dword [rax + rax]
mov ebp, r11d
mov r10, r14
mov edi, reloc.WS2_32.dll_recv
nop dword [rax + rax]
mov rdx, qword [rbx + 0x50]
lea r9, [r10*8]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 - 0x10]
xor qword [rcx + rdx - 0x10], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 - 8]
xor qword [rcx + rdx - 8], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, rdx
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8]
xor qword [r9 + rcx], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 + 8]
xor qword [rcx + rdx + 8], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 + 0x10]
xor qword [rcx + rdx + 0x10], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 + 0x18]
xor qword [rcx + rdx + 0x18], rax
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, r9
mov eax, r11d
imul eax, dword [rbx + 0x68]
dec eax
shl rax, 7
add rax, r10
mov rax, qword [rdx + rax*8 + 0x20]
xor qword [rcx + rdx + 0x20], rax
mov ecx, r11d
imul ecx, dword [rbx + 0x68]
dec ecx
shl rcx, 0xa
add rcx, qword [rbx + 0x50]
mov rdx, qword [r9 + rcx + 0x28]
mov ecx, dword [rbx + 0x3c]
dec ecx
shl rcx, 0xa
add rcx, qword [rbx + 0x50]
xor qword [r9 + rcx + 0x28], rdx
add r10, 8
sub rdi, 1
jne 0x14006dff0
inc r11d
mov eax, dword [rbx + 0x44]
dec eax
cmp ebp, eax
jb 0x14006dfe0
mov ecx, 0x400
call fcn.14006b270
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rbp, [rax + 0x400]
mov qword [rsp + 0x50], rbp
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x48], rbp
nop word [rax + rax]
lea ecx, [r14 - 2]
lea r9d, [rcx*8]
mov edx, dword [rbx + 0x40]
dec edx
shl rdx, 7
mov eax, ecx
add rdx, rax
mov rax, qword [rbx + 0x50]
mov rax, qword [rax + rdx*8]
mov qword [r9 + rdi], rax
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
lea ecx, [r14 - 1]
add r8, rcx
mov rdx, qword [rbx + 0x50]
lea ecx, [r9 + 8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, r14d
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [r14*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 1]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 2]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 3]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 4]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 5]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 6]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 7]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 8]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 9]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xa]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xb]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xc]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xd]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xe]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0xf]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x10]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x11]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x12]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x13]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x14]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x15]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x16]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x17]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x18]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x19]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x1a]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x1b]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
lea ecx, [r14 + 0x1c]
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 7
mov eax, ecx
add r8, rax
mov rdx, qword [rbx + 0x50]
lea ecx, [rcx*8]
mov rax, qword [rdx + r8*8]
mov qword [rcx + rdi], rax
mov r8d, dword [rbx + 0x40]
dec r8d
shl r8, 0xa
add r8, qword [rbx + 0x50]
lea eax, [r14 + 0x1d]
lea ecx, [rax*8]
mov rax, qword [r8 + rax*8]
mov qword [rcx + rdi], rax
add r14d, 0x20
lea eax, [r14 - 2]
cmp eax, 0x80
jb 0x14006e1a0
mov edx, dword [rbx + 0x48]
lea r8, [rsp + 0x90]
mov rcx, r15
call fcn.14006cd20
mov dword [rsp + 0x20], 1
mov r12d, dword [rbx + 0x48]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
cmp rdi, rbp
je 0x14006e732
mov r14, rbp
sub r14, rdi
cmp r14, 0x1000
jb 0x14006e6f3
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14006e79d
call fcn.14006b270
test rax, rax
je 0x14006e6ec
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14006e703
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r14, r14
je 0x14006e703
mov rcx, r14
call fcn.14006b270
mov rsi, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
lea rax, [rsi + r14]
mov qword [rsp + 0x38], rax
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov rax, rbp
sub rax, rdi
add rax, rsi
mov qword [rsp + 0x30], rax
mov r9d, r12d
lea r8, [rsp + 0x28]
mov rdx, qword [r15]
mov rcx, rbx
call fcn.14006d460
nop
test rdi, rdi
je 0x14006e77a
sub rbp, rdi
cmp rbp, 0x1000
jb 0x14006e76f
add rbp, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14006e796
mov rdi, rcx
mov rdx, rbp
mov rcx, rdi
call fcn.14006b2ac
mov rax, r15
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140005200
int3