Function at 0x1402686c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov rsi, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
mov eax, r8d
mov r15, rcx
mov rdi, r9
mov qword [rsp + 0x118], rdx
add eax, 2
mov edx, 0xaaaaaaab
mov dword [rsp + 0x120], r8d
imul rax, rdx
mov dword [rsp + 0x74], 0
shr rax, 0x21
lea edx, [rax + 1]
and edx, 0xfffffffe
cmp dword [rsi], 5
mov dword [rsp + 0x70], edx
jne 0x140268732
and eax, 0xfffffffe
mov ecx, edx
sub ecx, eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], ecx
mov edx, dword [r15]
mov eax, dword [rsi + 0x10]
mov r14, qword [rsi + 0x18]
mov dword [rbx], edx
mov ecx, dword [r15 + 0x14]
shr eax, 7
mov dword [rbx + 4], ecx
mov ecx, dword [r15 + 0x28]
mov dword [rbx + 8], ecx
mov ecx, dword [r15 + 0x3c]
mov dword [rbx + 0xc], ecx
mov ecx, dword [r15 + 0x10]
mov dword [rbx + 0x10], ecx
mov ecx, dword [r15 + 0x24]
mov dword [rbx + 0x14], ecx
mov ecx, dword [r15 + 0x38]
mov dword [rbx + 0x18], ecx
mov ecx, dword [r15 + 0xc]
mov dword [rbx + 0x1c], ecx
mov ecx, dword [r15 + 0x20]
mov dword [rbx + 0x20], ecx
mov ecx, dword [r15 + 0x34]
mov dword [rbx + 0x24], ecx
mov ecx, dword [r15 + 8]
mov dword [rbx + 0x28], ecx
mov ecx, dword [r15 + 0x1c]
mov dword [rbx + 0x2c], ecx
mov ecx, dword [r15 + 0x30]
mov dword [rbx + 0x30], ecx
mov ecx, dword [r15 + 4]
mov dword [rbx + 0x34], ecx
mov ecx, dword [r15 + 0x18]
mov dword [rbx + 0x38], ecx
mov ecx, dword [r15 + 0x2c]
mov dword [rbx + 0x3c], ecx
mov ecx, dword [r15 + 0x40]
mov dword [rbx + 0x40], ecx
mov ecx, dword [r15 + 0x54]
mov dword [rbx + 0x44], ecx
mov ecx, dword [r15 + 0x68]
mov dword [rbx + 0x48], ecx
mov ecx, dword [r15 + 0x7c]
mov dword [rbx + 0x4c], ecx
mov ecx, dword [r15 + 0x50]
mov dword [rbx + 0x50], ecx
mov ecx, dword [r15 + 0x64]
mov dword [rbx + 0x54], ecx
mov ecx, dword [r15 + 0x78]
mov dword [rbx + 0x58], ecx
mov ecx, dword [r15 + 0x4c]
mov dword [rbx + 0x5c], ecx
mov ecx, dword [r15 + 0x60]
mov dword [rbx + 0x60], ecx
mov ecx, dword [r15 + 0x74]
mov dword [rbx + 0x64], ecx
mov ecx, dword [r15 + 0x48]
mov dword [rbx + 0x68], ecx
mov ecx, dword [r15 + 0x5c]
mov dword [rbx + 0x6c], ecx
mov ecx, dword [r15 + 0x70]
mov dword [rbx + 0x70], ecx
mov ecx, dword [r15 + 0x44]
mov dword [rbx + 0x74], ecx
mov ecx, dword [r15 + 0x58]
mov dword [rbx + 0x78], ecx
mov ecx, dword [r15 + 0x6c]
mov dword [rsp + 0x48], eax
mov dword [rbx + 0x7c], ecx
je 0x140268a19
lea ecx, [rax - 1]
mov eax, 1
lea rdx, [rbx + 0x80]
mov qword [rsp + 0x110], r15
cmp ecx, 0
mov qword [rsp + 0x58], rdx
lea r12, [rbx + 4]
mov r13, r14
lea rdx, [rsp + 0x80]
cmova ecx, eax
xor ebp, ebp
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x60], rdx
mov rdi, rbx
mov r15, rsi
mov ebx, ebp
mov ebp, ecx
mov rdx, r13
sub rdx, r12
cmp rdx, 0x18
jbe 0x140268fd8
vmovdqu ymm3, ymmword [rdi]
vmovdqu ymmword [r13], ymm3
vmovdqu ymm4, ymmword [rdi + 0x20]
vmovdqu ymmword [r13 + 0x20], ymm4
vmovdqu ymm5, ymmword [rdi + 0x40]
vmovdqu ymmword [r13 + 0x40], ymm5
vmovdqu ymm3, ymmword [rdi + 0x60]
vmovdqu ymmword [r13 + 0x60], ymm3
cmp r14, qword [r15 + 0x18]
je 0x140268d70
mov rdx, r15
mov rcx, rdi
call sym.blockmix_pwxform.constprop.0
lea r8d, [rbx + 1]
mov edx, dword [rdi]
sub r13, 0xffffffffffffff80
mov ebx, 1
cmp ebp, r8d
jae 0x14026886e
lea rax, [rsp + 0x80]
mov r8d, r8d
mov rbx, rdi
mov rsi, r15
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x48]
mov r13, r8
shl r8, 7
mov rdi, qword [rsp + 0x128]
mov r15, qword [rsp + 0x110]
lea rbp, [r14 + r8]
lea r10, [rbx + 0x80]
cmp r13d, eax
jae 0x140268a19
mov qword [rsp + 0x58], r10
mov r15, rbp
mov rdi, r14
mov rbp, rsi
mov r14d, r13d
nop dword [rax + rax]
mov rax, r15
sub rax, r12
cmp rax, 0x18
jbe 0x140268fb7
vmovdqu ymm4, ymmword [rbx]
vmovdqu ymmword [r15], ymm4
vmovdqu ymm3, ymmword [rbx + 0x20]
vmovdqu ymmword [r15 + 0x20], ymm3
vmovdqu ymm4, ymmword [rbx + 0x40]
vmovdqu ymmword [r15 + 0x40], ymm4
vmovdqu ymm5, ymmword [rbx + 0x60]
vmovdqu ymmword [r15 + 0x60], ymm5
mov esi, dword [rbx + 0x40]
mov eax, r14d
lea edx, [rax - 1]
mov ecx, eax
and eax, edx
jne 0x140268970
mov eax, esi
and eax, edx
mov edx, r14d
sub edx, ecx
add eax, edx
mov eax, eax
shl rax, 7
lea rcx, [rdi + rax + 4]
lea rdx, [rdi + rax]
mov rax, rbx
sub rax, rcx
cmp rax, 0x18
jbe 0x140269010
vmovdqu ymm2, ymmword [rdx]
vpxor ymm0, ymm2, ymmword [rbx]
vmovdqu ymmword [rbx], ymm0
vmovdqu ymm4, ymmword [rdx + 0x20]
vpxor ymm0, ymm4, ymmword [rbx + 0x20]
vmovdqu ymmword [rbx + 0x20], ymm0
vmovdqu ymm2, ymmword [rdx + 0x40]
vpxor ymm0, ymm2, ymmword [rbx + 0x40]
vmovdqu ymmword [rbx + 0x40], ymm0
vmovdqu ymm5, ymmword [rdx + 0x60]
vpxor ymm0, ymm5, ymmword [rbx + 0x60]
vmovdqu ymmword [rbx + 0x60], ymm0
cmp rdi, qword [rbp + 0x18]
je 0x140268d05
mov rdx, rbp
mov rcx, rbx
call sym.blockmix_pwxform.constprop.0
mov edx, dword [rbx]
add r14d, 1
sub r15, 0xffffffffffffff80
cmp dword [rsp + 0x48], r14d
jne 0x140268930
mov r15, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x128]
mov rsi, rbp
mov dword [r15], edx
mov eax, dword [rbx + 4]
mov dword [r15 + 0x14], eax
mov eax, dword [rbx + 8]
mov dword [r15 + 0x28], eax
mov eax, dword [rbx + 0xc]
mov dword [r15 + 0x3c], eax
mov eax, dword [rbx + 0x10]
mov dword [r15 + 0x10], eax
mov eax, dword [rbx + 0x14]
mov dword [r15 + 0x24], eax
mov eax, dword [rbx + 0x18]
mov dword [r15 + 0x38], eax
mov eax, dword [rbx + 0x1c]
mov dword [r15 + 0xc], eax
mov eax, dword [rbx + 0x20]
mov dword [r15 + 0x20], eax
mov eax, dword [rbx + 0x24]
mov dword [r15 + 0x34], eax
mov eax, dword [rbx + 0x28]
mov dword [r15 + 8], eax
mov eax, dword [rbx + 0x2c]
mov dword [r15 + 0x1c], eax
mov eax, dword [rbx + 0x30]
mov dword [r15 + 0x30], eax
mov eax, dword [rbx + 0x34]
mov dword [r15 + 4], eax
mov eax, dword [rbx + 0x38]
mov dword [r15 + 0x18], eax
mov eax, dword [rbx + 0x3c]
mov dword [r15 + 0x2c], eax
mov eax, dword [rbx + 0x40]
mov dword [r15 + 0x40], eax
mov eax, dword [rbx + 0x44]
mov rbp, qword [rsp + 0x118]
mov dword [r15 + 0x54], eax
mov eax, dword [rbx + 0x48]
shl rbp, 5
mov dword [r15 + 0x68], eax
mov eax, dword [rbx + 0x4c]
mov dword [r15 + 0x7c], eax
mov eax, dword [rbx + 0x50]
mov dword [r15 + 0x50], eax
mov eax, dword [rbx + 0x54]
mov dword [r15 + 0x64], eax
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x78], eax
mov eax, dword [rbx + 0x5c]
mov dword [r15 + 0x4c], eax
mov eax, dword [rbx + 0x60]
mov dword [r15 + 0x60], eax
mov eax, dword [rbx + 0x64]
mov dword [r15 + 0x74], eax
mov eax, dword [rbx + 0x68]
mov dword [r15 + 0x48], eax
mov eax, dword [rbx + 0x6c]
mov dword [r15 + 0x5c], eax
mov eax, dword [rbx + 0x70]
mov dword [r15 + 0x70], eax
mov eax, dword [rbx + 0x74]
mov dword [r15 + 0x44], eax
mov eax, dword [rbx + 0x78]
mov dword [r15 + 0x58], eax
mov eax, dword [rbx + 0x7c]
mov dword [r15 + 0x6c], eax
lea rax, [r15 + 0x3f]
sub rax, rbx
mov r14, rax
cmp rax, 0x7e
jbe 0x14026902f
mov rdx, qword [rsp + 0x118]
vmovdqu ymm1, ymmword [0x14030cb00]
xor eax, eax
shl rdx, 7
nop dword [rax + rax]
vpermd ymm2, ymm1, ymmword [r15 + rax]
vpermd ymm0, ymm1, ymmword [r15 + rax + 0x20]
vpblendd ymm3, ymm2, ymm0, 0x6c
vpblendd ymm0, ymm0, ymm2, 0x6c
vmovdqu ymmword [rbx + rax], ymm3
vmovdqu ymmword [rbx + rax + 0x20], ymm0
add rax, 0x40
cmp rax, rdx
jne 0x140268b30
cmp dword [rsi], 5
je 0x140268ffa
mov r12, qword [rsp + 0x118]
lea r13, [rbx + 0x80]
shl r12, 7
add r12, rbx
nop dword [rax]
vmovdqu ymm5, ymmword [r13 - 0x80]
vmovdqu ymm3, ymmword [r13 - 0x60]
mov rcx, r13
mov rdx, rsi
sub r13, 0xffffffffffffff80
vmovdqu ymmword [r13 - 0x80], ymm5
vmovdqu ymm5, ymmword [r13 - 0xc0]
vmovdqu ymmword [r13 - 0x60], ymm3
vmovdqu ymm3, ymmword [r13 - 0xa0]
vmovdqu ymmword [r13 - 0x40], ymm5
vmovdqu ymmword [r13 - 0x20], ymm3
call sym.blockmix_pwxform.constprop.0
cmp r12, r13
jne 0x140268b80
mov eax, dword [rsp + 0x120]
test eax, eax
je 0x140268ef5
shl rbp, 2
lea r12, [rbx + 4]
mov qword [rsp + 0x78], r14
xor r13d, r13d
lea rdx, [rbx + 0x80]
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x48], r12
mov r12, rbp
mov qword [rsp + 0x58], rdx
lea rdx, [rsp + 0x80]
mov rbp, rdi
shl rax, 7
mov qword [rsp + 0x60], rdx
lea rcx, [rbx + rax - 0x40]
mov qword [rsp + 0x110], r15
mov r14, rax
mov r15, rdi
mov qword [rsp + 0x68], rcx
mov rcx, rdi
nop dword [rax]
mov rax, qword [rsp + 0x48]
mov r8, rcx
xor edx, edx
sub r8, rax
cmp r8, 0x18
ja 0x140268de0
nop
mov eax, dword [rbx + rdx]
mov dword [rcx + rdx], eax
add rdx, 4
cmp rdx, r14
jne 0x140268c50
cmp r13d, 1
jbe 0x140268ccb
mov rax, qword [rsp + 0x68]
mov edx, r13d
mov edi, dword [rax]
nop
lea ecx, [rdx - 1]
mov r8d, edx
and edx, ecx
jne 0x140268c70
mov edx, r13d
and edi, ecx
sub edx, r8d
mov r8, rbx
lea ecx, [rdi + rdx]
imul rcx, qword [rsp + 0x118]
shl rcx, 7
lea rdx, [rbp + rcx]
lea rcx, [rbp + rcx + 4]
sub r8, rcx
lea rdi, [rdx + r14]
mov rcx, rbx
cmp r8, 0x18
ja 0x140268ec0
nop dword [rax + rax]
add rdx, 4
add rcx, 4
mov eax, dword [rdx - 4]
xor dword [rcx - 4], eax
cmp rdi, rdx
jne 0x140268cb8
cmp rbp, qword [rsi + 0x18]
je 0x140268e00
mov r8, qword [rsp + 0x118]
mov rdx, rsi
mov rcx, rbx
call sym.blockmix_pwxform
add r13d, 1
add r15, r14
cmp dword [rsp + 0x120], r13d
je 0x140268ee5
mov rcx, r15
jmp 0x140268c38
mov esi, dword [rbp + 4]
vmovdqu ymm1, ymmword [rbx + 0x40]
mov r13, rbx
vmovdqu ymm0, ymmword [rbx + 0x60]
vpxor ymm0, ymm0, ymmword [r13 + 0x20]
vpxor ymm1, ymm1, ymmword [r13]
mov edx, esi
add r13, 0x40
mov rcx, qword [rsp + 0x50]
vmovdqu ymmword [rsp + 0x80], ymm1
vmovdqu ymmword [rsp + 0xa0], ymm0
call sym.salsa20
mov rax, qword [rsp + 0x58]
vmovdqu ymm1, ymmword [rsp + 0x80]
vmovdqu ymm0, ymmword [rsp + 0xa0]
vmovdqu ymmword [r13 - 0x40], ymm1
vmovdqu ymmword [r13 - 0x20], ymm0
cmp r13, rax
jne 0x140268d15
jmp 0x1402689f1
mov eax, dword [r15 + 4]
vmovdqu ymm1, ymmword [rdi + 0x40]
mov rsi, rdi
vmovdqu ymm0, ymmword [rdi + 0x60]
mov dword [rsp + 0x50], eax
vpxor ymm0, ymm0, ymmword [rsi + 0x20]
vpxor ymm1, ymm1, ymmword [rsi]
add rsi, 0x40
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
vmovdqu ymmword [rsp + 0x80], ymm1
vmovdqu ymmword [rsp + 0xa0], ymm0
call sym.salsa20
mov rax, qword [rsp + 0x58]
vmovdqu ymm1, ymmword [rsp + 0x80]
vmovdqu ymm0, ymmword [rsp + 0xa0]
vmovdqu ymmword [rsi - 0x40], ymm1
vmovdqu ymmword [rsi - 0x20], ymm0
cmp rsi, rax
jne 0x140268d85
jmp 0x1402688be
vmovdqu ymm4, ymmword [rbx + rdx]
vmovdqu ymmword [rcx + rdx], ymm4
add rdx, 0x20
cmp r12, rdx
jne 0x140268de0
jmp 0x140268c5f
mov eax, dword [rsi + 4]
vmovdqu ymm1, ymmword [rbx + 0x40]
mov rdi, rbx
mov ecx, dword [rbx + 0x60]
vmovdqu xmm2, xmmword [rbx + 0x64]
vmovq xmm0, qword [rbx + 0x74]
mov edx, dword [rbx + 0x7c]
mov dword [rsp + 0x50], eax
vpxor ymm1, ymm1, ymmword [rdi]
xor ecx, dword [rdi + 0x20]
add rdi, 0x40
xor edx, dword [rdi - 4]
vpxor xmm2, xmm2, xmmword [rdi - 0x1c]
mov dword [rsp + 0xa0], ecx
vmovdqu ymmword [rsp + 0x80], ymm1
vmovq xmm1, qword [rdi - 0xc]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0xbc], edx
mov edx, dword [rsp + 0x50]
vmovdqu xmmword [rsp + 0xa4], xmm2
vpxor xmm1, xmm1, xmm0
vmovq qword [rsp + 0xb4], xmm1
call sym.salsa20
mov ecx, dword [rsp + 0xa0]
vmovdqu ymm1, ymmword [rsp + 0x80]
vmovdqu ymm5, ymmword [rsp + 0xa0]
mov edx, dword [rsp + 0xbc]
vmovdqu xmm2, xmmword [rsp + 0xa4]
vmovdqu ymmword [rdi - 0x40], ymm1
vmovq xmm0, qword [rsp + 0xb4]
vmovdqu ymmword [rdi - 0x20], ymm5
cmp qword [rsp + 0x58], rdi
jne 0x140268e1f
jmp 0x140268ce8
xor ecx, ecx
nop word [rax + rax]
vmovdqu ymm5, ymmword [rbx + rcx]
vpxor ymm0, ymm5, ymmword [rdx + rcx]
vmovdqu ymmword [rbx + rcx], ymm0
add rcx, 0x20
cmp r12, rcx
jne 0x140268ec8
jmp 0x140268ccb
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x110]
mov rdi, rbp
cmp r14, 0x7e
jbe 0x1402690cc
vmovdqu ymm1, ymmword [0x14030cb00]
mov rdx, qword [rsp + 0x118]
xor eax, eax
shl rdx, 7
nop dword [rax]
vpermd ymm2, ymm1, ymmword [rbx + rax]
vpermd ymm0, ymm1, ymmword [rbx + rax + 0x20]
vpblendd ymm3, ymm2, ymm0, 0xc6
vpblendd ymm0, ymm0, ymm2, 0xc6
vmovdqu ymmword [r15 + rax], ymm3
vmovdqu ymmword [r15 + rax + 0x20], ymm0
add rax, 0x40
cmp rax, rdx
jne 0x140268f18
mov qword [rsp + 0x30], rsi
mov r9d, dword [rsp + 0x70]
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov r8d, dword [rsp + 0x120]
mov qword [rsp + 0x20], rdi
mov rdx, qword [rsp + 0x118]
vzeroupper
call sym.smix2_1
mov qword [rsp + 0x30], rsi
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov r9d, dword [rsp + 0x74]
mov qword [rsp + 0x20], rdi
mov r8d, dword [rsp + 0x120]
mov rdx, qword [rsp + 0x118]
call sym.smix2_1
nop
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
nop dword [rax]
mov edx, dword [rbx + rax]
mov dword [r15 + rax], edx
add rax, 4
cmp rax, 0x80
jne 0x140268fc0
jmp 0x14026896a
xor edx, edx
nop word [rax + rax]
mov eax, dword [rdi + rdx]
mov dword [r13 + rdx], eax
add rdx, 4
cmp rdx, 0x80
jne 0x140268fe0
jmp 0x1402688a9
mov ecx, dword [rsp + 0x120]
test ecx, ecx
jne 0x140268bd9
jmp 0x140268f07
xor eax, eax
nop word [rax + rax]
mov ecx, dword [rdx + rax]
xor dword [rbx + rax], ecx
add rax, 4
cmp rax, 0x80
jne 0x140269018
jmp 0x1402689dc
mov r8, qword [rsp + 0x118]
mov rax, r15
mov rdx, rbx
shl r8, 7
add r8, r15
nop dword [rax]
mov ecx, dword [rax]
add rax, 0x40
add rdx, 0x40
mov dword [rdx - 0x40], ecx
mov ecx, dword [rax - 0x2c]
mov dword [rdx - 0x3c], ecx
mov ecx, dword [rax - 0x18]
mov dword [rdx - 0x38], ecx
mov ecx, dword [rax - 4]
mov dword [rdx - 0x34], ecx
mov ecx, dword [rax - 0x30]
mov dword [rdx - 0x30], ecx
mov ecx, dword [rax - 0x1c]
mov dword [rdx - 0x2c], ecx
mov ecx, dword [rax - 8]
mov dword [rdx - 0x28], ecx
mov ecx, dword [rax - 0x34]
mov dword [rdx - 0x24], ecx
mov ecx, dword [rax - 0x20]
mov dword [rdx - 0x20], ecx
mov ecx, dword [rax - 0xc]
mov dword [rdx - 0x1c], ecx
mov ecx, dword [rax - 0x38]
mov dword [rdx - 0x18], ecx
mov ecx, dword [rax - 0x24]
mov dword [rdx - 0x14], ecx
mov ecx, dword [rax - 0x10]
mov dword [rdx - 0x10], ecx
mov ecx, dword [rax - 0x3c]
mov dword [rdx - 0xc], ecx
mov ecx, dword [rax - 0x28]
mov dword [rdx - 8], ecx
mov ecx, dword [rax - 0x14]
mov dword [rdx - 4], ecx
cmp r8, rax
jne 0x140269048
cmp dword [rsi], 5
jne 0x140268b66
mov edx, dword [rsp + 0x120]
test edx, edx
jne 0x140268bd9
mov r8, qword [rsp + 0x118]
mov rax, rbx
mov rdx, r15
shl r8, 7
add r8, rbx
nop dword [rax]
mov ecx, dword [rax]
add rax, 0x40
add rdx, 0x40
mov dword [rdx - 0x40], ecx
mov ecx, dword [rax - 0x3c]
mov dword [rdx - 0x2c], ecx
mov ecx, dword [rax - 0x38]
mov dword [rdx - 0x18], ecx
mov ecx, dword [rax - 0x34]
mov dword [rdx - 4], ecx
mov ecx, dword [rax - 0x30]
mov dword [rdx - 0x30], ecx
mov ecx, dword [rax - 0x2c]
mov dword [rdx - 0x1c], ecx
mov ecx, dword [rax - 0x28]
mov dword [rdx - 8], ecx
mov ecx, dword [rax - 0x24]
mov dword [rdx - 0x34], ecx
mov ecx, dword [rax - 0x20]
mov dword [rdx - 0x20], ecx
mov ecx, dword [rax - 0x1c]
mov dword [rdx - 0xc], ecx
mov ecx, dword [rax - 0x18]
mov dword [rdx - 0x38], ecx
mov ecx, dword [rax - 0x14]
mov dword [rdx - 0x24], ecx
mov ecx, dword [rax - 0x10]
mov dword [rdx - 0x10], ecx
mov ecx, dword [rax - 0xc]
mov dword [rdx - 0x3c], ecx
mov ecx, dword [rax - 8]
mov dword [rdx - 0x28], ecx
mov ecx, dword [rax - 4]
mov dword [rdx - 0x14], ecx
cmp rax, r8
jne 0x1402690e8
jmp 0x140268f47