Function at 0x180003bf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r15, r8
mov ecx, dword [rcx]
mov r14, rdx
sub ecx, 1
je 0x180003dc2
sub ecx, 1
je 0x180003cc8
mov qword [rsp + 0x30], rdi
sub ecx, 1
je 0x180003c92
cmp ecx, 1
je 0x180003c38
mov eax, 0x1001
jmp 0x180003c77
mov edi, dword [rsi + 0x38]
lea rcx, [rsi + 0x3c]
lea rdx, [rsi + 0x18]
mov dword [r8], edi
call fcn.180002260
mov eax, dword [rsi + 0x28]
lea rdx, [rsi + 0x18]
xor dword [rsi + 0x18], eax
mov r8d, edi
mov eax, dword [rsi + 0x2c]
mov rcx, r14
xor dword [rsi + 0x1c], eax
mov eax, dword [rsi + 0x30]
xor dword [rsi + 0x20], eax
mov eax, dword [rsi + 0x34]
xor dword [rsi + 0x24], eax
call fcn.18010c9a0
mov dword [r15], edi
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov edi, dword [rsi + 0x38]
lea rbx, [rsi + 0x18]
mov rdx, rbx
mov dword [r8], edi
lea rcx, [rsi + 0x3c]
call fcn.180002260
test edi, edi
je 0x180003c72
sub r14, rsi
mov ecx, edi
movzx eax, byte [rbx + 0x10]
xor al, byte [rbx]
mov byte [r14 + rbx - 0x18], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x180003cb1
jmp 0x180003c72
mov eax, dword [rsi + 0x38]
test eax, eax
jne 0x180003cda
xor r9d, r9d
mov dword [r8], r9d
mov eax, r9d
jmp 0x180003c7c
mov ebx, 0x10
mov dword [r8], ebx
cmp eax, ebx
je 0x180003cf1
mov r9d, 0x1005
mov eax, r9d
jmp 0x180003c7c
mov eax, dword [rsi + 0x28]
lea rcx, [rsi + 0x3c]
mov dword [rdx], eax
mov eax, dword [rsi + 0x2c]
mov dword [rdx + 4], eax
mov eax, dword [rsi + 0x30]
mov dword [rdx + 8], eax
mov eax, dword [rsi + 0x34]
mov dword [rdx + 0xc], eax
call fcn.1800013a0
mov eax, dword [rsi + 0x18]
xor r9d, r9d
xor dword [r14], eax
mov eax, dword [rsi + 0x1c]
xor dword [r14 + 4], eax
mov eax, dword [rsi + 0x20]
xor dword [r14 + 8], eax
mov eax, dword [rsi + 0x24]
xor dword [r14 + 0xc], eax
mov eax, dword [rsi + 0x28]
mov dword [rsi + 0x18], eax
mov eax, dword [rsi + 0x2c]
mov dword [rsi + 0x1c], eax
mov eax, dword [rsi + 0x30]
mov dword [rsi + 0x20], eax
mov eax, dword [rsi + 0x34]
mov dword [rsi + 0x24], eax
mov ecx, dword [rsi + 4]
sub ecx, 1
je 0x180003db5
cmp ecx, 1
je 0x180003d66
mov eax, 0x1001
sub ebx, eax
mov eax, r9d
mov dword [r15], ebx
jmp 0x180003c7c
movzx eax, byte [r14 + 0xf]
test eax, eax
je 0x180003da3
cmp eax, ebx
ja 0x180003da3
mov r8d, 1
nop dword [rax]
mov ecx, ebx
sub ecx, r8d
movzx edx, byte [rcx + r14]
cmp edx, eax
jne 0x180003da3
inc r8d
cmp r8d, eax
jbe 0x180003d80
sub ebx, eax
mov eax, r9d
mov dword [r15], ebx
jmp 0x180003c7c
mov eax, 0x1003
sub ebx, eax
mov eax, r9d
mov dword [r15], ebx
jmp 0x180003c7c
mov eax, r9d
sub ebx, eax
mov dword [r15], ebx
jmp 0x180003c7c
mov eax, dword [rsi + 0x38]
test eax, eax
je 0x180003ccf
mov ebx, 0x10
mov dword [r8], ebx
cmp eax, ebx
jne 0x180003ce6
mov eax, dword [rsi + 0x28]
lea rcx, [rsi + 0x3c]
mov dword [rdx], eax
mov eax, dword [rsi + 0x2c]
mov dword [rdx + 4], eax
mov eax, dword [rsi + 0x30]
mov dword [rdx + 8], eax
mov eax, dword [rsi + 0x34]
mov dword [rdx + 0xc], eax
call fcn.1800013a0
mov ecx, dword [rsi + 4]
xor r9d, r9d
sub ecx, 1
je 0x180003db5
cmp ecx, 1
jne 0x180003d54
movzx eax, byte [r14 + 0xf]
test eax, eax
je 0x180003da3
cmp eax, ebx
ja 0x180003da3
mov r8d, ecx
mov ecx, ebx
sub ecx, r8d
movzx edx, byte [rcx + r14]
cmp edx, eax
jne 0x180003da3
inc r8d
cmp r8d, eax
jbe 0x180003e21
sub ebx, eax
mov eax, r9d
mov dword [r15], ebx
jmp 0x180003c7c