Function at 0x14007ebe0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12, rcx
mov ecx, 1
push rdi
push rsi
mov rsi, rdx
mov edx, 0x60
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14007f12f
mov rbx, rax
mov r8d, 0x1f
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov byte [rbx + 0x1f], 0
mov rcx, rbx
mov qword [rbx + 0x20], rsi
call sub.msvcrt.dll_strlen
mov r8, rbx
mov r10, rax
cmp eax, 0xb
jbe 0x14007f10f
mov r9d, eax
mov esi, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
nop dword [rax]
movzx edx, byte [r8 + 5]
movzx eax, byte [r8 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r8 + 4]
add edx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r8 + 9]
add edx, esi
movzx esi, byte [r8 + 0xa]
shl eax, 8
shl esi, 0x10
add eax, esi
movzx esi, byte [r8 + 8]
add eax, esi
movzx esi, byte [r8 + 0xb]
shl esi, 0x18
add eax, esi
movzx esi, byte [r8 + 2]
add eax, ecx
movzx ecx, byte [r8 + 1]
shl esi, 0x10
shl ecx, 8
add ecx, esi
movzx esi, byte [r8]
add ecx, esi
movzx esi, byte [r8 + 3]
shl esi, 0x18
add ecx, esi
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, r11d
mov r11d, eax
shr r11d, 0xd
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 8
xor edx, r11d
sub eax, edx
mov r11d, eax
mov eax, edx
shr eax, 0xd
xor eax, r11d
sub ecx, edx
sub r9d, 0xc
add r8, 0xc
sub ecx, eax
sub edx, eax
mov r11d, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r11d
sub eax, edx
sub ecx, edx
mov r11d, eax
mov eax, edx
shr eax, 5
xor eax, r11d
mov r11d, eax
sub ecx, eax
sub edx, eax
shr r11d, 3
xor r11d, ecx
mov esi, r11d
sub edx, r11d
sub eax, r11d
shl esi, 0xa
xor esi, edx
mov ecx, esi
sub eax, esi
shr ecx, 0xf
xor ecx, eax
cmp r9d, 0xb
ja 0x14007ec58
add ecx, r10d
cmp r9d, 0xb
ja case.0x14007ed70.0
lea rdx, [0x1402af498]
movsxd rax, dword [rdx + r9*4]
add rax, rdx
jmp rax
movzx eax, byte [r8 + 0xa]
shl eax, 0x18
add ecx, eax
movzx eax, byte [r8 + 9]
shl eax, 0x10
add ecx, eax
movzx eax, byte [r8 + 8]
shl eax, 8
add ecx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [r8 + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [r8 + 5]
shl eax, 8
add esi, eax
movzx eax, byte [r8 + 4]
add esi, eax
movzx eax, byte [r8 + 3]
shl eax, 0x18
add r11d, eax
movzx eax, byte [r8 + 2]
shl eax, 0x10
add r11d, eax
movzx eax, byte [r8 + 1]
shl eax, 8
add r11d, eax
movzx eax, byte [r8]
add r11d, eax
lea eax, [rcx + rsi]
mov edx, ecx
sub esi, ecx
mov qword [rbx + 0x50], rbx
sub r11d, eax
shr edx, 0xd
movd xmm0, r10d
xor edx, r11d
mov eax, edx
sub esi, edx
sub ecx, edx
shl eax, 8
xor eax, esi
sub ecx, eax
sub edx, eax
mov r8d, ecx
mov ecx, eax
shr ecx, 0xd
xor ecx, r8d
mov r8d, ecx
sub edx, ecx
sub eax, ecx
shr r8d, 0xc
xor r8d, edx
mov edx, r8d
sub eax, r8d
sub ecx, r8d
shl edx, 0x10
xor edx, eax
mov eax, edx
sub ecx, edx
sub r8d, edx
shr eax, 5
xor eax, ecx
mov ecx, eax
sub r8d, eax
sub edx, eax
shr ecx, 3
xor ecx, r8d
mov esi, ecx
sub edx, ecx
sub eax, ecx
shl esi, 0xa
xor esi, edx
sub eax, esi
shr esi, 0xf
xor esi, eax
mov rax, qword [0x1403ee7d8]
movd xmm1, esi
punpckldq xmm0, xmm1
movq qword [rbx + 0x58], xmm0
test rax, rax
je 0x14007f080
mov rdx, qword [rax + 0x28]
mov qword [rbx + 0x38], 0
lea r12, [rbx + 0x28]
mov qword [rbx + 0x28], rdx
mov rcx, qword [rax + 0x28]
mov rdx, qword [rcx + 0x18]
sub rdx, qword [rcx + 0x20]
mov qword [rbx + 0x30], rdx
mov rdx, qword [rax + 0x28]
mov rdx, qword [rdx + 0x18]
mov qword [rdx + 0x10], rbx
mov rdx, qword [rax + 0x28]
mov qword [rdx + 0x18], r12
mov rdi, qword [rax + 0x28]
mov edx, dword [rdi + 0x10]
add edx, 1
mov dword [rdi + 0x10], edx
mov rdx, qword [rax + 0x28]
mov eax, dword [rdx + 8]
sub eax, 1
and eax, esi
shl rax, 4
add rax, qword [rdx]
mov rdx, qword [rax]
add dword [rax + 8], 1
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], rdx
mov rdx, qword [rax]
test rdx, rdx
je 0x14007eeeb
mov qword [rdx + 0x18], r12
mov edx, dword [rax + 0xc]
mov qword [rax], r12
lea edx, [rdx + rdx*4 + 5]
add edx, edx
cmp dword [rax + 8], edx
jb 0x14007ef09
mov r12, qword [rbx + 0x28]
mov esi, dword [r12 + 0x34]
test esi, esi
je 0x14007ef18
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov ecx, dword [r12 + 8]
mov edx, 1
shl rcx, 5
call sub.msvcrt.dll_calloc
mov rdi, rax
test rax, rax
je 0x14007f127
mov edx, dword [r12 + 8]
mov eax, dword [r12 + 0x10]
mov ecx, dword [r12 + 0xc]
lea edx, [rdx + rdx - 1]
test edx, eax
setne dl
add ecx, 1
shr eax, cl
movzx edx, dl
add edx, eax
mov dword [r12 + 0x28], edx
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x2c], 0
mov r8, qword [rbx + 0x28]
mov eax, dword [r8 + 8]
test eax, eax
je 0x14007f029
xor r10d, r10d
nop dword [rax]
mov edx, r10d
shl rdx, 4
add rdx, qword [r8]
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14007efb7
jmp 0x14007f01c
mov qword [rcx + 0x18], rdx
mov r8, qword [rbx + 0x28]
mov qword [rax], rdx
test r9, r9
je 0x14007f018
mov eax, dword [r8 + 8]
mov rdx, r9
lea eax, [rax + rax - 1]
and eax, dword [rdx + 0x34]
mov r9, qword [rdx + 0x20]
shl rax, 4
add rax, rdi
mov ecx, dword [rax + 8]
add ecx, 1
mov dword [rax + 8], ecx
cmp ecx, dword [r8 + 0x28]
jbe 0x14007eff8
add dword [r8 + 0x2c], 1
mov r8, qword [rbx + 0x28]
mov ecx, dword [rax + 0xc]
mov r11d, dword [r8 + 0x28]
imul r11d, ecx
cmp dword [rax + 8], r11d
jbe 0x14007eff8
add ecx, 1
mov dword [rax + 0xc], ecx
mov qword [rdx + 0x18], 0
mov rcx, qword [rax]
mov qword [rdx + 0x20], rcx
test rcx, rcx
jne 0x14007efa0
mov qword [rax], rdx
mov r8, qword [rbx + 0x28]
test r9, r9
jne 0x14007efb0
mov eax, dword [r8 + 8]
add r10d, 1
cmp r10d, eax
jb 0x14007ef80
mov rcx, qword [r8]
call sub.msvcrt.dll_free
mov rax, qword [rbx + 0x28]
shl dword [rax + 8], 1
mov rax, qword [rbx + 0x28]
add dword [rax + 0xc], 1
mov rax, qword [rbx + 0x28]
mov qword [rax], rdi
mov rax, qword [rbx + 0x28]
mov edx, dword [rax + 0x10]
shr edx, 1
cmp dword [rax + 0x2c], edx
jbe 0x14007f05b
mov edi, dword [rax + 0x30]
lea esi, [rdi + 1]
mov dword [rax + 0x30], esi
mov rax, qword [rbx + 0x28]
cmp dword [rax + 0x30], 1
jbe 0x14007ef09
mov dword [rax + 0x34], 1
jmp 0x14007ef09
pxor xmm0, xmm0
mov ecx, 0x40
movups xmmword [rbx + 0x30], xmm0
call sub.msvcrt.dll_malloc
mov qword [rbx + 0x28], rax
mov rdi, rax
test rax, rax
je 0x14007f127
lea r12, [rbx + 0x28]
mov qword [rax + 0x10], 0
mov edx, 1
mov ecx, 0x200
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rax + 0x18], r12
mov rax, qword [0x1402af588]
mov qword [rdi + 0x20], 0x28
mov qword [rdi + 8], rax
call sub.msvcrt.dll_calloc
mov dword [rdi + 0x38], 0xa0111fe1
mov qword [rdi], rax
test rax, rax
je 0x14007f127
mov qword [0x1403ee7d8], rbx
mov rax, rbx
mov edx, 1
jmp 0x14007eeb6
mov r9d, eax
mov esi, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x14007ed59
or ecx, 0xffffffff
call sub.msvcrt.dll_exit
lea rax, [0x1402af40d]
mov r9d, 8
lea r8, str.dap_chain_cs
mov edx, 0x6d
mov qword [rsp + 0x20], rax
lea rcx, str.dap_chain_cs_add
call fcn.14005a160
jmp 0x14007ef09