Function at 0x5cdbc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
mov qword [rbp + 0xb0], r8
mov dword [rbp + 0xb8], r9d
nop
mov rcx, qword [rbp + 0xa0]
mov edx, 1
call fcn.005ccb70
test al, al
jne 0x5cdc67
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00652cc0]
call fcn.00415ae0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x28]
call fcn.0040c110
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x38], 0x11
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.00433670
mov ecx, 3
mov rdx, qword [rbp + 0x48]
call fcn.005cc960
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xa0]
movzx rax, byte [rax + 0x28]
cmp rax, 4
jg 0x5cdccf
cmp rax, 4
je 0x5ce077
sub rax, 1
cmp rax, 0xffffffffffffffff
je 0x5cde67
test rax, rax
je 0x5cdf24
sub rax, 1
test rax, rax
je 0x5ce1cf
sub rax, 1
test rax, rax
jne 0x5ce6ce
jmp 0x5ce2b3
sub rax, 5
test rax, rax
je 0x5cdd04
sub rax, 1
test rax, rax
je 0x5ce437
sub rax, 1
test rax, rax
je 0x5ce563
sub rax, 1
test rax, rax
jne 0x5ce6ce
jmp 0x5ce601
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5cdd5b
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00408ce0
jmp 0x5cdd5b
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x44]
sub dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb8]
cmp ecx, dword [rax + 0x44]
jge 0x5cdd24
cmp dword [rbp + 0xb8], 0
jle 0x5ce6ce
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
movsxd r8, dword [rbp + 0xb8]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00408ce0
jmp 0x5ce6ce
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov r9, qword [rbp + 0x70]
call fcn.005ca4a0
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x78], rax
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x44]
sub dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb8]
cmp ecx, dword [rax + 0x44]
jge 0x5cddd4
cmp dword [rbp + 0xb8], 0
jle 0x5ce6ce
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov r8d, dword [rbp + 0xb8]
mov r9, qword [rbp + 0x70]
call fcn.005ca4a0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
jmp 0x5ce6ce
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x68], rax
jmp 0x5cdf9f
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov r9, qword [rbp + 0x70]
call fcn.005ca4a0
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x78], rax
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x44]
sub dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb8]
cmp ecx, dword [rax + 0x44]
jge 0x5cdf35
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
cmp dword [rbp + 0xb8], 0
jle 0x5ce6ce
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov r8d, dword [rbp + 0xb8]
mov r9, qword [rbp + 0x70]
call fcn.005ca4a0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
jmp 0x5ce6ce
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5ce095
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00408ce0
xor rax, rax
mov ebx, dword [rbp + 0xb8]
sub ebx, 1
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], ebx
jg 0x5ce1c9
add ebx, 1
mov dword [rbp + 0x5c], 0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xa0]
mov eax, dword [rax + 0x74]
cmp eax, dword [rcx + 0x44]
jne 0x5ce17f
mov dword [rbp + 0x60], 0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x60]
cmp byte [rax + rcx], 0xff
jae 0x5ce108
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x60]
add byte [rax + rcx], 1
jmp 0x5ce128
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x60]
mov byte [rax + rcx], 0
add dword [rbp + 0x60], 1
cmp dword [rbp + 0x60], 8
jne 0x5ce0d8
nop
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x80]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x78]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x78]
mov rax, qword [rbp + 0xa0]
mov rsi, qword [rax]
call qword [rsi + 0x58]
mov rax, qword [rbp + 0xa0]
mov dword [rax + 0x74], 0
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x74]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0xa0]
lea rax, [rax + 0x74]
add dword [rax], 1
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rbp + 0x64]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx + 0x78]
movsxd r8, dword [rbp + 0x5c]
movzx rdx, byte [rdx + r8]
xor byte [rax + rcx], dl
add dword [rbp + 0x64], 1
cmp dword [rbp + 0x64], ebx
jne 0x5ce0b0
nop
jmp 0x5ce6ce
cmp dword [rbp + 0xb8], 0
jle 0x5ce2ad
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx + 0x50]
movzx rcx, byte [rcx]
xor cl, byte [rdx]
mov byte [rax], cl
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
lea rcx, [rax + 1]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
sub r8d, 1
movsxd r8, r8d
call fcn.00408ce0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov rcx, qword [rbp + 0xa0]
movsxd rcx, dword [rcx + 0x44]
mov rdx, qword [rbp + 0x70]
movzx rdx, byte [rdx]
mov byte [rax + rcx - 1], dl
add qword [rbp + 0x70], 1
add qword [rbp + 0x78], 1
sub dword [rbp + 0xb8], 1
cmp dword [rbp + 0xb8], 0
jg 0x5ce1dc
nop
jmp 0x5ce6ce
cmp dword [rbp + 0xb8], 0
jle 0x5ce398
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx + 0x50]
movzx rcx, byte [rcx]
xor cl, byte [rdx]
mov byte [rax], cl
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
lea rcx, [rax + 1]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
sub r8d, 1
movsxd r8, r8d
call fcn.00408ce0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov rcx, qword [rbp + 0xa0]
movsxd rcx, dword [rcx + 0x44]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx + 0x50]
movzx rdx, byte [rdx]
mov byte [rax + rcx - 1], dl
add qword [rbp + 0x70], 1
add qword [rbp + 0x78], 1
sub dword [rbp + 0xb8], 1
cmp dword [rbp + 0xb8], 0
jg 0x5ce2c0
nop
jmp 0x5ce6ce
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x50]
call fcn.005ca4a0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x78], rax
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x44]
sub dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb8]
cmp ecx, dword [rax + 0x44]
jge 0x5ce39e
cmp dword [rbp + 0xb8], 0
jle 0x5ce6ce
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
jmp 0x5ce6ce
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x50]
call fcn.005ca4a0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rax, qword [rbp + 0xa0]
movsxd rax, dword [rax + 0x44]
add qword [rbp + 0x78], rax
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x44]
sub dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb8]
cmp ecx, dword [rax + 0x44]
jge 0x5ce4d5
cmp dword [rbp + 0xb8], 0
jle 0x5ce6ce
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov rax, qword [rbp + 0xa0]
mov r9, qword [rax + 0x60]
call fcn.005ca4a0
jmp 0x5ce6ce
cmp dword [rbp + 0xb8], 0
jle 0x5ce6cd
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00408ce0
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x58]
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
lea rcx, [rax + 1]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
sub r8d, 1
movsxd r8, r8d
call fcn.00408ce0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov rcx, qword [rbp + 0xa0]
movsxd rcx, dword [rcx + 0x44]
mov rdx, qword [rbp + 0x78]
mov r8, qword [rbp + 0xa0]
mov r8, qword [r8 + 0x50]
movzx rdx, byte [rdx]
xor dl, byte [r8]
mov byte [rax + rcx - 1], dl
add qword [rbp + 0x78], 1
sub dword [rbp + 0xb8], 1
cmp dword [rbp + 0xb8], 0
jg 0x5ce60e
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040f800
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040f8e0
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret