Function at 0x5f6940
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 0x5f69e7
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, 3
jg 0x5f6a42
cmp rax, 3
je 0x5f70d0
sub rax, 1
cmp rax, 0xffffffffffffffff
je 0x5f6b3b
test rax, rax
je 0x5f6e3b
sub rax, 1
test rax, rax
jne 0x5f71db
jmp 0x5f6fec
sub rax, 4
test rax, rax
je 0x5f6cf0
sub rax, 1
test rax, rax
je 0x5f6a6b
sub rax, 1
cmp rax, 3
jae 0x5f71db
jmp 0x5f71b8
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5f6ac2
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
jmp 0x5f6ac2
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x60]
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 0x5f6a8b
cmp dword [rbp + 0xb8], 0
jle 0x5f71db
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 0x5f71db
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5f6b59
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x50]
mov qword [rbp + 0x60], rax
jmp 0x5f6c03
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov r9, qword [rbp + 0x60]
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 + 0x60]
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov r9, qword [rbp + 0x70]
call fcn.005f44b0
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x68], 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 0x5f6b7c
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x68]
cmp rcx, qword [rax + 0x60]
je 0x5f6c49
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 0x5f71db
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 rdx, qword [rbp + 0x70]
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 0x5f71db
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 + 0x5c], eax
cmp dword [rbp + 0x5c], ebx
jg 0x5f6e35
add ebx, 1
mov dword [rbp + 0x54], 0
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xa0]
mov eax, dword [rax + 0x74]
cmp eax, dword [rcx + 0x44]
jne 0x5f6dee
mov dword [rbp + 0x58], 0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x58]
cmp byte [rax + rcx], 0xff
jae 0x5f6d77
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x58]
add byte [rax + rcx], 1
jmp 0x5f6d97
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x80]
movsxd rcx, dword [rbp + 0x58]
mov byte [rax + rcx], 0
add dword [rbp + 0x58], 1
cmp dword [rbp + 0x58], 8
jne 0x5f6d47
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 + 0x54], eax
mov rax, qword [rbp + 0xa0]
add dword [rax + 0x74], 1
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rbp + 0x5c]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx + 0x78]
movsxd r8, dword [rbp + 0x54]
movzx rdx, byte [rdx + r8]
xor byte [rax + rcx], dl
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ebx
jne 0x5f6d1f
nop
jmp 0x5f71db
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x70]
je 0x5f6e59
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0xb8]
call fcn.00406200
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x50]
mov qword [rbp + 0x60], rax
jmp 0x5f6eff
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0xa0]
movsxd r8, dword [rax + 0x44]
call fcn.00406200
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x60]
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x44]
mov r9, qword [rbp + 0x70]
call fcn.005f44b0
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x68], 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 0x5f6e7c
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x68]
cmp rcx, qword [rax + 0x60]
je 0x5f6f45
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 0x5f71db
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 + 0x70]
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 0x5f71db
cmp dword [rbp + 0xb8], 0
jle 0x5f70ca
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]
movzx rdx, byte [rdx]
mov byte [rax + rcx - 1], dl
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
add qword [rbp + 0x70], 1
add qword [rbp + 0x78], 1
sub dword [rbp + 0xb8], 1
cmp dword [rbp + 0xb8], 0
jg 0x5f6ff9
nop
jmp 0x5f71db
cmp dword [rbp + 0xb8], 0
jle 0x5f71b5
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 0x5f70dd
nop
jmp 0x5f71db
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
mov r8, qword [rbp + 0xb0]
mov r9d, dword [rbp + 0xb8]
call fcn.005f5dd0
jmp 0x5f71dc
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