Function at 0x5f5dd0
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.005f5520
test al, al
jne 0x5f5e77
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00a8daf8]
call fcn.004149c0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x28]
call fcn.0040ac00
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.0042e480
mov ecx, 3
mov rdx, qword [rbp + 0x48]
call fcn.005f5320
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 0x5f5edf
cmp rax, 4
je 0x5f6287
sub rax, 1
cmp rax, 0xffffffffffffffff
je 0x5f6077
test rax, rax
je 0x5f6134
sub rax, 1
test rax, rax
je 0x5f63d2
sub rax, 1
test rax, rax
jne 0x5f68d1
jmp 0x5f64b6
sub rax, 5
test rax, rax
je 0x5f5f14
sub rax, 1
test rax, rax
je 0x5f663a
sub rax, 1
test rax, rax
je 0x5f6766
sub rax, 1
test rax, rax
jne 0x5f68d1
jmp 0x5f6804
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5f5f6b
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
jmp 0x5f5f6b
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 0x5f5f34
cmp dword [rbp + 0xb8], 0
jle 0x5f68d1
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x50]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
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.00406200
jmp 0x5f68d1
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.005f44b0
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.005f44b0
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 0x5f5fe4
cmp dword [rbp + 0xb8], 0
jle 0x5f68d1
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.00406200
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.005f44b0
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.005f44b0
jmp 0x5f68d1
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x68], rax
jmp 0x5f61af
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.005f44b0
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 0x5f6145
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.00406200
cmp dword [rbp + 0xb8], 0
jle 0x5f68d1
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.00406200
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.005f44b0
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.005f44b0
jmp 0x5f68d1
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
xor rax, rax
mov ebx, dword [rbp + 0xb8]
sub ebx, 1
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], ebx
jg 0x5f63cc
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 0x5f6385
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 0x5f630e
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x60]
add byte [rax + rcx], 1
jmp 0x5f632e
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 0x5f62de
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.00406200
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]
add dword [rax + 0x74], 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 0x5f62b6
nop
jmp 0x5f68d1
cmp dword [rbp + 0xb8], 0
jle 0x5f64b0
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.00406200
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 rcx, qword [rax + 0x60]
add rcx, 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.00406200
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 0x5f63df
nop
jmp 0x5f68d1
cmp dword [rbp + 0xb8], 0
jle 0x5f659b
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.00406200
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 rcx, qword [rax + 0x60]
add rcx, 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.00406200
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 0x5f64c3
nop
jmp 0x5f68d1
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.005f44b0
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.005f44b0
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 0x5f65a1
cmp dword [rbp + 0xb8], 0
jle 0x5f68d1
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.00406200
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.005f44b0
jmp 0x5f68d1
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.005f44b0
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.00406200
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 0x5f66d8
cmp dword [rbp + 0xb8], 0
jle 0x5f68d1
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.00406200
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.005f44b0
jmp 0x5f68d1
cmp dword [rbp + 0xb8], 0
jle 0x5f68d0
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.00406200
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 + 0x60]
add rcx, 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.00406200
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 0x5f6811
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040e080
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040e160
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret