Function at 0x1400ba990
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 - 0x380]
sub rsp, 0x480
mov rax, qword [0x140304440]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov ebx, r8d
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x58], 0
mov eax, r8d
sar eax, 0x10
lea ecx, [rax*8]
add rcx, qword [0x140309928]
mov rdx, qword [0x140309a20]
add rdx, 0x10
add rdx, rcx
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [0x140308c10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 8
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x38]
mov ecx, 0x2052504d
call fcn.14005ae50
movzx ecx, bx
mov rax, qword [rsp + 0x30]
lea r13, [rax + rcx*2]
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
mov rax, qword [0x140308c10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 2
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x38]
mov ecx, 0x2052504d
call fcn.14005ae50
movzx r12d, word [rsp + 0x30]
shr r12d, 6
test r12d, r12d
je 0x1400bac51
xor r15d, r15d
mov r14d, r12d
test r12d, r12d
je 0x1400bab15
xor ebx, ebx
nop
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov rax, qword [0x140308c10]
mov qword [rsp + 0x38], rax
mov ecx, r15d
add rcx, 2
add rcx, r13
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x38]
mov ecx, 0x2052504d
call fcn.14005ae50
movzx eax, byte [rsp + 0x30]
mov byte [rsp + rbx + 0x70], al
inc r15d
inc rbx
cmp rbx, r14
jl 0x1400baab0
lea rbx, [rsp + 0x70]
mov rdx, qword [0x140309a20]
add rdx, 0x12894800
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov rax, qword [0x140308c10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 4
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x38]
mov ecx, 0x2052504d
call fcn.14005ae50
mov edi, dword [rsp + 0x30]
shr edi, 5
xor r8d, r8d
mov edx, r8d
nop dword [rax]
movsx ecx, byte [rbx]
mov eax, ecx
shr eax, 4
shl cl, 4
xor cl, al
xor cl, dil
lea edi, [rdi + rdx*8]
inc edx
and cl, 0xf0
xor cl, al
mov byte [rbx], cl
lea rbx, [rbx + 1]
cmp edx, r12d
jl 0x1400bab80
mov byte [rsp + r12 + 0x70], r8b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], r8
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400babc4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14005f140
mov dword [rsp + 0x58], 1
mov rcx, qword [rsi + 0x10]
cmp r14, rcx
ja 0x1400bac04
mov qword [rsi + 0x10], r14
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400babfd
mov rax, qword [rsi]
mov byte [rax + r12], 0
jmp 0x1400bac4e
mov rbx, r14
sub rbx, rcx
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x1400bac40
mov qword [rsi + 0x10], r14
mov rax, rsi
cmp rdx, 0xf
jbe 0x1400bac29
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov byte [rdi + rbx], 0
jmp 0x1400bac4e
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.1400658c0
mov rax, rsi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140242520
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret