Function at 0x14009e6d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movdqa xmmword [rsp + 0xc0], xmm12
movdqa xmmword [rsp + 0xb0], xmm11
movdqa xmmword [rsp + 0xa0], xmm10
movdqa xmmword [rsp + 0x90], xmm9
movdqa xmmword [rsp + 0x80], xmm8
movdqa xmmword [rsp + 0x70], xmm7
movdqa xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x34], r8d
mov r15d, edx
mov r14d, ecx
lea ebx, [r14 + r14 + 0x80]
lea rsi, [rbx + 0x20]
lea rdx, [fcn.14002f990]
mov rcx, rbx
call fcn.140083560
mov rcx, rax
mov rdx, rsi
call fcn.14007aea0
mov rbp, rax
mov r13d, r14d
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov r12, rax
mov ecx, 0x40
call fcn.14007ae20
mov rdi, rax
test r14d, r14d
je 0x14009e7bf
xor esi, esi
nop
mov rcx, rbp
mov rdx, rbp
mov r8w, 3
call fcn.14007b6a0
mov rcx, rdi
mov rdx, rbp
mov r8, rbx
call fcn.14007c3e0
mov rcx, rbp
mov rdx, rbx
call fcn.14007e560
mov rcx, rdi
call fcn.14007b990
mov word [r12 + rsi*2], ax
add rsi, 1
cmp r13, rsi
jne 0x14009e780
mov rcx, rdi
call fcn.14007afd0
mov rcx, rbp
call fcn.14007afd0
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
mov rcx, rax
mov rdx, r12
mov r8d, r14d
mov r9d, 3
call fcn.14009c110
test eax, eax
je 0x14009e838
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rbp, rax
mov rcx, rax
mov edx, r14d
mov r8d, dword [rsp + 0x34]
call fcn.14009e5c0
test r14d, r14d
mov qword [rsp + 0x58], rsi
je 0x14009e864
lea eax, [r15 - 3]
cmp r14d, 0x10
jae 0x14009e87c
xor ecx, ecx
jmp 0x14009e990
add r13, r13
mov rcx, r12
mov rdx, r13
call fcn.140076910
mov rcx, r12
call fcn.14003f720
mov rcx, rsi
mov rdx, r13
call fcn.140076910
xor r14d, r14d
mov r15, rsi
jmp 0x14009ef50
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rbx, rax
jmp 0x14009ec58
mov ecx, r13d
and ecx, 0xfffffff0
movd xmm0, eax
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [rcx - 0x10]
mov rdi, rdx
shr rdi, 4
add rdi, 1
test rdx, rdx
je 0x14009efa6
mov rbx, rdi
and rbx, 0xfffffffffffffffe
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rbp + rdx*2]
movdqu xmm2, xmmword [rbp + rdx*2 + 0x10]
movdqu xmm3, xmmword [rbp + rdx*2 + 0x20]
movdqu xmm4, xmmword [rbp + rdx*2 + 0x30]
movdqa xmm5, xmm1
psrlw xmm5, 1
movdqa xmm6, xmm2
psrlw xmm6, 1
pmullw xmm5, xmm0
pmullw xmm6, xmm0
paddw xmm5, xmm1
paddw xmm6, xmm2
movdqu xmmword [rbp + rdx*2], xmm5
movdqu xmmword [rbp + rdx*2 + 0x10], xmm6
movdqa xmm1, xmm3
psrlw xmm1, 1
movdqa xmm2, xmm4
psrlw xmm2, 1
pmullw xmm1, xmm0
pmullw xmm2, xmm0
paddw xmm1, xmm3
paddw xmm2, xmm4
movdqu xmmword [rbp + rdx*2 + 0x20], xmm1
movdqu xmmword [rbp + rdx*2 + 0x30], xmm2
add rdx, 0x20
add rbx, 0xfffffffffffffffe
jne 0x14009e8c0
test dil, 1
je 0x14009e97e
movdqu xmm1, xmmword [rbp + rdx*2]
movdqu xmm2, xmmword [rbp + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [rbp + rdx*2], xmm3
movdqu xmmword [rbp + rdx*2 + 0x10], xmm4
cmp rcx, r13
je 0x14009e9ac
nop word cs:[rax + rax]
nop dword [rax]
movzx ebx, word [rbp + rcx*2]
mov edx, ebx
shr edx, 1
imul edx, eax
add edx, ebx
mov word [rbp + rcx*2], dx
add rcx, 1
cmp r13, rcx
jne 0x14009e990
xor edi, edi
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rbx, rax
movzx ecx, r15w
movabs rax, 0x1000000000000
xor edx, edx
div rcx
cmp r14d, 8
jb 0x14009ec20
lea rdx, [r13*2]
add rdx, rbp
cmp rbx, rdx
jae 0x14009e9fe
lea rdx, [rbx + r13*2]
cmp rbp, rdx
jae 0x14009e9fe
xor edi, edi
jmp 0x14009ec20
mov edi, r13d
and edi, 0xfffffff8
movq xmm0, rax
pshufd xmm12, xmm0, 0x44
movd xmm1, ecx
pshufd xmm11, xmm1, 0
movd xmm1, r15d
pshufd xmm9, xmm1, 0
mov r8, r13
add r8, r13
and r8, 0xfffffffffffffff0
xor edx, edx
pxor xmm10, xmm10
movdqa xmm4, xmm12
psrlq xmm4, 0x20
pslld xmm11, 0x10
psrad xmm11, 0x10
packssdw xmm11, xmm11
pcmpeqd xmm8, xmm8
nop word cs:[rax + rax]
nop
movdqu xmm1, xmmword [rbp + rdx]
movdqa xmm3, xmm1
punpckhwd xmm3, xmm10
punpcklwd xmm1, xmm10
movdqa xmm2, xmm1
paddd xmm2, xmm1
paddd xmm2, xmm1
movdqa xmm1, xmm3
paddd xmm1, xmm3
paddd xmm1, xmm3
movdqa xmm3, xmm1
punpckhdq xmm3, xmm10
movdqa xmm7, xmm1
punpckldq xmm7, xmm10
movdqa xmm5, xmm2
punpckhdq xmm5, xmm10
movdqa xmm6, xmm2
punpckldq xmm6, xmm10
movdqa xmm0, xmm12
pmuludq xmm0, xmm6
pmuludq xmm6, xmm4
psllq xmm6, 0x20
paddq xmm6, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm5
pmuludq xmm5, xmm4
psllq xmm5, 0x20
paddq xmm5, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm7
pmuludq xmm7, xmm4
psllq xmm7, 0x20
paddq xmm7, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm3
pmuludq xmm3, xmm4
psllq xmm3, 0x20
paddq xmm3, xmm0
movdqa xmm0, xmm3
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm3, 0x10
pshufd xmm3, xmm3, 0xed
punpckldq xmm3, xmm0
movdqa xmm0, xmm7
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm7, 0x10
pshufd xmm7, xmm7, 0xed
punpckldq xmm7, xmm0
packssdw xmm7, xmm3
movdqa xmm0, xmm5
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm5, 0x10
pshufd xmm3, xmm5, 0xed
punpckldq xmm3, xmm0
movdqa xmm0, xmm6
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm6, 0x10
pshufd xmm5, xmm6, 0xed
punpckldq xmm5, xmm0
packssdw xmm5, xmm3
packssdw xmm5, xmm7
movdqa xmm0, xmm11
pmulhuw xmm0, xmm5
pmullw xmm5, xmm11
movdqa xmm3, xmm5
punpckhwd xmm3, xmm0
punpcklwd xmm5, xmm0
psubd xmm2, xmm5
psubd xmm1, xmm3
movdqa xmm0, xmm1
pxor xmm0, xmm8
movdqa xmm3, xmm2
pxor xmm3, xmm8
paddd xmm3, xmm9
paddd xmm0, xmm9
pslld xmm0, 0x10
pslld xmm3, 0x10
packssdw xmm3, xmm0
psrlw xmm3, 0xf
pmullw xmm3, xmm11
movdqa xmm0, xmm3
punpckhwd xmm0, xmm0
punpcklwd xmm3, xmm3
psubd xmm2, xmm3
psubd xmm1, xmm0
pslld xmm1, 0x10
psrad xmm1, 0x10
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm1
movdqu xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp r8, rdx
jne 0x14009ea60
cmp rdi, r13
je 0x14009ec58
nop dword [rax]
movzx edx, word [rbp + rdi*2]
lea rsi, [rdx + rdx*2]
mov rdx, rsi
imul rdx, rax
shr rdx, 0x30
imul edx, ecx
sub esi, edx
mov edx, esi
not edx
add edx, r15d
shr edx, 0xf
and edx, 1
imul edx, ecx
sub esi, edx
mov word [rbx + rdi*2], si
add rdi, 1
cmp r13, rdi
jne 0x14009ec20
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rdi, rax
mov rcx, rax
mov qword [rsp + 0x50], rbx
mov rdx, rbx
mov r8d, r14d
mov rsi, r14
mov qword [rsp + 0x38], r15
mov r9d, r15d
call fcn.14009c110
test eax, eax
jne 0x14009eca6
lea rcx, str.expect_always_success
lea rdx, str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_ntru.c
mov r8d, 0x420
call fcn.1400ca0ec
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov r15, rax
mov r14, rsi
test esi, esi
je 0x14009ee66
mov rax, qword [rsp + 0x38]
lea esi, [rax - 3]
cmp r14d, 0x10
jb 0x14009ece4
lea rcx, [r12 + r13*2]
cmp r15, rcx
jae 0x14009ed56
lea rcx, [r15 + r13*2]
cmp r12, rcx
jae 0x14009ed56
xor ecx, ecx
mov rdx, rcx
not rdx
test r13b, 1
je 0x14009ed13
movzx r8d, word [r12 + rcx*2]
mov rbx, rdi
mov edi, r8d
shr edi, 1
mov eax, esi
imul eax, edi
mov rdi, rbx
add eax, r8d
mov word [r15 + rcx*2], ax
or rcx, 1
add rdx, r13
je 0x14009ee66
nop dword [rax]
movzx eax, word [r12 + rcx*2]
mov edx, eax
shr edx, 1
imul edx, esi
add edx, eax
mov word [r15 + rcx*2], dx
movzx eax, word [r12 + rcx*2 + 2]
mov edx, eax
shr edx, 1
imul edx, esi
add edx, eax
mov word [r15 + rcx*2 + 2], dx
add rcx, 2
cmp r13, rcx
jne 0x14009ed20
jmp 0x14009ee66
mov rax, rdi
mov ecx, r13d
and ecx, 0xfffffff0
movd xmm0, esi
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [rcx - 0x10]
mov r8, rdx
shr r8, 4
add r8, 1
test rdx, rdx
je 0x14009efb7
mov rdi, r8
and rdi, 0xfffffffffffffffe
xor edx, edx
nop
movdqu xmm1, xmmword [r12 + rdx*2]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2], xmm3
movdqu xmmword [r15 + rdx*2 + 0x10], xmm4
movdqu xmm1, xmmword [r12 + rdx*2 + 0x20]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x30]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2 + 0x20], xmm3
movdqu xmmword [r15 + rdx*2 + 0x30], xmm4
add rdx, 0x20
add rdi, 0xfffffffffffffffe
jne 0x14009ed90
test r8b, 1
je 0x14009ee5a
movdqu xmm1, xmmword [r12 + rdx*2]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2], xmm3
movdqu xmmword [r15 + rdx*2 + 0x10], xmm4
cmp rcx, r13
mov rdi, rax
jne 0x14009ece6
mov qword [rsp + 0x48], rdi
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], ecx
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov rdi, r14
mov r9d, edi
call fcn.14009b880
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.14003f680
mov rsi, rax
mov rcx, rax
mov edx, edi
mov ebx, dword [rsp + 0x34]
mov r8d, ebx
call fcn.14009e5c0
mov ecx, 1
mov edx, 0x30
xor r8d, r8d
call fcn.14003f680
mov r14, rax
mov dword [rax], edi
mov rax, qword [rsp + 0x38]
mov dword [r14 + 4], eax
mov dword [r14 + 8], ebx
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r14 + 0x20], rax
mov qword [r14 + 0x28], rsi
add r13, r13
mov rcx, rbp
mov rdx, r13
call fcn.140076910
mov rcx, rbp
call fcn.14003f720
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, r13
call fcn.140076910
mov rcx, rsi
call fcn.14003f720
mov rcx, r12
mov rdx, r13
call fcn.140076910
mov rcx, r12
call fcn.14003f720
mov rcx, r15
mov rdx, r13
call fcn.140076910
mov rcx, r15
call fcn.14003f720
mov rax, r14
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm10, xmmword [rsp + 0xa0]
movaps xmm11, xmmword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
test dil, 1
jne 0x14009e944
jmp 0x14009e97e
xor edx, edx
test r8b, 1
jne 0x14009ee1e
jmp 0x14009ee5a