Function at 0x1401f8650
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, r9
mov edi, r8d
mov r14, rdx
mov qword [rsp + 0x48], rcx
mov esi, dword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x1f8]
mov qword [rsp + 0x78], rbx
mov rdx, qword [rsp + 0x200]
mov qword [rsp + 0x50], rdx
mov r13d, dword [rsp + 0x1f0]
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
lea r8, str.bcryptPbkdf
lea rcx, [rsp + 0x80]
call fcn.1400a0cf0
nop
mov rcx, rbx
call fcn.14008ed30
cmp dword [rsp + 0x1e8], 1
jb 0x1401f8968
test edi, edi
je 0x1401f8968
test esi, esi
je 0x1401f8968
lea eax, [r13 - 1]
cmp eax, 0x3ff
ja 0x1401f8968
cmp esi, 0x100000
ja 0x1401f8968
lea eax, [rsi + 4]
mov dword [rsp + 0x44], eax
mov ecx, eax
call fcn.140060e70
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401f8968
mov ecx, r13d
call fcn.140060e70
mov r12, rax
test rax, rax
je 0x1401f8968
lea ecx, [r13 + 0x1f]
shr ecx, 5
mov dword [rsp + 0x40], ecx
lea eax, [r13 - 1]
add eax, ecx
xor edx, edx
div ecx
mov ebp, eax
mov r8d, esi
mov rdx, r15
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x120]
mov edx, edi
mov rcx, r14
call fcn.1401549a0
mov edi, 1
mov r9, qword [rsp + 0x38]
lea r8, [rsi + r9]
mov qword [rsp + 0x58], r8
lea edx, [rsi + 1]
add rdx, r9
mov qword [rsp + 0x60], rdx
lea r10d, [rsi + 2]
add r10, r9
mov qword [rsp + 0x68], r10
lea ecx, [rsi + 3]
add rcx, r9
mov qword [rsp + 0x70], rcx
mov esi, r13d
mov r14d, dword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
nop dword [rax]
mov eax, edi
shr eax, 0x18
mov byte [r8], al
mov eax, edi
shr eax, 0x10
mov byte [rdx], al
mov eax, edi
shr eax, 8
mov byte [r10], al
mov byte [rcx], dil
lea r8, [rsp + 0xe0]
mov edx, dword [rsp + 0x44]
mov rcx, r9
call fcn.1401549a0
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.1401f82b0
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsp + 0xb8], xmm0
movups xmm1, xmmword [rsp + 0xa8]
movups xmmword [rsp + 0xc8], xmm1
mov eax, dword [rsp + 0x1e8]
cmp eax, 1
jbe 0x1401f88dc
lea ebx, [rax - 1]
mov rsi, qword [rsp + 0x48]
nop dword [rax + rax]
lea r8, [rsp + 0xe0]
mov edx, 0x20
lea rcx, [rsp + 0x98]
call fcn.1401549a0
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, rsi
call fcn.1401f82b0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm1, xmmword [rsp + rax + 0x98]
movdqu xmm0, xmmword [rsp + rax + 0xb8]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax + 0xb8], xmm1
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x1401f88a4
sub rbx, 1
jne 0x1401f8860
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov eax, r13d
cmp ebp, r13d
cmovb eax, ebp
mov ebp, eax
xor edx, edx
test eax, eax
je 0x1401f8920
lea r9, [rsp + 0xb8]
nop word [rax + rax]
mov eax, edx
imul eax, r14d
lea ecx, [rdi - 1]
add ecx, eax
cmp ecx, esi
jae 0x1401f8920
movzx eax, byte [r9]
mov byte [rcx + r12], al
inc edx
inc r9
cmp edx, ebp
jb 0x1401f8900
inc edi
sub r13d, edx
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
jne 0x1401f87d0
mov rcx, r9
call fcn.1401fe33c
mov r8d, esi
mov rdx, r12
mov rcx, qword [rsp + 0x78]
call fcn.14008cf40
mov rcx, r12
call fcn.1401fe33c
mov bl, 1
jmp 0x1401f896a
xor bl, bl
lea rcx, [rsp + 0x80]
call fcn.1400a0e00
movzx eax, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401feb70
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret