Function at 0x180104620
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x70
mov rax, qword [rcx]
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x180104658
mov rcx, r14
call fcn.1800a53c0
mov qword [rsp + 0x68], rbp
mov r12d, 8
mov qword [rsp + 0x58], r15
cmp rsi, 2
jb 0x180104a0a
mov rcx, rsi
mov qword [rsp + 0x60], r13
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x38], rcx
add rsi, rax
mov qword [rsp + 0xb8], rsi
mov r11, qword [r14 + 0x20]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], 8
mov r15d, dword [r11 + 0x1c]
lea r9, [r11 + 0x9c]
mov esi, dword [r11 + 0x10]
mov eax, r15d
xor eax, dword [rdi + 0xc]
mov r12d, esi
mov r14d, dword [r11 + 0x14]
mov ebx, r14d
mov ebp, dword [r11 + 0x18]
mov r13d, ebp
xor r12d, dword [rdi]
xor esi, dword [rdi + 0x10]
xor ebx, dword [rdi + 4]
xor r14d, dword [rdi + 0x14]
xor r13d, dword [rdi + 8]
xor ebp, dword [rdi + 0x18]
xor r15d, dword [rdi + 0x1c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa0]
mov edi, dword [rsp + 0x20]
mov qword [rsp + 0x28], r9
mov r11, qword [rax + 8]
nop word [rax + rax]
mov r10d, dword [r9 - 4]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov r9d, dword [r9]
mov r8d, dword [r11 + rcx*4 + 0xc00]
ror r13d, 0x1f
xor r8d, dword [r11 + rax*4 + 0x800]
mov eax, ebx
shr rax, 0x18
mov ecx, r12d
shr rcx, 0x18
ror ebp, 0x1f
xor r8d, dword [r11 + rax*4]
movzx eax, bl
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r12d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor r13d, eax
lea eax, [r9 + r8]
add eax, edx
xor eax, edi
mov edi, eax
shr eax, 1
shl edi, 0x1f
or edi, eax
mov eax, r14d
shr eax, 0x10
movzx ecx, al
mov eax, r14d
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, esi
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r14d
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, r14b
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, esi
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor ebp, eax
lea eax, [r9 + r8]
add eax, edx
xor eax, r15d
mov r15d, eax
shr eax, 1
shl r15d, 0x1f
or r15d, eax
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov r9, qword [rsp + 0x28]
movzx eax, al
ror r12d, 0x1f
mov ecx, r13d
mov r10d, dword [r9 - 0xc]
xor r8d, dword [r11 + rax*4 + 0x800]
mov r9d, dword [r9 - 8]
shr rcx, 0x18
mov eax, edi
shr rax, 0x18
ror esi, 0x1f
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, dil
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r13d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor r12d, eax
lea eax, [r9 + r8]
add eax, edx
xor eax, ebx
mov ebx, eax
shr eax, 1
shl ebx, 0x1f
or ebx, eax
mov eax, r15d
shr eax, 0x10
movzx ecx, al
mov eax, r15d
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, ebp
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r15d
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, r15b
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, ebp
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r10 + rdx]
xor esi, eax
lea eax, [r9 + r8]
mov r9, qword [rsp + 0x28]
add eax, edx
xor eax, r14d
sub r9, 0x10
mov r14d, eax
mov qword [rsp + 0x28], r9
shl r14d, 0x1f
shr eax, 1
or r14d, eax
sub qword [rsp + 0x30], 1
jne 0x180104700
mov r11, qword [rsp + 0x48]
mov dword [rsp + 0x20], ebx
mov rbx, qword [rsp + 0xb0]
mov ecx, dword [r11]
mov eax, ecx
mov edx, dword [r11 + 4]
xor eax, r13d
mov r8d, dword [r11 + 8]
xor ecx, ebp
mov r9d, dword [r11 + 0xc]
mov dword [rbx], eax
mov eax, edx
xor eax, edi
mov dword [rbx + 0x10], ecx
mov rdi, qword [rsp + 0xa8]
xor edx, r15d
mov dword [rbx + 4], eax
add rdi, 0x20
mov eax, r8d
mov dword [rbx + 0x14], edx
xor eax, r12d
mov qword [rsp + 0xa8], rdi
mov dword [rbx + 8], eax
xor r8d, esi
mov eax, r9d
mov dword [rbx + 0x18], r8d
xor eax, dword [rsp + 0x20]
xor r9d, r14d
mov r14, qword [rsp + 0xa0]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x1c], r9d
add rbx, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xb0], rbx
jne 0x180104691
mov r13, qword [rsp + 0x60]
mov r12d, 8
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x180104b8b
mov r15, qword [r14 + 0x20]
mov r9, qword [r14 + 8]
mov r11d, dword [r15 + 0x10]
xor r11d, dword [rdi]
mov esi, dword [r15 + 0x14]
xor esi, dword [rdi + 4]
mov r10d, dword [r15 + 0x18]
xor r10d, dword [rdi + 8]
mov ebp, dword [r15 + 0x1c]
xor ebp, dword [rdi + 0xc]
lea rdi, [r15 + 0x9c]
nop
mov eax, esi
ror r10d, 0x1f
shr eax, 0x10
lea rdi, [rdi - 0x10]
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [r9 + rcx*4 + 0xc00]
mov ecx, r11d
xor r8d, dword [r9 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0xc00]
xor r8d, dword [r9 + rax*4]
movzx eax, sil
xor r8d, dword [r9 + rax*4 + 0x400]
mov eax, r11d
shr eax, 0x10
movzx eax, al
xor edx, dword [r9 + rax*4 + 0x800]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
ror r11d, 0x1f
xor edx, dword [r9 + rcx*4 + 0x400]
xor edx, dword [r9 + rax*4]
mov eax, dword [rdi + 0xc]
add edx, r8d
add eax, edx
xor r10d, eax
lea eax, [r8 + rdx]
add eax, dword [rdi + 0x10]
xor eax, ebp
mov ebp, eax
shr eax, 1
shl ebp, 0x1f
or ebp, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr eax, 8
movzx eax, al
mov r8d, dword [r9 + rcx*4 + 0xc00]
mov ecx, r10d
xor r8d, dword [r9 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0xc00]
xor r8d, dword [r9 + rax*4]
movzx eax, bpl
xor r8d, dword [r9 + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [r9 + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x400]
xor edx, dword [r9 + rax*4]
mov eax, dword [rdi + 4]
add edx, r8d
add eax, edx
xor r11d, eax
mov eax, dword [rdi + 8]
add eax, r8d
add eax, edx
xor eax, esi
mov esi, eax
shr eax, 1
shl esi, 0x1f
or esi, eax
sub r12, 1
jne 0x180104a40
xor esi, dword [r15 + 0xc]
xor r11d, dword [r15 + 8]
xor ebp, dword [r15 + 4]
xor r10d, dword [r15]
mov dword [rbx], r10d
mov dword [rbx + 4], ebp
mov dword [rbx + 8], r11d
mov dword [rbx + 0xc], esi
mov r15, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret