Function at 0x1402d0040
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 [0x14040f040]
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.14015bdd0
nop
mov rcx, rbx
call fcn.140149170
cmp dword [rsp + 0x1e8], 1
jb 0x1402d034b
test edi, edi
je 0x1402d034b
test esi, esi
je 0x1402d034b
lea eax, [r13 - 1]
cmp eax, 0x3ff
ja 0x1402d034b
cmp esi, 0x100000
ja 0x1402d034b
lea eax, [rsi + 4]
mov dword [rsp + 0x44], eax
mov ecx, eax
call fcn.14011a720
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1402d034b
mov ecx, r13d
call fcn.14011a720
mov r12, rax
test rax, rax
je 0x1402d034b
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.140203770
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.140203770
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.1402cfca0
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 0x1402d02cb
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.140203770
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x120]
mov rcx, rsi
call fcn.1402cfca0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm1, xmmword [rsp + rax + 0x98]
movdqu xmm0, xmmword [rsp + rax + 0xb8]
xorps xmm1, xmm0
movdqu xmmword [rsp + rax + 0xb8], xmm1
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x1402d0294
sub rbx, 1
jne 0x1402d0250
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 0x1402d0303
lea r9, [rsp + 0xb8]
mov ecx, edx
imul ecx, r14d
dec ecx
add ecx, edi
cmp ecx, esi
jae 0x1402d0303
movzx eax, byte [r9]
mov byte [rcx + r12], al
inc edx
inc r9
cmp edx, ebp
jb 0x1402d02e4
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 0x1402d01c0
mov rcx, r9
call fcn.140108b5c
mov r8d, esi
mov rdx, r12
mov rcx, qword [rsp + 0x78]
call fcn.1401472b0
mov rcx, r12
call fcn.140108b5c
mov bl, 1
jmp 0x1402d034d
xor bl, bl
lea rcx, [rsp + 0x80]
call fcn.14015bf80
movzx eax, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140109210
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret