Function at 0x1400f7820
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
mov edx, 0x564342
mov r8d, 0x18
call fcn.14010f220
mov edx, dword [rbx]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.14010f220
mov edx, dword [rbx + 4]
mov r8d, 0x18
mov rcx, rsi
call fcn.14010f220
movsxd r10, dword [rbx + 4]
mov edx, 1
cmp r10d, edx
jle 0x1400f7899
mov rcx, qword [rbx + 8]
mov r8d, edx
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx]
test al, al
je 0x1400f7899
inc rcx
cmp byte [rcx], al
jl 0x1400f7899
inc edx
lea rax, [r8 + rcx]
cmp rax, r10
jl 0x1400f7880
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r15
cmp edx, r10d
jne 0x1400f7975
mov edx, 1
xor r15d, r15d
mov r8d, edx
mov ebp, r15d
call fcn.14010f220
mov rax, qword [rbx + 8]
lea r8d, [r15 + 5]
mov rcx, rsi
movsx edx, byte [rax]
dec edx
call fcn.14010f220
mov edi, 1
cmp dword [rbx + 4], edi
jle 0x1400f7957
mov qword [rsp + 0x50], r12
mov r12d, edi
mov qword [rsp + 0x58], r14
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + r12]
movzx edx, byte [rax + r12 - 1]
cmp cl, dl
jle 0x1400f7943
movsx eax, cl
movsx ecx, dl
cmp ecx, eax
jge 0x1400f7943
sub eax, ecx
mov r14d, eax
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.1400f6550
mov edx, edi
mov r8d, eax
sub edx, ebp
mov rcx, rsi
call fcn.14010f220
mov ebp, edi
sub r14, 1
jne 0x1400f7922
inc edi
inc r12
cmp edi, dword [rbx + 4]
jl 0x1400f7900
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov ecx, dword [rbx + 4]
sub ecx, ebp
call fcn.1400f6550
sub edi, ebp
mov r8d, eax
mov edx, edi
mov rcx, rsi
call fcn.14010f220
jmp 0x1400f7a54
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14010f220
movsxd r9, dword [rbx + 4]
xor r15d, r15d
mov ecx, r15d
test r9d, r9d
jle 0x1400f79a6
mov rdx, qword [rbx + 8]
mov eax, r15d
cmp byte [rdx + rax], r15b
je 0x1400f79a6
inc ecx
inc rax
cmp rax, r9
jl 0x1400f7996
cmp ecx, r9d
mov rcx, rsi
jne 0x1400f79f5
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14010f220
mov ebp, r15d
cmp dword [rbx + 4], r15d
jle 0x1400f7a54
mov rdi, r15
nop dword [rax]
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, rsi
movsx edx, byte [rax + rdi]
dec edx
call fcn.14010f220
inc ebp
lea rdi, [rdi + 1]
cmp ebp, dword [rbx + 4]
jl 0x1400f79d0
jmp 0x1400f7a54
mov edx, 1
mov r8d, edx
call fcn.14010f220
mov ebp, r15d
cmp dword [rbx + 4], r15d
jle 0x1400f7a54
mov rdi, r15
nop
mov rax, qword [rbx + 8]
mov rcx, rsi
cmp byte [rdi + rax], r15b
jne 0x1400f7a25
xor edx, edx
lea r8d, [rdx + 1]
jmp 0x1400f7a45
mov edx, 1
mov r8d, edx
call fcn.14010f220
mov rax, qword [rbx + 8]
mov r8d, 5
mov rcx, rsi
movsx edx, byte [rax + rdi]
dec edx
call fcn.14010f220
inc ebp
inc rdi
cmp ebp, dword [rbx + 4]
jl 0x1400f7a10
mov edx, dword [rbx + 0x10]
mov r8d, 4
mov rcx, rsi
call fcn.14010f220
mov eax, dword [rbx + 0x10]
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x1400f7b33
dec eax
cmp eax, 1
ja 0x1400f7a83
cmp qword [rbx + 0x28], 0
jne 0x1400f7a97
or eax, 0xffffffff
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rsi
pop rbx
ret
mov edx, dword [rbx + 0x14]
mov r8d, 0x20
mov rcx, rsi
call fcn.14010f220
mov edx, dword [rbx + 0x18]
mov r8d, 0x20
mov rcx, rsi
call fcn.14010f220
mov edx, dword [rbx + 0x1c]
mov r8d, 4
dec edx
mov rcx, rsi
call fcn.14010f220
mov edx, dword [rbx + 0x20]
mov r8d, 1
mov rcx, rsi
call fcn.14010f220
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x1400f7af7
cmp ecx, 1
je 0x1400f7aef
or eax, 0xffffffff
jmp 0x1400f7aff
mov eax, dword [rbx + 4]
imul eax, dword [rbx]
jmp 0x1400f7aff
mov rcx, rbx
call fcn.1400f7550
movsxd rdi, eax
test eax, eax
jle 0x1400f7b33
nop word [rax + rax]
mov rax, qword [rbx + 0x28]
mov rcx, rsi
mov r8d, dword [rbx + 0x1c]
mov eax, dword [rax + r15*4]
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.14010f220
inc r15
cmp r15, rdi
jl 0x1400f7b10
mov r15, qword [rsp + 0x20]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rsi
pop rbx
ret