Function at 0x171b3c5a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, dword [rsp + 0xa0]
xor r15d, r15d
test edx, edx
movsxd rbx, r9d
mov r10d, edx
mov rdi, rcx
mov r11d, r15d
mov r9d, r15d
cmovns r11d, edx
mov ecx, r8d
neg r10d
mov eax, ebx
test edx, edx
mov edx, dword [rsp + 0xa8]
cmovns r10d, r15d
test r8d, r8d
cmovns r9d, r8d
neg ecx
test r8d, r8d
cmovns ecx, r15d
sub eax, r11d
sub r14d, r10d
cmp r14d, eax
cmovge r14d, eax
mov eax, dword [rsp + 0x90]
sub eax, r9d
sub edx, ecx
cmp edx, eax
cmovge edx, eax
test r14d, r14d
jle 0x171b3c3a3
test edx, edx
jle 0x171b3c3a3
imul ecx, dword [rsp + 0xb0]
mov r13, rbx
movsxd r12, dword [rsp + 0xb0]
movsxd rax, r10d
mov r10d, 0xff00ff
imul r9d, ebx
shl r12, 2
movsxd rcx, ecx
add rcx, rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x98]
lea rsi, [rax + rcx*4]
movsxd rax, r11d
movsxd rcx, r9d
mov r11d, 0x800080
add rcx, rax
mov eax, edx
shl r13, 2
mov qword [rsp + 0x20], rax
lea rbp, [rdi + rcx*4]
mov rdi, rbp
cmp dword [rsp + 0xb8], r15d
je 0x171b3c287
mov r8, rsi
mov r9d, r14d
sub r8, rbp
mov edx, dword [rdi]
mov eax, dword [r8 + rdi]
shr eax, 0x18
not al
movzx ecx, al
mov eax, edx
and eax, r10d
shr edx, 8
imul eax, ecx
and edx, r10d
imul edx, ecx
add eax, r11d
mov ecx, eax
add edx, r11d
shr ecx, 8
and ecx, r10d
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xffff00ff
shr ecx, 8
add eax, edx
xor ecx, eax
mov eax, edx
shr eax, 8
and ecx, r10d
and eax, r10d
add eax, edx
xor ecx, eax
add ecx, dword [r8 + rdi]
mov dword [rdi], ecx
lea rdi, [rdi + 4]
sub r9, 1
jne 0x171b3c223
jmp 0x171b3c391
mov r15d, r14d
mov r12, rsi
mov ebx, dword [r12]
lea rcx, [rsp + 0x90]
mov rdx, rdi
mov dword [rsp + 0xa8], ebx
lea r12, [r12 + 4]
call fcn.171b3c8d4
mov r10d, 0xff00ff
mov r11d, 0x800080
mov edx, dword [rax]
mov al, byte [rsp + 0xab]
not al
movzx ecx, al
mov eax, edx
and eax, r10d
shr edx, 8
imul eax, ecx
and edx, r10d
imul edx, ecx
add eax, r11d
mov r8d, eax
add edx, r11d
shr r8d, 8
and r8d, r10d
add r8d, eax
mov eax, edx
shr eax, 8
and eax, 0xffff00ff
shr r8d, 8
add eax, edx
xor r8d, eax
mov eax, edx
shr eax, 8
and r8d, r10d
and eax, r10d
add eax, edx
xor r8d, eax
add r8d, ebx
mov r9d, r8d
shr r9d, 0x18
lea eax, [r9 - 1]
cmp al, 0xfd
ja 0x171b3c37b
xor edx, edx
movzx eax, r8b
imul eax, eax, 0xff
mov byte [rsp + 0xa3], r9b
div r9d
xor edx, edx
mov byte [rsp + 0xa0], al
mov eax, r8d
shr eax, 8
movzx eax, al
imul eax, eax, 0xff
shr r8d, 0x10
div r9d
xor edx, edx
mov byte [rsp + 0xa1], al
movzx eax, r8b
imul eax, eax, 0xff
div r9d
mov byte [rsp + 0xa2], al
mov r8d, dword [rsp + 0xa0]
mov dword [rdi], r8d
add rdi, 4
sub r15, 1
jne 0x171b3c28d
mov r12, qword [rsp + 0x30]
add rsi, r12
add rbp, r13
sub qword [rsp + 0x20], 1
jne 0x171b3c20d
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r10d, dword [rsp + 0xd8]
movsxd rbp, dword [rsp + 0xf8]
inc r10d
mov r13, qword [rsp + 0xf0]
mov eax, r10d
mov r14d, dword [rsp + 0xd0]
mov r11, qword [rsp + 0xe0]
mov edi, dword [rsp + 0xc8]
imul eax, ebp
lea r9, [rax*4]
add r9, r13
cmp r10d, r14d
jae 0x171b3c669
mov ebx, dword [rsp + 0xe8]
mov rsi, rbp
shl rbx, 2
mov r15d, r14d
shl rsi, 2
sub r15d, r10d
cmp r10d, edi
jae 0x171b3c65d
mov r8d, edi
mov edx, r10d
sub r8d, r10d
mov r12d, r10d
mov rax, rdx
sub rax, r12
mov ecx, dword [r11 + rax*4]
mov eax, 0xffffff
and ecx, eax
cmp ecx, eax
je 0x171b3c654
mov dword [r9 + rdx*4], 0xff
inc rdx
sub r8, 1
jne 0x171b3c637
add r11, rbx
add r9, rsi
sub r15, 1
jne 0x171b3c626
mov eax, dword [rsp + 0x108]
mov r9d, ebp
mov ebx, dword [rsp + 0x110]
mov r8d, r14d
mov dword [rsp + 0x40], ebx
mov edx, edi
mov dword [rsp + 0x30], eax
mov rcx, r13
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x20], eax
call fcn.171b3c704
mov r9d, dword [rsp + 0xb8]
mov r8d, dword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0xe8], ebx
mov dword [rsp + 0xe0], ebp
mov dword [rsp + 0xd8], r14d
mov dword [rsp + 0xd0], edi
mov qword [rsp + 0xc8], r13
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp 0x171b3c124