Function at 0x1400ad160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1402f3440]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov ebx, r8d
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov eax, r8d
sar eax, 0x10
lea ecx, [rax*8]
add rcx, qword [0x1402f80d0]
mov rdx, qword [0x1402f81c0]
add rdx, 0x10
add rdx, rcx
call fcn.1400b8390
mov rcx, rax
movzx eax, bx
lea r15, [rcx + rax*2]
mov rdx, r15
call fcn.1400b85f0
movzx ecx, ax
shr ecx, 6
test ecx, ecx
je 0x1400ad3db
mov r14d, r12d
mov esi, ecx
mov ebx, r12d
nop dword [rax]
nop dword [rax + rax]
mov byte [rsp + 0x40], r12b
mov dword [rsp + 0x5c], r12d
mov ecx, r14d
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 [0x1402f8928]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x38], r12
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x58]
mov rcx, qword [0x1402f8930]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
cmp byte [0x1402f8938], r12b
mov edx, 0x222404
jne 0x1400ad26f
mov edx, 0x220c58
call qword [0x1402f8800]
movzx eax, byte [rsp + 0x40]
mov byte [rbp + rbx - 0x60], al
inc r14d
inc rbx
cmp rbx, rsi
jl 0x1400ad200
mov rax, qword [0x1402f81c0]
add rax, 0x1200051c
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x7c], r12d
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x44]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 4
mov eax, dword [0x1402f8928]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x38], r12
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x78]
mov rcx, qword [0x1402f8930]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
cmp byte [0x1402f8938], r12b
mov edx, 0x222404
jne 0x1400ad2fc
mov edx, 0x220c58
call qword [0x1402f8800]
mov edx, dword [rsp + 0x44]
mov eax, edx
mov ecx, edx
shl eax, 8
shr ecx, 8
or ecx, eax
lea rax, [rbp - 0x60]
mov r8, rsi
shr edx, 7
nop dword [rax]
add ecx, edx
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x1400ad320
mov byte [rbp + rsi - 0x60], r12b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x1400ad350
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14005c560
mov dword [rsp + 0x48], 1
mov rcx, qword [rdi + 0x10]
cmp rsi, rcx
ja 0x1400ad38d
mov qword [rdi + 0x10], rsi
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400ad387
mov rax, qword [rdi]
mov byte [rax + rsi], 0
jmp 0x1400ad3d8
mov r14, rsi
sub r14, rcx
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x1400ad3ca
mov qword [rdi + 0x10], rsi
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400ad3b2
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, r14
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + r14], 0
jmp 0x1400ad3d8
mov r9, r14
mov rdx, r14
mov rcx, rdi
call fcn.140063030
mov rax, rdi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1402352c0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret