Function at 0x1400315b0
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 [0x14018c010]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rcx
mov rsi, qword [rdx + 0x10]
mov rdi, rsi
shr rdi, 4
lea eax, [rdi + 1]
shl eax, 4
mov dword [rsp + 0x30], eax
inc eax
movsxd r14, eax
mov rcx, r14
call fcn.140130670
mov r15, rax
mov qword [rsp + 0x70], rax
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0x10
jb 0x140031631
mov rbx, qword [rbx]
mov rcx, r15
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140031640
and esi, 0xf
mov r8d, recvfrom
mov edx, r8d
sub edx, esi
test edx, edx
jle 0x140031675
mov eax, esi
sub r8, rax
shl edi, 4
add edi, esi
movsxd rcx, edi
add rcx, r15
call sub.VCRUNTIME140.dll_memset
movsxd rbx, dword [rsp + 0x30]
mov byte [rbx + r15], 0
mov rcx, r14
call fcn.140130670
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
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.140030db0
movzx r8d, byte [rbp - 0x78]
test r8b, r8b
je 0x140031ab5
test rbx, rbx
je 0x140031ab5
movsxd r9, dword [rbp + 0x350]
mov rcx, r9
xor edx, edx
mov rax, rbx
div r9
test rdx, rdx
jne 0x140031ab5
mov dword [rsp + 0x3c], edx
mov r10, r15
mov qword [rsp + 0x50], r15
mov rbx, rdi
mov qword [rsp + 0x40], rbx
movsxd rax, dword [rsp + 0x30]
div rcx
test rax, rax
je 0x140031ab5
lea r12, [0x140000000]
nop word [rax + rax]
lea rcx, [rbp + 0x378]
test r8b, r8b
je 0x14003176e
xor edx, edx
test r9d, r9d
jle 0x14003176e
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 0x140031750
movzx r8d, byte [rbp - 0x78]
lea rcx, [rbp + 0x378]
test r8b, r8b
je 0x140031a4c
cmp r9d, 0x10
jne 0x1400317a3
mov r8, rbx
lea rdx, [rbp + 0x378]
lea rcx, [rbp - 0x80]
call fcn.140030570
mov r9d, dword [rbp + 0x350]
jmp 0x140031a4c
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
xor eax, eax
cmp r13d, 4
je 0x1400317c4
cmp r13d, 6
setne al
inc rax
shl rax, 5
mov esi, dword [rax + r12 + 0x152ad8]
mov dword [rsp + 0x48], esi
mov ebx, dword [rax + r12 + 0x152ae0]
mov dword [rsp + 0x34], ebx
mov r15d, dword [rax + r12 + 0x152ae8]
mov dword [rsp + 0x38], r15d
lea r10, [rbp + 0x3d8]
xor r11d, r11d
test r13d, r13d
jle 0x14003184d
nop dword [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 0x140031800
mov r9d, dword [rbp + 0x350]
mov r12d, 1
mov eax, dword [rbp + 0x354]
cmp eax, r12d
jle 0x140031976
lea eax, [r13*4]
cdqe
mov qword [rsp + 0x68], rax
mov r14, 0xfffffffffffffbd4
nop dword [rax + rax]
xor r15d, r15d
test r13d, r13d
jle 0x140031938
mov ebx, esi
mov r10d, dword [rsp + 0x34]
sub r10d, esi
mov r11d, dword [rsp + 0x38]
sub r11d, esi
lea rsi, [0x140000000]
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 [rsi + r8*4 + 0x1505d0]
xor r9d, dword [rsi + rcx*4 + 0x151ad0]
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 [rsi + rax*4 + 0x1509d0]
movzx eax, byte [rbp + r15*4 + 0x3db]
xor r9d, dword [rsi + rax*4 + 0x150dd0]
lea rax, [r14 + r15*4]
xor r9d, dword [rbp + rax + 0x3d8]
mov dword [rbp + r15*4 + 0x3b8], r9d
inc ebx
inc r15
cmp r15, r13
jl 0x1400318a5
mov esi, dword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
lea rdx, [rbp + 0x3b8]
lea rcx, [rbp + 0x3d8]
call sub.VCRUNTIME140.dll_memcpy
inc r12d
add r14, 0x20
mov eax, dword [rbp + 0x354]
cmp r12d, eax
jl 0x140031880
mov r9d, dword [rbp + 0x350]
mov ebx, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x38]
xor r14d, r14d
lea r12, [0x140000000]
test r13d, r13d
jle 0x140031a47
movsxd r11, eax
mov r10, qword [rsp + 0x40]
shl r11, 5
sub esi, ebx
sub r15d, ebx
nop word [rax + rax]
lea rax, [r11 + r14*4]
mov r8d, dword [rbp + rax - 0x74]
movzx ecx, byte [rbp + r14*4 + 0x3db]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r12 + 0x1515d0]
mov byte [r10], al
lea eax, [rbx + rsi]
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 + r12 + 0x1515d0]
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 + r12 + 0x1515d0]
mov byte [r10 + 2], al
lea eax, [rbx + r15]
cdq
idiv r13d
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3d8]
xor r8b, byte [rcx + r12 + 0x1515d0]
mov byte [r10 + 3], r8b
lea r10, [r10 + 4]
inc ebx
inc r14
cmp r14, r13
jl 0x1400319a0
mov rbx, qword [rsp + 0x40]
movsxd r8, r9d
mov rdx, rbx
lea rcx, [rbp + 0x378]
call sub.VCRUNTIME140.dll_memcpy
movsxd r9, dword [rbp + 0x350]
mov r10, qword [rsp + 0x50]
add r10, r9
mov qword [rsp + 0x50], r10
add rbx, r9
mov qword [rsp + 0x40], rbx
mov r11d, dword [rsp + 0x3c]
inc r11d
mov dword [rsp + 0x3c], r11d
xor edx, edx
movsxd rax, dword [rsp + 0x30]
div r9
mov rcx, rax
movsxd rax, r11d
cmp rax, rcx
jae 0x140031aa6
movzx r8d, byte [rbp - 0x78]
jmp 0x140031730
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, r12
call fcn.140032b20
mov rcx, r15
call fcn.140036bd0
mov rcx, rdi
call fcn.140036bd0
nop
mov rax, r12
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140130030
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret