Function at 0x18007a170
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x198
mov qword [rbp - 0x80], 0xfffffffffffffffe
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov rax, qword [0x18017a408]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov qword [rsp + 0x48], r9
mov ebx, r8d
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
mov r14d, dword [rbp + 0x100]
mov rdi, qword [rbp + 0x118]
mov qword [rsp + 0x78], rdi
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x40], rax
mov esi, dword [rbp + 0x110]
mov r13d, esi
mov dword [rsp + 0x3c], esi
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
lea r8, str.bcryptPbkdf
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.180039180
nop
mov rcx, rdi
call fcn.180014650
cmp dword [rbp + 0x108], 1
jb 0x18007a45a
test ebx, ebx
je 0x18007a45a
test r14d, r14d
je 0x18007a45a
lea eax, [rsi - 1]
cmp eax, 0x3ff
ja 0x18007a45a
cmp r14d, 0x100000
ja 0x18007a45a
lea eax, [r14 + 4]
mov dword [rsp + 0x38], eax
mov ecx, eax
call fcn.18002b230
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18007a45a
mov ecx, esi
call fcn.18002b230
mov r15, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x18007a45a
lea r12d, [rsi + 0x1f]
shr r12d, 5
lea eax, [rsi - 1]
add eax, r12d
xor edx, edx
div r12d
mov edi, eax
mov r8d, r14d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.1800caa00
lea r8, [rbp + 0x20]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
call fcn.1800817f0
mov ebx, 1
test esi, esi
je 0x18007a434
mov r9, qword [rsp + 0x30]
lea rdx, [r9 + r14]
mov qword [rsp + 0x50], rdx
lea r8d, [r14 + 1]
add r8, r9
mov qword [rsp + 0x48], r8
lea r10d, [r14 + 2]
add r10, r9
mov qword [rsp + 0x68], r10
lea ecx, [r14 + 3]
add rcx, r9
mov qword [rsp + 0x70], rcx
mov r14, qword [rsp + 0x40]
nop dword [rax]
mov eax, ebx
shr eax, 0x18
mov byte [rdx], al
mov eax, ebx
shr eax, 0x10
mov byte [r8], al
mov eax, ebx
shr eax, 8
mov byte [r10], al
mov byte [rcx], bl
lea r8, [rbp - 0x20]
mov edx, dword [rsp + 0x38]
mov rcx, r9
call fcn.1800817f0
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x58]
call fcn.180079f30
movups xmm6, xmmword [rbp - 0x60]
movdqu xmmword [rbp - 0x40], xmm6
movups xmm7, xmmword [rbp - 0x50]
movdqu xmmword [rbp - 0x30], xmm7
mov eax, dword [rbp + 0x108]
cmp eax, 1
jbe 0x18007a3d4
lea r14d, [rax - 1]
mov r13, qword [rsp + 0x40]
mov r15, qword [rsp + 0x58]
nop
lea r8, [rbp - 0x20]
mov edx, 0x20
lea rcx, [rbp - 0x60]
call fcn.1800817f0
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x20]
mov rcx, r15
call fcn.180079f30
movdqu xmm0, xmmword [rbp - 0x60]
pxor xmm0, xmm6
movdqa xmm6, xmm0
movdqu xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmm7
movdqa xmm7, xmm0
sub r14, 1
jne 0x18007a370
movdqu xmmword [rbp - 0x40], xmm6
movdqu xmmword [rbp - 0x30], xmm0
mov r15, qword [rsp + 0x60]
mov r13d, dword [rsp + 0x3c]
mov r14, qword [rsp + 0x40]
mov eax, esi
cmp edi, esi
cmovb eax, edi
mov edi, eax
xor eax, eax
test edi, edi
je 0x18007a411
lea r9, [rbp - 0x40]
nop word [rax + rax]
mov ecx, eax
imul ecx, r12d
lea edx, [rbx - 1]
add edx, ecx
cmp edx, r13d
jae 0x18007a411
movzx ecx, byte [r9]
mov byte [rdx + r15], cl
inc eax
inc r9
cmp eax, edi
jb 0x18007a3f0
inc ebx
sub esi, eax
mov r9, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov r10, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
jne 0x18007a300
mov rcx, qword [rsp + 0x30]
call fcn.1800c96f4
mov r8d, r13d
mov rdx, r15
mov rcx, qword [rsp + 0x78]
call fcn.1800135e0
mov rcx, r15
call fcn.1800c96f4
mov bl, 1
jmp 0x18007a45c
xor bl, bl
lea rcx, [rbp - 0x78]
call fcn.1800392a0
movzx eax, bl
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800c9b90
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x170]
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret