Function at 0x1400be460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140309440]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov ebx, r8d
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
mov eax, r8d
sar eax, 0x10
lea ecx, [rax*8]
add rcx, qword [0x140389270]
mov rdx, qword [0x140389358]
add rdx, 0x10
add rdx, rcx
call fcn.1400c9ec0
mov rcx, rax
movzx eax, bx
lea r15, [rcx + rax*2]
mov rdx, r15
call fcn.1400ca1b0
movzx r12d, ax
shr r12d, 6
test r12d, r12d
je 0x1400be6df
mov esi, r13d
mov r14d, r12d
mov ebx, r13d
nop word [rax + rax]
mov byte [rsp + 0x40], r13b
mov dword [rsp + 0x5c], r13d
mov ecx, esi
add rcx, 2
add rcx, r15
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
mov eax, dword [0x140389968]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x38], r13
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x58]
mov rcx, qword [0x140389970]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
cmp byte [0x140389978], r13b
mov edx, 0x222404
jne 0x1400be56e
mov edx, 0x220c58
call qword [0x1403895b8]
movzx eax, byte [rsp + 0x40]
mov byte [rbp + rbx - 0x60], al
inc esi
inc rbx
cmp rbx, r14
jl 0x1400be500
lea rbx, [rbp - 0x60]
mov rax, qword [0x140389358]
add rax, 0x1223fb2c
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x7c], r13d
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x44]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 4
mov eax, dword [0x140389968]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x38], r13
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x78]
mov rcx, qword [0x140389970]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
cmp byte [0x140389978], r13b
mov edx, 0x222404
jne 0x1400be5fe
mov edx, 0x220c58
call qword [0x1403895b8]
mov edx, dword [rsp + 0x44]
shr edx, 5
mov r8d, r13d
nop
movsx ecx, byte [rbx]
mov eax, ecx
shr eax, 4
shl cl, 4
xor cl, al
xor cl, dl
lea edx, [rdx + r8*8]
inc r8d
and cl, 0xf0
xor cl, al
mov byte [rbx], cl
lea rbx, [rbx + 1]
cmp r8d, r12d
jl 0x1400be610
mov byte [rbp + r12 - 0x60], r13b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x1400be654
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14005fd70
mov dword [rsp + 0x48], 1
mov rcx, qword [rdi + 0x10]
cmp r14, rcx
ja 0x1400be692
mov qword [rdi + 0x10], r14
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400be68b
mov rax, qword [rdi]
mov byte [rax + r12], 0
jmp 0x1400be6dc
mov rsi, r14
sub rsi, rcx
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400be6ce
mov qword [rdi + 0x10], r14
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400be6b7
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rsi], 0
jmp 0x1400be6dc
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
call fcn.140066730
mov rax, rdi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140246e90
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret