Function at 0x14009dc60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140219100]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, rdx
mov r13, rcx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rcx
mov rdi, qword [rdx + 0x10]
mov r14, rdi
shr r14, 4
lea r12d, [r14 + 1]
shl r12d, 4
mov dword [rsp + 0x30], r12d
lea eax, [r12 + 1]
movsxd rsi, eax
mov rcx, rsi
call fcn.1400a97b0
mov r15, rax
mov qword [rsp + 0x70], rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140146a90
cmp qword [rbx + 0x18], 0xf
jbe 0x14009dce7
mov rbx, qword [rbx]
mov rcx, r15
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14009dcf0
and edi, 0xf
mov edx, sendto
sub edx, edi
test edx, edx
jle 0x14009dd23
movsxd rax, r14d
shl rax, 4
mov ecx, edi
add rax, r15
add rcx, rax
mov r8d, edx
call fcn.140146a90
movsxd r12, r12d
mov byte [r12 + r15], 0
mov rcx, rsi
call fcn.1400a97b0
mov rbx, rax
mov qword [rsp + 0x58], rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140146a90
lea rax, vtable.AES.0
mov qword [rbp - 0x80], rax
mov byte [rbp - 0x78], 0
mov qword [rbp + 0x34c], 0
mov dword [rbp + 0x354], 0
lea rcx, [rbp - 0x80]
call fcn.14009d7d0
movzx r8d, byte [rbp - 0x78]
test r8b, r8b
je 0x14009e162
test r12, r12
je 0x14009e162
movsxd r9, dword [rbp + 0x350]
mov rcx, r9
xor edx, edx
mov rax, r12
div r9
test rdx, rdx
jne 0x14009e162
mov dword [rsp + 0x40], edx
mov r10, r15
mov qword [rsp + 0x48], r15
mov r12, rbx
mov qword [rsp + 0x50], rbx
movsxd rax, dword [rsp + 0x30]
div rcx
test rax, rax
je 0x14009e162
lea r11, [0x140000000]
lea rcx, [rbp + 0x378]
test r8b, r8b
je 0x14009de11
xor edx, edx
test r9d, r9d
jle 0x14009de11
lea rax, [rbp + 0x378]
mov r8, r10
sub r8, rax
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
inc edx
mov r9d, dword [rbp + 0x350]
cmp edx, r9d
jl 0x14009ddf3
movzx r8d, byte [rbp - 0x78]
lea rcx, [rbp + 0x378]
test r8b, r8b
je 0x14009e0f9
cmp r9d, 0x10
jne 0x14009de3f
mov r8, r12
lea rdx, [rbp + 0x378]
lea rcx, [rbp - 0x80]
call fcn.14009cf90
jmp 0x14009e0f2
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
xor eax, eax
cmp r13d, 4
je 0x14009de60
cmp r13d, 6
setne al
inc rax
shl rax, 5
mov r15d, dword [rax + r11 + 0x1f1cd8]
mov dword [rsp + 0x44], r15d
mov ebx, dword [rax + r11 + 0x1f1ce0]
mov dword [rsp + 0x38], ebx
mov esi, dword [rax + r11 + 0x1f1ce8]
mov dword [rsp + 0x3c], esi
lea r10, [rbp + 0x3d8]
xor r11d, r11d
test r13d, r13d
jle 0x14009deed
nop dword [rax + rax]
movzx eax, byte [rcx]
shl eax, 0x18
mov dword [r10], eax
movzx edx, byte [rcx + 1]
shl edx, 0x10
or edx, eax
mov dword [r10], edx
movzx r8d, byte [rcx + 2]
shl r8d, 8
or r8d, edx
mov dword [r10], r8d
movzx eax, byte [rcx + 3]
lea rcx, [rcx + 4]
mov rdx, r10
add r10, 4
or r8d, eax
xor r8d, dword [rbp + r11*4 - 0x74]
mov dword [rdx], r8d
inc r11
cmp r11, r13
jl 0x14009dea0
mov r9d, dword [rbp + 0x350]
mov r14d, 1
mov dword [rsp + 0x34], r14d
mov eax, dword [rbp + 0x354]
cmp eax, r14d
jle 0x14009e027
lea eax, [r13*4]
cdqe
mov qword [rsp + 0x68], rax
mov r12, 0xfffffffffffffbd4
nop dword [rax]
xor esi, esi
test r13d, r13d
jle 0x14009dfe0
mov ebx, r15d
mov r10d, dword [rsp + 0x38]
sub r10d, r15d
mov r11d, dword [rsp + 0x3c]
sub r11d, r15d
lea r15, [rbp + 0x3d8]
add r15, r12
lea r14, [0x140000000]
nop
lea eax, [r10 + rbx]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3d8]
sar rcx, 8
movzx r8d, cl
lea eax, [r11 + rbx]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3d8]
mov r9d, dword [r14 + r8*4 + 0x1ef7d0]
xor r9d, dword [r14 + rcx*4 + 0x1f0cd0]
mov eax, ebx
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3d8]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r14 + rax*4 + 0x1efbd0]
movzx eax, byte [rbp + rsi*4 + 0x3db]
xor r9d, dword [r14 + rax*4 + 0x1effd0]
xor r9d, dword [r15 + rsi*4]
mov dword [rbp + rsi*4 + 0x3b8], r9d
inc ebx
inc rsi
cmp rsi, r13
jl 0x14009df50
mov r14d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x44]
mov r8, qword [rsp + 0x68]
lea rdx, [rbp + 0x3b8]
lea rcx, [rbp + 0x3d8]
call fcn.140146270
inc r14d
mov dword [rsp + 0x34], r14d
add r12, 0x20
mov eax, dword [rbp + 0x354]
cmp r14d, eax
jl 0x14009df20
mov r9d, dword [rbp + 0x350]
mov ebx, dword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
mov r12, qword [rsp + 0x50]
xor r11d, r11d
test r13d, r13d
jle 0x14009e0f9
cdqe
mov r10, r12
sub r15d, ebx
sub esi, ebx
shl rax, 5
lea r14, [rbp - 0x74]
add r14, rax
lea r9, [0x140000000]
nop
mov r8d, dword [r14 + r11*4]
movzx ecx, byte [rbp + r11*4 + 0x3db]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r9 + 0x1f07d0]
mov byte [r10], al
lea eax, [rbx + r15]
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3d8]
sar rcx, 0x10
movzx edx, cl
mov eax, r8d
sar eax, 0x10
xor al, byte [rdx + r9 + 0x1f07d0]
mov byte [r10 + 1], al
mov eax, ebx
cdq
idiv r13d
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3d8]
sar rcx, 8
movzx edx, cl
mov eax, r8d
sar eax, 8
xor al, byte [rdx + r9 + 0x1f07d0]
mov byte [r10 + 2], al
lea eax, [rbx + rsi]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3d8]
xor r8b, byte [rcx + r9 + 0x1f07d0]
mov byte [r10 + 3], r8b
lea r10, [r10 + 4]
inc ebx
inc r11
cmp r11, r13
jl 0x14009e050
mov r9d, dword [rbp + 0x350]
movsxd r8, r9d
mov rdx, r12
lea rcx, [rbp + 0x378]
call fcn.140146270
movsxd r9, dword [rbp + 0x350]
mov r10, qword [rsp + 0x48]
add r10, r9
mov qword [rsp + 0x48], r10
add r12, r9
mov qword [rsp + 0x50], r12
mov r11d, dword [rsp + 0x40]
inc r11d
mov dword [rsp + 0x40], r11d
xor edx, edx
movsxd rax, dword [rsp + 0x30]
div r9
mov rcx, rax
movsxd rax, r11d
cmp rax, rcx
jae 0x14009e153
movzx r8d, byte [rbp - 0x78]
jmp 0x14009ddcc
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
mov r13, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, r13
call fcn.14009e770
mov rcx, r15
call fcn.1400a9310
mov rcx, rbx
call fcn.1400a9310
nop
mov rax, r13
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400a9050
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret