Function at 0x1400a2f10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x338
mov rax, qword [0x140398130]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov r9d, dword [rcx + 0x50]
mov rbp, rdx
mov edx, 0x80
mov qword [rsp + 0x38], rcx
sub edx, r9d
mov eax, r8d
cmp r8, rdx
mov rbx, rcx
mov rdi, r8
cmovae eax, edx
add rcx, 0x54
add rcx, r9
mov r8d, eax
mov rdx, rbp
mov r14d, eax
call fcn.140315cb0
mov ecx, dword [rbx + 0x50]
lea rax, [rdi + rcx]
cmp rax, 0x80
jae 0x1400a2f81
lea eax, [rdi + rcx]
mov dword [rbx + 0x50], eax
jmp 0x1400a347b
mov qword [rsp + 0x378], rsi
lea rax, [r14 + rbp]
sub edi, r14d
mov qword [rsp + 0x330], r12
mov esi, edi
mov qword [rsp + 0x328], r13
shr esi, 7
lea rcx, [rsp + 0x90]
xor edx, edx
mov dword [rsp + 0x28], esi
mov r8d, 0x280
mov qword [rsp + 0x320], r15
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], rax
call fcn.1403163f0
xor r15d, r15d
mov r8d, r15d
nop dword [rax]
lea eax, [r8*8]
movzx edx, byte [rax + rbx + 0x54]
shl rdx, 8
mov ecx, eax
movzx eax, byte [rax + rbx + 0x55]
or rdx, rax
shl rdx, 8
movzx eax, byte [rcx + rbx + 0x56]
or rdx, rax
movzx eax, byte [rcx + rbx + 0x57]
shl rdx, 8
or rdx, rax
movzx eax, byte [rcx + rbx + 0x58]
shl rdx, 8
or rdx, rax
movzx eax, byte [rcx + rbx + 0x59]
shl rdx, 8
or rdx, rax
movzx eax, byte [rcx + rbx + 0x5a]
shl rdx, 8
or rdx, rax
movzx eax, byte [rcx + rbx + 0x5b]
shl rdx, 8
or rdx, rax
mov eax, r8d
inc r8d
mov qword [rsp + rax*8 + 0x90], rdx
cmp r8d, 0x10
jne 0x1400a2fe0
lea rax, [rsp + 0x100]
lea r10d, [r8 + 0x30]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rax - 0x68]
mov r8, qword [rax]
lea rax, [rax + 8]
mov r9, rdx
mov rcx, rdx
ror r9, 8
shr rdx, 7
ror rcx, 1
xor r9, rcx
mov rcx, r8
xor r9, rdx
ror rcx, 0x13
mov rdx, r8
shr r8, 6
ror rdx, 0x3d
xor rdx, rcx
xor rdx, r8
add r9, rdx
add r9, qword [rax - 0x78]
add r9, qword [rax - 0x30]
mov qword [rax + 8], r9
sub r10, 1
jne 0x1400a3070
mov rax, qword [rbx + 0x20]
lea r8, [0x1403755c0]
mov r13, qword [rbx + 0x18]
mov r11, rax
mov rbp, qword [rbx + 0x10]
mov r12, r13
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x50], rax
mov r14, rax
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x58], rax
mov rsi, rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], r13
mov r13, rax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x48]
mov rbx, qword [rsp + 0x30]
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
nop
mov rdx, rsi
mov rax, rsi
ror rax, 0x12
mov rcx, rsi
ror rdx, 0x29
not rcx
xor rdx, rax
and rcx, rbx
mov rax, rsi
mov r9, r12
ror rax, 0xe
xor r9, r11
xor rdx, rax
and r9, rbp
mov rax, r13
and rax, rsi
xor rcx, rax
mov rax, rbp
add rdx, rcx
ror rax, 0x22
add rdx, qword [r15 + r8]
mov rcx, rbp
add rdx, qword [rsp + r15 + 0x90]
add rdx, rdi
ror rcx, 0x27
xor rcx, rax
mov rax, rbp
ror rax, 0x1c
xor rcx, rax
mov rax, r12
lea r10, [r14 + rdx]
and rax, r11
xor r9, rax
mov r14, r12
xor r14, rbp
lea rax, [rdx + rcx]
mov rdx, r10
add r9, rax
ror rdx, 0x29
and r14, r9
mov rax, r10
ror rax, 0x12
mov rcx, r10
xor rdx, rax
not rcx
and rcx, r13
mov rax, r10
ror rax, 0xe
xor rdx, rax
mov rax, r10
and rax, rsi
xor rcx, rax
mov rax, r9
add rdx, rcx
ror rax, 0x22
add rdx, qword [rsp + r15 + 0x98]
mov rcx, r9
add rdx, qword [r15 + r8 + 8]
add rdx, rbx
ror rcx, 0x27
xor rcx, rax
mov rax, r9
ror rax, 0x1c
xor rcx, rax
mov rax, r12
and rax, rbp
lea rdi, [r11 + rdx]
xor r14, rax
lea rax, [rdx + rcx]
mov rdx, rdi
add r14, rax
ror rdx, 0x29
mov rax, rdi
mov rcx, rdi
ror rax, 0x12
not rcx
xor rdx, rax
mov rax, rdi
ror rax, 0xe
xor rdx, rax
and rcx, rsi
mov rax, rdi
mov r11, r9
and rax, r10
xor r11, rbp
xor rcx, rax
and r11, r14
add rdx, rcx
mov rax, r14
add rdx, qword [rsp + r15 + 0xa0]
mov rcx, r14
add rdx, qword [r15 + r8 + 0x10]
ror rax, 0x22
add rdx, r13
ror rcx, 0x27
xor rcx, rax
mov rax, r14
ror rax, 0x1c
xor rcx, rax
lea rbx, [r12 + rdx]
mov rax, r9
mov r8, rbx
and rax, rbp
ror r8, 0x29
xor r11, rax
mov r12, r9
lea rax, [rdx + rcx]
xor r12, r14
add r11, rax
mov rcx, rbx
not rcx
and r12, r11
and rcx, r10
mov rax, rbx
ror rax, 0x12
mov rdx, r11
xor r8, rax
ror rdx, 0x27
mov rax, rbx
ror rax, 0xe
xor r8, rax
mov rax, rbx
and rax, rdi
xor rcx, rax
lea rax, [0x1403755c0]
add r8, rcx
add r8, qword [rsp + r15 + 0xa8]
add r8, qword [r15 + rax + 0x18]
mov rax, r11
ror rax, 0x22
add r8, rsi
xor rdx, rax
mov rax, r11
ror rax, 0x1c
xor rdx, rax
mov rax, r9
lea r13, [r8 + rbp]
and rax, r14
xor r12, rax
mov rcx, r13
not rcx
lea rax, [r8 + rdx]
and rcx, rdi
add r12, rax
mov r8, r13
ror r8, 0x29
mov rax, r13
ror rax, 0x12
mov rdx, r12
xor r8, rax
mov rax, r13
ror rax, 0xe
xor r8, rax
mov rax, rbx
and rax, r13
xor rcx, rax
lea rax, [0x1403755c0]
add r8, rcx
add r8, qword [rsp + r15 + 0xb0]
add r8, qword [r15 + rax + 0x20]
add r8, r10
lea rsi, [r9 + r8]
ror rdx, 0x27
lea r15, [r15 + 0x28]
mov rax, r12
mov rbp, r14
ror rax, 0x22
xor rbp, r11
xor rdx, rax
and rbp, r12
mov rax, r12
ror rax, 0x1c
xor rdx, rax
mov rax, r14
and rax, r11
xor rbp, rax
lea rax, [r8 + rdx]
add rbp, rax
lea r8, [0x1403755c0]
sub qword [rsp + 0x20], 1
jne 0x1400a3130
mov rdx, qword [rsp + 0x80]
mov rax, r12
add rax, qword [rsp + 0x40]
mov r15, qword [rsp + 0x320]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
add qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x48]
add rax, r11
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x50]
add rax, r14
mov qword [rbx + 0x28], rax
mov rax, qword [rsp + 0x58]
add rax, rsi
mov esi, dword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov r8d, esi
mov rax, qword [rsp + 0x60]
add rax, r13
mov qword [rbx + 0x38], rax
mov rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x30]
mov qword [rbx + 0x40], rax
mov rax, qword [rsp + 0x78]
add rax, rdi
mov qword [rbx + 0x48], rax
call fcn.1400a34a0
mov rdi, qword [rsp + 0x88]
lea rcx, [rbx + 0x54]
mov edx, esi
and edi, 0x7f
shl edx, 7
add rdx, qword [rsp + 0x80]
mov r8d, edi
call fcn.140315cb0
mov r13, qword [rsp + 0x328]
mov r12, qword [rsp + 0x330]
shl esi, 7
mov dword [rbx + 0x50], edi
lea eax, [rsi + 0x80]
mov rsi, qword [rsp + 0x378]
add qword [rbx + 8], rax
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1403139c0
add rsp, 0x338
pop r14
pop rdi
pop rbp
pop rbx
ret