Function at 0x14004c400
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xf8
call fcn.1400035e0
sub rsp, rax
mov rax, qword [0x1401ad1c0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xe0], r12
mov qword [rsp + 0xd8], r13
mov edi, 8
lea esi, [rdx + 7]
mov r8d, edx
shr esi, 3
and r8d, 7
mov rbx, rcx
cmove r8d, edi
xor r13d, r13d
lea ecx, [rsi - 1]
test ecx, ecx
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xc8], r15
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0xa4], r13d
mov ebp, r13d
mov dword [rsp + 0xa0], r13d
mov eax, r13d
mov dword [rsp + 0x28], r13d
lea r10d, [rdi - 6]
je 0x14004c78a
mov r12d, dword [rsp + 0x34]
lea rcx, [0x1401f3516]
lea r15, [0x1401f33fd]
mov r14, rbx
sub r14, rcx
sub r15, rbx
nop
nop
nop
xor dword [rbx], ebp
xor dword [rbx + 4], r13d
test eax, eax
mov ecx, dword [rbx]
mov edx, dword [rbx + 4]
jne 0x14004c625
cmp esi, 2
jbe 0x14004c5b3
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rcx, rbx
call fcn.14004c060
cmp dword [0x1401f3edc], 0
jne 0x14004c9e3
mov rax, qword [rsp + 0xa8]
mov esi, dword [rsp + 0xac]
lea rdi, [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, 5
nop
nop
mov ecx, dword [rdi - 4]
add rdi, 0x14
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0x14], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x34], edx
mov ecx, dword [rdi - 0x14]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0x10], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x34], edx
mov ecx, dword [rdi - 0x10]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 0xc], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x34], edx
mov ecx, dword [rdi - 0xc]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 8], edx
mov edx, eax
ror edx, cl
xor dword [rsp + 0x34], edx
mov ecx, dword [rdi - 8]
lea edx, [rcx + rsi]
and ecx, 0x1f
mov dword [rdi - 4], edx
mov r12d, dword [rsp + 0x34]
mov edx, eax
ror edx, cl
xor r12d, edx
dec r8
mov dword [rsp + 0x34], r12d
jne 0x14004c530
mov esi, dword [rsp + 0x24]
lea edi, [r8 + 8]
jmp 0x14004c72f
mov rcx, rbx
mov rdx, rdi
nop
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r15 + rcx - 1], al
jne 0x14004c5c0
mov word [0x1401f33fb], 8
mov word [0x1401f33f9], dx
call fcn.14004bd30
sub eax, 0x18
je 0x14004c77b
dec eax
je 0x14004c76c
cmp dword [0x1401f3edc], 0
jne 0x14004c9e3
lea rcx, [0x1401f3516]
mov rdx, rdi
nop
movzx eax, byte [rcx]
inc rcx
dec rdx
mov byte [r14 + rcx - 1], al
jne 0x14004c610
jmp 0x14004c72f
mov eax, dword [rsp + 0x30]
lea esi, [rcx + r12]
lea r9, [rsp + 0x3c]
lea r8d, [rdx + rax]
mov dword [rbx], esi
mov dword [rbx + 4], r8d
nop
xor r8d, esi
mov ecx, esi
add r9, 0x30
shr ecx, 4
and ecx, 0x1f
rol r8d, cl
sub r8d, dword [r9 - 0x34]
xor esi, r8d
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x30]
mov ecx, esi
mov edx, esi
shr ecx, 4
xor edx, r8d
and ecx, 0x1f
rol edx, cl
sub edx, dword [r9 - 0x2c]
xor esi, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x28]
mov ecx, esi
mov edi, esi
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [r9 - 0x24]
xor esi, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x20]
mov ecx, esi
mov edx, esi
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [r9 - 0x1c]
xor esi, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x18]
mov ecx, esi
mov edi, esi
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [r9 - 0x14]
xor esi, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 0x10]
mov ecx, esi
mov r8d, esi
shr ecx, 4
xor r8d, edi
and ecx, 0x1f
rol r8d, cl
sub r8d, dword [r9 - 0xc]
xor esi, r8d
mov ecx, r8d
shr ecx, 7
and ecx, 0x1f
rol esi, cl
add esi, dword [r9 - 8]
dec r10
jne 0x14004c640
mov dword [rbx], esi
mov esi, dword [rsp + 0x24]
mov dword [rbx + 4], r8d
lea edi, [r10 + 8]
mov eax, dword [rsp + 0x28]
mov ebp, dword [rbx]
mov r13d, dword [rbx + 4]
inc eax
lea ecx, [rsi - 1]
add rbx, 8
sub r15, 8
add r14, 8
cmp eax, ecx
mov dword [rsp + 0xa0], ebp
mov dword [rsp + 0xa4], r13d
mov dword [rsp + 0x28], eax
jae 0x14004c791
mov r10d, 2
jmp 0x14004c4d0
mov dword [0x1401f3edc], 0x99
jmp 0x14004c9e3
mov dword [0x1401f3edc], 0x98
jmp 0x14004c9e3
mov r12d, dword [rsp + 0x34]
jmp 0x14004c79c
mov r8d, dword [rsp + 0x20]
mov r10d, 2
test r8d, r8d
je 0x14004c7de
lea rax, [rsp + 0xa0]
mov rdi, rbx
lea rcx, [rsp + 0xa0]
sub rdi, rax
mov edx, r8d
nop
nop
movzx eax, byte [rdi + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x14004c7c0
mov r13d, dword [rsp + 0xa4]
mov ebp, dword [rsp + 0xa0]
cmp esi, 2
jbe 0x14004c8dd
add r13d, dword [rsp + 0x30]
lea rsi, [rsp + 0x3c]
add ebp, r12d
nop
nop
nop
mov ecx, ebp
mov edx, ebp
add rsi, 0x30
shr ecx, 4
xor edx, r13d
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x34]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x30]
mov ecx, ebp
mov edi, ebp
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [rsi - 0x2c]
xor ebp, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x28]
mov ecx, ebp
mov edx, ebp
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x24]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x20]
mov ecx, ebp
mov edi, ebp
shr ecx, 4
xor edi, edx
and ecx, 0x1f
rol edi, cl
sub edi, dword [rsi - 0x1c]
xor ebp, edi
mov ecx, edi
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x18]
mov ecx, ebp
mov edx, ebp
shr ecx, 4
xor edx, edi
and ecx, 0x1f
rol edx, cl
sub edx, dword [rsi - 0x14]
xor ebp, edx
mov ecx, edx
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 0x10]
mov ecx, ebp
mov r13d, ebp
shr ecx, 4
xor r13d, edx
and ecx, 0x1f
rol r13d, cl
sub r13d, dword [rsi - 0xc]
xor ebp, r13d
mov ecx, r13d
shr ecx, 7
and ecx, 0x1f
rol ebp, cl
add ebp, dword [rsi - 8]
dec r10
jne 0x14004c800
mov esi, dword [rsp + 0x24]
jmp 0x14004c9be
cmp esi, 1
jne 0x14004c8f7
mov ebp, dword [rbx]
mov r13d, dword [rbx + 4]
mov dword [rsp + 0xa0], ebp
mov dword [rsp + 0xa4], r13d
lea rcx, [rsp + 0xa0]
mov word [0x1401f33fb], 8
mov word [0x1401f33f9], 0
movzx eax, byte [rcx]
mov byte [0x1401f33fd], al
movzx eax, byte [rcx + 1]
mov byte [0x1401f33fe], al
movzx eax, byte [rcx + 2]
mov byte [0x1401f33ff], al
movzx eax, byte [rcx + 3]
mov byte [0x1401f3400], al
movzx eax, byte [rcx + 4]
mov byte [0x1401f3401], al
movzx eax, byte [rcx + 5]
mov byte [0x1401f3402], al
movzx eax, byte [rcx + 6]
mov byte [0x1401f3403], al
movzx eax, byte [rcx + 7]
mov byte [0x1401f3404], al
call fcn.14004bd30
sub eax, 0x18
je 0x14004c97f
dec eax
jne 0x14004c990
mov r8d, dword [rsp + 0x20]
mov dword [0x1401f3edc], 0x99
jmp 0x14004c9be
mov r8d, dword [rsp + 0x20]
mov dword [0x1401f3edc], 0x98
jmp 0x14004c9be
cmp dword [0x1401f3edc], 0
jne 0x14004c9b9
mov rax, qword [0x1401f3516]
mov r8d, dword [rsp + 0x20]
mov qword [rsp + 0xa0], rax
mov r13d, dword [rsp + 0xa4]
mov ebp, eax
jmp 0x14004c9be
mov r8d, dword [rsp + 0x20]
cmp esi, 1
jbe 0x14004c9dd
test r8d, r8d
je 0x14004c9d4
lea rsi, [rbx - 8]
mov ecx, r8d
mov rdi, rbx
rep movsb byte [rdi], byte [rsi]
mov dword [rbx - 8], ebp
mov dword [rbx - 4], r13d
jmp 0x14004c9e3
mov dword [rbx], ebp
mov dword [rbx + 4], r13d
mov r15, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xb0]
call fcn.14006b6a0
add rsp, 0xf8
ret