Function at 0x1402c2370
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rbx, rdx
mov qword [rsp + 0x40], rcx
mov edx, 0x60
call fcn.140295260
mov edx, 0x40
lea rcx, [rbp - 0x70]
call fcn.140295260
movzx eax, byte [rbx + 0x1f]
and al, 0xf
mov byte [rbp + 0x390], al
movzx eax, byte [rbx + 0x1f]
shr al, 4
mov byte [rbp + 0x391], al
movzx eax, byte [rbx + 0x1e]
and al, 0xf
mov byte [rbp + 0x392], al
movzx eax, byte [rbx + 0x1e]
shr al, 4
mov byte [rbp + 0x393], al
movzx eax, byte [rbx + 0x1d]
and al, 0xf
mov byte [rbp + 0x394], al
movzx eax, byte [rbx + 0x1d]
shr al, 4
mov byte [rbp + 0x395], al
movzx eax, byte [rbx + 0x1c]
and al, 0xf
mov byte [rbp + 0x396], al
movzx eax, byte [rbx + 0x1c]
shr al, 4
mov byte [rbp + 0x397], al
movzx eax, byte [rbx + 0x1b]
and al, 0xf
mov byte [rbp + 0x398], al
movzx eax, byte [rbx + 0x1b]
shr al, 4
mov byte [rbp + 0x399], al
movzx eax, byte [rbx + 0x1a]
and al, 0xf
mov byte [rbp + 0x39a], al
movzx eax, byte [rbx + 0x1a]
shr al, 4
mov byte [rbp + 0x39b], al
movzx eax, byte [rbx + 0x19]
and al, 0xf
mov byte [rbp + 0x39c], al
movzx eax, byte [rbx + 0x19]
shr al, 4
mov byte [rbp + 0x39d], al
movzx eax, byte [rbx + 0x18]
and al, 0xf
mov byte [rbp + 0x39e], al
movzx eax, byte [rbx + 0x18]
shr al, 4
mov byte [rbp + 0x39f], al
movzx eax, byte [rbx + 0x17]
and al, 0xf
mov byte [rbp + 0x3a0], al
movzx eax, byte [rbx + 0x17]
shr al, 4
mov byte [rbp + 0x3a1], al
movzx eax, byte [rbx + 0x16]
and al, 0xf
mov byte [rbp + 0x3a2], al
movzx eax, byte [rbx + 0x16]
shr al, 4
mov byte [rbp + 0x3a3], al
movzx eax, byte [rbx + 0x15]
and al, 0xf
mov byte [rbp + 0x3a4], al
movzx eax, byte [rbx + 0x15]
shr al, 4
mov byte [rbp + 0x3a5], al
movzx eax, byte [rbx + 0x14]
and al, 0xf
mov byte [rbp + 0x3a6], al
movzx eax, byte [rbx + 0x14]
shr al, 4
mov byte [rbp + 0x3a7], al
movzx eax, byte [rbx + 0x13]
and al, 0xf
mov byte [rbp + 0x3a8], al
movzx eax, byte [rbx + 0x13]
shr al, 4
mov byte [rbp + 0x3a9], al
movzx eax, byte [rbx + 0x12]
and al, 0xf
mov byte [rbp + 0x3aa], al
movzx eax, byte [rbx + 0x12]
shr al, 4
mov byte [rbp + 0x3ab], al
movzx eax, byte [rbx + 0x11]
and al, 0xf
mov byte [rbp + 0x3ac], al
movzx eax, byte [rbx + 0x11]
shr al, 4
mov byte [rbp + 0x3ad], al
movzx eax, byte [rbx + 0x10]
and al, 0xf
mov byte [rbp + 0x3ae], al
movzx eax, byte [rbx + 0x10]
shr al, 4
mov byte [rbp + 0x3af], al
movzx eax, byte [rbx + 0xf]
and al, 0xf
mov byte [rbp + 0x3b0], al
movzx eax, byte [rbx + 0xf]
shr al, 4
mov byte [rbp + 0x3b1], al
movzx eax, byte [rbx + 0xe]
and al, 0xf
mov byte [rbp + 0x3b2], al
movzx eax, byte [rbx + 0xe]
shr al, 4
mov byte [rbp + 0x3b3], al
movzx eax, byte [rbx + 0xd]
and al, 0xf
mov byte [rbp + 0x3b4], al
movzx eax, byte [rbx + 0xd]
shr al, 4
mov byte [rbp + 0x3b5], al
movzx eax, byte [rbx + 0xc]
and al, 0xf
mov byte [rbp + 0x3b6], al
movzx eax, byte [rbx + 0xc]
shr al, 4
mov byte [rbp + 0x3b7], al
movzx eax, byte [rbx + 0xb]
and al, 0xf
mov byte [rbp + 0x3b8], al
movzx eax, byte [rbx + 0xb]
shr al, 4
mov byte [rbp + 0x3b9], al
movzx eax, byte [rbx + 0xa]
and al, 0xf
mov byte [rbp + 0x3ba], al
movzx eax, byte [rbx + 0xa]
shr al, 4
mov byte [rbp + 0x3bb], al
movzx eax, byte [rbx + 9]
and al, 0xf
mov byte [rbp + 0x3bc], al
movzx eax, byte [rbx + 9]
shr al, 4
mov byte [rbp + 0x3bd], al
movzx eax, byte [rbx + 8]
and al, 0xf
mov byte [rbp + 0x3be], al
movzx eax, byte [rbx + 8]
shr al, 4
mov byte [rbp + 0x3bf], al
movzx eax, byte [rbx + 7]
and al, 0xf
mov byte [rbp + 0x3c0], al
movzx eax, byte [rbx + 7]
shr al, 4
mov byte [rbp + 0x3c1], al
movzx eax, byte [rbx + 6]
and al, 0xf
mov byte [rbp + 0x3c2], al
movzx eax, byte [rbx + 6]
shr al, 4
mov byte [rbp + 0x3c3], al
lea r15, [rbp + 0x391]
movzx eax, byte [rbx + 5]
lea rdx, [0x140487650]
and al, 0xf
mov qword [rsp + 0x38], r15
mov byte [rbp + 0x3c4], al
movzx eax, byte [rbx + 5]
shr al, 4
mov byte [rbp + 0x3c5], al
movzx eax, byte [rbx + 4]
and al, 0xf
mov byte [rbp + 0x3c6], al
movzx eax, byte [rbx + 4]
shr al, 4
mov byte [rbp + 0x3c7], al
movzx eax, byte [rbx + 3]
and al, 0xf
mov byte [rbp + 0x3c8], al
movzx eax, byte [rbx + 3]
shr al, 4
mov byte [rbp + 0x3c9], al
movzx eax, byte [rbx + 2]
and al, 0xf
mov byte [rbp + 0x3ca], al
movzx eax, byte [rbx + 2]
shr al, 4
mov byte [rbp + 0x3cb], al
movzx eax, byte [rbx + 1]
and al, 0xf
mov byte [rbp + 0x3cc], al
movzx eax, byte [rbx + 1]
shr al, 4
mov byte [rbp + 0x3cd], al
movzx eax, byte [rbx]
and al, 0xf
mov byte [rbp + 0x3ce], al
movzx eax, byte [rbx]
shr al, 4
mov byte [rbp + 0x3cf], al
mov eax, 1
mov dword [rsp + 0x24], eax
shr eax, 1
lea rbx, [rbp - 0x30]
imul rsi, rax, 0x3c0
lea rax, [rbp - 0x30]
mov edi, reloc.WS2_32.dll_ntohs
sub rsi, rax
add rsi, rdx
nop
lea rdx, [rsi + rbx]
mov r8d, 0x40
mov rcx, rbx
call fcn.140295270
add rbx, 0x40
sub rdi, 1
jne 0x1402c2720
movzx ecx, byte [r15]
lea r8, [rbp - 0x68]
mov r9d, dword [rbp - 0x74]
xor eax, eax
mov r10d, dword [rbp - 0x78]
mov r11d, dword [rbp - 0x7c]
mov ebx, dword [rbp - 0x80]
mov edi, dword [rsp + 0x7c]
mov esi, dword [rsp + 0x78]
mov r15d, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x70]
mov r13d, dword [rsp + 0x6c]
mov r14d, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea r8, [r8 + 0x40]
cmp ecx, eax
mov eax, dword [rsp + 0x50]
sete dl
xor eax, dword [r8 - 0x48]
mov ecx, edx
neg edx
neg ecx
and eax, ecx
xor dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
xor eax, dword [r8 - 0x44]
and eax, ecx
xor dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x58]
xor eax, dword [r8 - 0x40]
and eax, ecx
xor dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
xor eax, dword [r8 - 0x3c]
and eax, ecx
xor dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x60]
xor eax, dword [r8 - 0x38]
and eax, ecx
xor dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x64]
xor eax, dword [r8 - 0x34]
and eax, ecx
xor dword [rsp + 0x64], eax
mov eax, r14d
xor eax, dword [r8 - 0x30]
and eax, ecx
xor r14d, eax
mov eax, r13d
xor eax, dword [r8 - 0x2c]
and eax, ecx
mov ecx, dword [rsp + 0x28]
xor r13d, eax
mov eax, r12d
xor eax, dword [r8 - 0x28]
and eax, edx
xor r12d, eax
mov eax, r15d
xor eax, dword [r8 - 0x24]
and eax, edx
xor r15d, eax
mov eax, esi
xor eax, dword [r8 - 0x20]
and eax, edx
xor esi, eax
mov eax, edi
xor eax, dword [r8 - 0x1c]
and eax, edx
xor edi, eax
mov eax, ebx
xor eax, dword [r8 - 0x18]
and eax, edx
xor ebx, eax
mov eax, r11d
xor eax, dword [r8 - 0x14]
and eax, edx
xor r11d, eax
mov eax, r10d
xor eax, dword [r8 - 0x10]
and eax, edx
xor r10d, eax
mov eax, r9d
xor eax, dword [r8 - 0xc]
and eax, edx
xor r9d, eax
mov eax, dword [rsp + 0x20]
inc eax
sub qword [rsp + 0x30], 1
mov dword [rsp + 0x20], eax
jne 0x1402c2790
mov dword [rsp + 0x68], r14d
lea r8, [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov rdx, r14
mov dword [rbp - 0x74], r9d
mov rcx, r14
mov dword [rbp - 0x78], r10d
mov dword [rbp - 0x7c], r11d
mov dword [rbp - 0x80], ebx
mov dword [rsp + 0x7c], edi
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x6c], r13d
call fcn.1402c1af0
mov eax, dword [rsp + 0x24]
lea rdx, [0x140487650]
mov r15, qword [rsp + 0x38]
add eax, 2
add r15, 2
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x38], r15
cmp eax, 0x40
jl 0x1402c2702
mov ebx, 4
nop
mov rdx, r14
mov rcx, r14
call fcn.1402c17d0
sub rbx, 1
jne 0x1402c28f0
xor eax, eax
lea r15, [rbp + 0x390]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], r15
shr eax, 1
lea rbx, [rbp - 0x30]
imul rsi, rax, 0x3c0
lea rax, [rbp - 0x30]
mov edi, reloc.WS2_32.dll_ntohs
sub rsi, rax
lea rax, [0x140487650]
add rsi, rax
nop word [rax + rax]
lea rdx, [rsi + rbx]
mov r8d, 0x40
mov rcx, rbx
call fcn.140295270
add rbx, 0x40
sub rdi, 1
jne 0x1402c2940
movzx edx, byte [r15]
lea rax, [rbp - 0x68]
mov r9d, dword [rbp - 0x74]
xor ecx, ecx
mov r10d, dword [rbp - 0x78]
mov r11d, dword [rbp - 0x7c]
mov ebx, dword [rbp - 0x80]
mov edi, dword [rsp + 0x7c]
mov esi, dword [rsp + 0x78]
mov r15d, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x70]
mov r13d, dword [rsp + 0x6c]
mov r14d, dword [rsp + 0x68]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x38], reloc.WS2_32.dll_recv
xor r8d, r8d
lea rax, [rax + 0x40]
cmp edx, ecx
mov ecx, dword [rsp + 0x50]
sete r8b
xor ecx, dword [rax - 0x48]
mov edx, r8d
neg r8d
neg edx
and ecx, edx
xor dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x54]
xor ecx, dword [rax - 0x44]
and ecx, edx
xor dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x58]
xor ecx, dword [rax - 0x40]
and ecx, edx
xor dword [rsp + 0x58], ecx
mov ecx, dword [rsp + 0x5c]
xor ecx, dword [rax - 0x3c]
and ecx, edx
xor dword [rsp + 0x5c], ecx
mov ecx, dword [rsp + 0x60]
xor ecx, dword [rax - 0x38]
and ecx, edx
xor dword [rsp + 0x60], ecx
mov ecx, dword [rsp + 0x64]
xor ecx, dword [rax - 0x34]
and ecx, edx
xor dword [rsp + 0x64], ecx
mov ecx, r14d
xor ecx, dword [rax - 0x30]
and ecx, edx
xor r14d, ecx
mov ecx, r13d
xor ecx, dword [rax - 0x2c]
and ecx, edx
mov edx, dword [rsp + 0x28]
xor r13d, ecx
mov ecx, r12d
xor ecx, dword [rax - 0x28]
and ecx, r8d
xor r12d, ecx
mov ecx, r15d
xor ecx, dword [rax - 0x24]
and ecx, r8d
xor r15d, ecx
mov ecx, esi
xor ecx, dword [rax - 0x20]
and ecx, r8d
xor esi, ecx
mov ecx, edi
xor ecx, dword [rax - 0x1c]
and ecx, r8d
xor edi, ecx
mov ecx, ebx
xor ecx, dword [rax - 0x18]
and ecx, r8d
xor ebx, ecx
mov ecx, r11d
xor ecx, dword [rax - 0x14]
and ecx, r8d
xor r11d, ecx
mov ecx, r10d
xor ecx, dword [rax - 0x10]
and ecx, r8d
xor r10d, ecx
mov ecx, r9d
xor ecx, dword [rax - 0xc]
and ecx, r8d
xor r9d, ecx
mov ecx, dword [rsp + 0x24]
inc ecx
sub qword [rsp + 0x38], 1
mov dword [rsp + 0x24], ecx
jne 0x1402c29a2
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov rcx, rdx
mov dword [rbp - 0x74], r9d
mov dword [rbp - 0x78], r10d
mov dword [rbp - 0x7c], r11d
mov dword [rbp - 0x80], ebx
mov dword [rsp + 0x7c], edi
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x68], r14d
call fcn.1402c1af0
mov eax, dword [rsp + 0x20]
mov r15, qword [rsp + 0x30]
add eax, 2
add r15, 2
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], r15
cmp eax, 0x40
jl 0x1402c2913
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140284180
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret