Function at 0x1400f66f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
lea rbp, [rsp + 0x20]
xor edi, edi
mov rsi, rdx
xor edx, edx
mov rbx, rcx
mov r15d, edi
lea r8d, [rdi + 0x58]
call sub.VCRUNTIME140.dll_memset
movsxd r8, dword [rsi + 4]
mov eax, edi
test r8d, r8d
jle 0x1400f6741
mov rdx, qword [rsi + 8]
nop dword [rax + rax]
cmp byte [rdx + rax], dil
jle 0x1400f6739
inc r15d
inc rax
cmp rax, r8
jl 0x1400f6730
mov dword [rbx + 4], r8d
mov dword [rbx + 8], r15d
mov eax, dword [rsi]
mov dword [rbx], eax
test r15d, r15d
jle 0x1400f6d2b
mov edx, dword [rsi + 4]
mov r8d, r15d
mov rcx, qword [rsi + 8]
call fcn.1400f7620
movsxd r14, r15d
mov r13, rax
movabs r12, 0xffffffffffffff0
lea rcx, [r14*8]
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400f6789
mov rax, r12
and rax, 0xfffffffffffffff0
call fcn.1401748a0
sub rsp, rax
lea r10, [rsp + 0x20]
mov qword [rbp + 0x50], r10
test r13, r13
jne 0x1400f67ff
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f67b1
call fcn.1401f4e52
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400f67bf
call fcn.1401f4e52
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400f67cd
call fcn.1401f4e52
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400f67db
call fcn.1401f4e52
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400f67e9
call fcn.1401f4e52
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
jmp 0x1400f6d2d
mov r9d, edi
mov r8, rdi
test r15d, r15d
jle 0x1400f689d
nop
mov ecx, dword [r13 + r8*4]
rol ecx, 0x10
mov eax, ecx
mov edx, ecx
shl ecx, 8
shr edx, 8
shl eax, 8
xor edx, eax
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 4
shl eax, 4
xor ecx, eax
shl edx, 4
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [rcx*4]
xor edx, eax
lea eax, [rcx*4]
and edx, 0x33333333
xor edx, eax
mov ecx, edx
shr ecx, 1
lea eax, [rdx + rdx]
xor ecx, eax
lea eax, [rdx + rdx]
and ecx, 0x55555555
xor ecx, eax
movsxd rax, r9d
mov dword [r13 + r8*4], ecx
inc r9d
lea rcx, [rax*4]
add rcx, r13
mov qword [r10 + r8*8], rcx
inc r8
cmp r8, r14
jl 0x1400f6810
lea r9, [0x1400f7800]
mov r8d, 8
mov rdx, r14
mov rcx, r10
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
lea rcx, [r14*4]
lea rax, [rcx + 0xf]
mov qword [rbp + 0x58], rcx
cmp rax, rcx
ja 0x1400f68cd
mov rax, r12
and rax, 0xfffffffffffffff0
call fcn.1401748a0
sub rsp, rax
lea r12, [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbx + 0x20], rax
mov edx, edi
mov rcx, rdi
test r15d, r15d
jle 0x1400f6949
mov r8, qword [rbp + 0x50]
nop word [rax + rax]
mov rax, qword [r8 + rcx*8]
inc rcx
sub rax, r13
sar rax, 2
cdqe
mov dword [r12 + rax*4], edx
inc edx
cmp rcx, r14
jl 0x1400f6900
test r15d, r15d
jle 0x1400f6949
mov rdx, r13
mov r9, r12
sub rdx, r12
nop dword [rax]
movsxd r8, dword [r9]
mov eax, dword [rdx + r9]
add r9, 4
mov rcx, qword [rbx + 0x20]
mov dword [rcx + r8*4], eax
sub r14, 1
jne 0x1400f6930
mov rcx, r13
call fcn.1401f4e52
mov r8, r12
mov edx, r15d
mov rcx, rsi
call fcn.1400f6dc0
mov rcx, qword [rbp + 0x58]
mov qword [rbx + 0x18], rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, edi
mov qword [rbx + 0x28], rax
mov r10d, edi
cmp dword [rsi + 4], edx
jle 0x1400f69a5
mov r8, rdi
mov r9, r12
mov rax, qword [rsi + 8]
cmp byte [r8 + rax], dil
jle 0x1400f699b
movsxd rcx, dword [r9]
inc r10d
mov rax, qword [rbx + 0x28]
add r9, 4
mov dword [rax + rcx*4], edx
inc edx
inc r8
cmp edx, dword [rsi + 4]
jl 0x1400f6980
movsxd rcx, r10d
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbx + 0x30], rax
mov r15d, edi
mov dword [rbx + 0x44], edi
mov r8d, edi
cmp dword [rsi + 4], edi
jle 0x1400f6a32
mov rdx, rdi
mov rax, qword [rsi + 8]
movzx r9d, byte [rdx + rax]
test r9b, r9b
jle 0x1400f69f6
movsxd rcx, dword [r12]
inc r15d
mov rax, qword [rbx + 0x30]
add r12, 4
mov byte [rcx + rax], r9b
mov rax, qword [rsi + 8]
movsx ecx, byte [rdx + rax]
mov eax, dword [rbx + 0x44]
cmp ecx, eax
cmovg eax, ecx
mov dword [rbx + 0x44], eax
inc r8d
inc rdx
cmp r8d, dword [rsi + 4]
jl 0x1400f69c2
cmp r15d, 1
jne 0x1400f6a32
cmp dword [rbx + 0x44], r15d
jne 0x1400f6a32
lea edx, [r15 + 3]
mov dword [rbx + 0x40], r15d
lea ecx, [rdx - 2]
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbx + 0x38], rax
mov dword [rax + 4], r15d
mov rax, qword [rbx + 0x38]
mov dword [rax], r15d
jmp 0x1400f6d2b
mov eax, dword [rbx + 8]
mov ecx, edi
test eax, eax
je 0x1400f6a46
nop dword [rax + rax]
inc ecx
shr eax, 1
jne 0x1400f6a40
add ecx, 0xfffffffc
mov eax, 5
cmp ecx, eax
mov edx, 4
cmovl ecx, eax
mov eax, 8
cmp ecx, 8
cmovg ecx, eax
mov eax, 1
shl eax, cl
mov dword [rbx + 0x40], ecx
movsxd rcx, eax
mov dword [rbp + 0x58], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbx + 0x38], rax
mov r9, rdi
movsxd r12, r15d
test r15d, r15d
jle 0x1400f6b77
mov r10d, 1
mov rax, qword [rbx + 0x30]
mov esi, dword [rbx + 0x40]
movsx r14d, byte [r9 + rax]
cmp r14d, esi
jg 0x1400f6b68
mov rax, qword [rbx + 0x20]
sub esi, r14d
mov r8d, edi
mov ecx, dword [rax + r9*4]
rol ecx, 0x10
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shl eax, 4
shl edx, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [rcx*4]
xor edx, eax
lea eax, [rcx*4]
and edx, 0x33333333
movzx ecx, sil
xor edx, eax
mov r11d, edx
shr r11d, 1
lea eax, [rdx + rdx]
xor r11d, eax
lea eax, [rdx + rdx]
and r11d, 0x55555555
xor r11d, eax
mov eax, 1
shl eax, cl
test eax, eax
jle 0x1400f6b68
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
movzx ecx, byte [r9 + rax]
mov eax, r8d
shl eax, cl
inc r8d
mov ecx, eax
mov rax, qword [rbx + 0x38]
or rcx, r11
mov dword [rax + rcx*4], r10d
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x40]
movsx edx, byte [r9 + rax]
sub ecx, edx
mov edx, 1
shl edx, cl
cmp r8d, edx
jl 0x1400f6b30
inc r10d
inc r9
cmp r9, r12
jl 0x1400f6a91
mov edx, edi
mov ecx, 0x1f
sub ecx, dword [rbx + 0x40]
mov r13d, 0xfffffffe
shl r13d, cl
mov r14d, edi
mov dword [rbp + 0x50], edx
cmp dword [rbp + 0x58], edx
jle 0x1400f6d2b
mov rsi, rdi
mov r11, rdi
nop
mov r9, qword [rbx + 0x38]
mov r8d, edx
mov ecx, 0x20
mov qword [rbp + 0x68], r9
sub ecx, dword [rbx + 0x40]
shl r8d, cl
mov edx, r8d
rol edx, 0x10
mov ecx, edx
mov dword [rbp + 0x60], edx
shr ecx, 8
mov eax, edx
shl eax, 8
xor ecx, eax
mov eax, edx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov edx, ecx
mov eax, ecx
shr edx, 4
shl ecx, 4
shl eax, 4
xor edx, eax
and edx, 0xf0f0f0f
xor edx, ecx
mov ecx, edx
shr ecx, 2
lea eax, [rdx*4]
xor ecx, eax
lea eax, [rdx*4]
and ecx, 0x33333333
xor ecx, eax
mov edx, ecx
shr rdx, 1
lea eax, [rcx + rcx]
add ecx, ecx
xor rdx, rax
and edx, 0x55555555
xor rdx, rcx
cmp dword [r9 + rdx*4], 0
jne 0x1400f6d1a
lea ecx, [rdi + 1]
cmp ecx, r15d
jge 0x1400f6c56
mov rdx, qword [rbx + 0x20]
add rdx, 4
lea rdx, [rdx + rsi*4]
cmp dword [rdx], r8d
ja 0x1400f6c56
inc edi
inc ecx
inc rsi
add rdx, 4
cmp ecx, r15d
jl 0x1400f6c41
cmp r11, r12
jge 0x1400f6c7c
mov rax, qword [rbx + 0x20]
lea rcx, [rax + r11*4]
mov eax, dword [rcx]
and eax, r13d
cmp r8d, eax
jb 0x1400f6c7c
inc r14d
inc r11
add rcx, 4
cmp r11, r12
jl 0x1400f6c63
mov ecx, dword [rbp + 0x60]
mov eax, 0x7fff
mov edx, ecx
mov r9d, r15d
sub r9d, r14d
mov r10d, edi
cmp edi, eax
cmova r10d, eax
cmp r9d, eax
cmova r9d, eax
mov eax, ecx
shl eax, 8
or r10d, 0xffff0000
shr edx, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
shl r10d, 0xf
xor edx, ecx
or r10d, r9d
mov eax, edx
mov ecx, edx
shl eax, 4
shl edx, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor ecx, edx
mov r8d, ecx
shr r8d, 2
lea eax, [rcx*4]
xor r8d, eax
lea eax, [rcx*4]
and r8d, 0x33333333
xor r8d, eax
mov edx, r8d
shr rdx, 1
lea eax, [r8 + r8]
xor rdx, rax
lea ecx, [r8 + r8]
mov rax, qword [rbp + 0x68]
and edx, 0x55555555
xor rdx, rcx
mov dword [rax + rdx*4], r10d
mov edx, dword [rbp + 0x50]
inc edx
mov dword [rbp + 0x50], edx
cmp edx, dword [rbp + 0x58]
jl 0x1400f6ba0
xor eax, eax
lea rsp, [rbp + 8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret