Function at 0x14009e150
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movups xmm0, xmmword [rdx]
mov r13, rdx
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x40]
mov r12, rcx
movaps xmmword [rsp + 0x40], xmm0
call fcn.14009bec0
mov r14, qword [r13]
xor ebx, ebx
mov r10, qword [r13 + 8]
mov r9d, ebx
mov r8, r14
lea r15, [r14 + r10*8]
cmp r14, r15
je 0x14009e1dc
mov rcx, qword [r8]
mov rax, qword [rcx + 0x50]
lea rdx, [rcx + 0x48]
mov rcx, rbx
cmp rax, rdx
je 0x14009e1d0
mov rax, qword [rax + 8]
inc rcx
cmp rax, rdx
jne 0x14009e1c4
add r9d, ecx
add r8, 8
cmp r8, r15
jne 0x14009e1b1
cmp r9d, dword [r12 + 0x788]
jb 0x14009ecf3
mov eax, r9d
imul rax, r10
lea rax, [rax + rax*4]
shr rax, 3
cmp rax, qword [r12 + 0x790]
ja 0x14009ecf3
mov qword [rsp + 0x210], rsi
mov rsi, r14
mov qword [rsp + 0x1c0], rdi
cmp r14, r15
je 0x14009e310
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rsi]
mov rbx, qword [rdi + 0x50]
add rdi, 0x48
cmp rbx, rdi
je 0x14009e254
mov rdx, rbx
mov rcx, r12
call fcn.14009fd10
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x14009e240
add rsi, 8
cmp rsi, r15
jne 0x14009e230
mov edi, dword [r12 + 0x40]
mov rsi, r14
nop word [rax + rax]
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
lea rcx, [r12 + 8]
mov qword [rsp + 0x30], rax
call fcn.1400a06b0
xor r8d, r8d
mov edx, edi
mov rcx, rax
mov rbx, rax
call fcn.14009b610
lea rcx, [rbx + 0x18]
xor r8d, r8d
mov edx, edi
call fcn.14009b610
lea rcx, [rbx + 0x30]
xor r8d, r8d
mov edx, edi
call fcn.14009b610
lea rcx, [rbx + 0x48]
xor r8d, r8d
mov edx, edi
call fcn.14009b610
lea rcx, [rbx + 0x60]
xor r8d, r8d
mov edx, edi
call fcn.14009b610
add rsi, 8
cmp rsi, r15
jne 0x14009e270
nop dword [rax + rax]
mov rbx, qword [r14]
lea rdx, [rsp + 0x30]
lea rcx, [r12 + 8]
mov qword [rsp + 0x30], rbx
call fcn.1400a06b0
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.14009c6f0
add r14, 8
cmp r14, r15
jne 0x14009e2e0
xor ebx, ebx
movups xmm0, xmmword [r13]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r15, r12
movaps xmmword [rsp + 0x40], xmm0
call fcn.14009cc10
movups xmm0, xmmword [r13]
lea rdx, [rsp + 0x40]
mov rcx, r12
movaps xmmword [rsp + 0x40], xmm0
call fcn.14009eff0
mov esi, dword [r12 + 0x10]
test esi, esi
jne 0x14009e355
cmp dword [r12 + 0x14], esi
je 0x14009e3f3
mov ecx, dword [r12 + 0x18]
lea eax, [rsi*4]
cmp eax, ecx
jae 0x14009e4ee
cmp ecx, 0x40
jbe 0x14009e4ee
lea rcx, [r12 + 8]
call fcn.140062da0
test esi, esi
je 0x14009e3ac
sub esi, 1
jne 0x14009e38a
lea ecx, [rsi + 0x20]
jmp 0x14009e391
bsr ecx, esi
xor rcx, 0x1f
mov ebx, 0x40
mov eax, 0x21
sub eax, ecx
mov edx, 1
movzx ecx, al
shl edx, cl
cmp edx, ebx
cmovg ebx, edx
mov eax, dword [r12 + 0x18]
mov rcx, qword [r12 + 8]
cmp ebx, eax
jne 0x14009e3e2
shl rax, 7
xor r14d, r14d
add rax, rcx
mov qword [r12 + 0x10], r14
cmp rcx, rax
je 0x14009e3f6
nop
mov qword [rcx], 0xfffffffffffffff8
sub rcx, 0xffffffffffffff80
cmp rcx, rax
jne 0x14009e3d0
jmp 0x14009e3f6
call fcn.14013f228
mov edx, ebx
lea rcx, [r12 + 8]
call fcn.140062ce0
xor r14d, r14d
movups xmm0, xmmword [r13]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x64], 0
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov rcx, r12
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x60], r14d
call fcn.14009d350
mov r13d, dword [r12 + 0x40]
lea rax, [rbp + 0x20]
xor ecx, ecx
mov qword [rbp + 0x10], rax
mov qword [rbp + 0xa0], r12
mov eax, 0x20
mov dword [rbp + 0x1c], eax
mov r12d, ecx
mov dword [rbp + 0x18], ecx
test r13d, r13d
jle 0x14009e567
cmp dword [rbp + 0x18], eax
jb 0x14009e46d
mov r9d, 4
lea rdx, [rbp + 0x20]
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.14001d070
mov ecx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov dword [rax + rcx*4], r12d
mov eax, dword [rbp + 0x18]
mov rsi, qword [rbp + 0x10]
inc eax
mov edi, eax
mov dword [rbp + 0x18], eax
cmp rdi, 2
jb 0x14009e4de
mov r15d, dword [rsi + rax*4 - 4]
dec rdi
mov rax, qword [rbp + 0xa0]
mov qword [rsp + 0x30], rax
lea rbx, [rdi - 1]
sar rbx, 1
test rdi, rdi
jle 0x14009e4da
nop dword [rax]
mov r14d, dword [rsi + rbx*4]
lea rcx, [rsp + 0x30]
mov edx, r14d
mov r8d, r15d
call fcn.14009ee40
test al, al
je 0x14009e4da
mov dword [rsi + rdi*4], r14d
mov rdi, rbx
dec rbx
sar rbx, 1
test rdi, rdi
jg 0x14009e4b0
mov dword [rsi + rdi*4], r15d
inc r12d
cmp r12d, r13d
jge 0x14009e560
mov eax, dword [rbp + 0x1c]
jmp 0x14009e452
mov rbx, qword [r12 + 8]
mov rsi, rcx
shl rsi, 7
add rsi, rbx
cmp rbx, rsi
je 0x14009e553
mov rax, qword [rbx]
cmp rax, 0xfffffffffffffff8
je 0x14009e54a
cmp rax, 0xfffffffffffffff0
je 0x14009e543
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], 0xfffffffffffffff8
sub rbx, 0xffffffffffffff80
cmp rbx, rsi
jne 0x14009e502
xor r14d, r14d
mov qword [r12 + 0x10], r14
jmp 0x14009e3f6
mov r15, qword [rsp + 0x38]
xor ecx, ecx
cmp dword [rbp + 0x18], 0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov r14d, ecx
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x7c], 0x20
mov qword [rbp], r15
jne 0x14009e5a2
mov r12d, dword [rsp + 0x68]
jmp 0x14009eb62
xor ecx, ecx
mov rsi, qword [rbp + 0x10]
mov eax, dword [rbp + 0x18]
mov rbx, qword [rbp + 0xa0]
mov edi, dword [rsi]
mov dword [rsp + 0x50], edi
cmp rax, 2
jb 0x14009e68a
lea r15, [rax - 1]
mov qword [rsp + 0x20], rbx
mov r13d, dword [rsi + r15*4]
lea r15, [rsi + r15*4]
mov dword [r15], edi
mov r14, rcx
sub r15, rsi
sar r15, 2
lea rdx, [r15 - 1]
mov r12, rdx
sar r12, 1
test r12, r12
jle 0x14009e628
nop dword [rax]
lea rdi, [rcx + rcx]
mov r8d, dword [rsi + rdi*4 + 4]
lea rcx, [rsp + 0x20]
mov edx, dword [rsi + rdi*4 + 8]
call fcn.14009ee40
movzx eax, al
lea rcx, [rdi + 1]
xor rax, 1
add rcx, rax
mov eax, dword [rsi + rcx*4]
mov dword [rsi + r14*4], eax
mov r14, rcx
cmp rcx, r12
jl 0x14009e5f0
lea rdx, [r15 - 1]
cmp r14, r12
jne 0x14009e63f
test r15b, 1
jne 0x14009e63f
mov eax, dword [rsi + r15*4 - 4]
mov dword [rsi + r14*4], eax
mov r14, rdx
mov qword [rsp + 0x20], rbx
lea rbx, [r14 - 1]
sar rbx, 1
test r14, r14
jle 0x14009e678
mov edi, dword [rsi + rbx*4]
lea rcx, [rsp + 0x20]
mov edx, edi
mov r8d, r13d
call fcn.14009ee40
test al, al
je 0x14009e678
mov dword [rsi + r14*4], edi
mov r14, rbx
dec rbx
sar rbx, 1
test r14, r14
jg 0x14009e650
mov r15, qword [rsp + 0x38]
mov edi, dword [rsp + 0x50]
mov dword [rsi + r14*4], r13d
mov r14d, dword [rsp + 0x78]
dec dword [rbp + 0x18]
mov rax, qword [r15 + 0x38]
mov ecx, edi
mov r13, qword [rax + rcx*8]
lea rax, [rcx + rcx*2]
shl rax, 4
add rax, qword [r15 + 0x148]
mov qword [rsp + 0x40], r13
mov rdx, qword [rax]
mov r8d, dword [rax + 8]
shl r8, 4
add r8, rdx
mov rcx, qword [rdx + 8]
cmp rdx, r8
je 0x14009e6e2
nop dword [rax]
nop word [rax + rax]
cmp rcx, qword [rdx + 8]
cmovb rcx, qword [rdx + 8]
add rdx, 0x10
cmp rdx, r8
jne 0x14009e6d0
test r14d, r14d
je 0x14009e8aa
mov r12d, ecx
xor r13d, r13d
mov rax, qword [rsp + 0x70]
mov esi, dword [rax]
lea r10, [rsi + rsi*2]
shl r10, 4
add r10, qword [r15 + 0x148]
mov r11d, dword [r10 + 8]
test r11d, r11d
je 0x14009e76d
mov r8, qword [r10]
mov r9d, r11d
shl r9, 4
mov rcx, r8
add r9, r8
mov rdx, qword [r8 + 8]
cmp r8, r9
je 0x14009e765
nop dword [rax]
cmp rdx, qword [rcx + 8]
cmovb rdx, qword [rcx + 8]
add rcx, 0x10
cmp rcx, r9
jne 0x14009e730
mov rcx, qword [r8]
nop word [rax + rax]
cmp qword [r8], rcx
cmovb rcx, qword [r8]
add r8, 0x10
cmp r8, r9
jne 0x14009e750
sub rdx, rcx
jmp 0x14009e770
mov rcx, qword [r8]
sub rdx, rcx
jmp 0x14009e770
mov rdx, r13
mov r8, qword [r10]
mov r9, r11
shl r9, 4
add r9, r8
mov rax, qword [r8]
cmp r8, r9
je 0x14009e7a0
nop word [rax + rax]
cmp qword [r8], rax
cmovb rax, qword [r8]
add r8, 0x10
cmp r8, r9
jne 0x14009e790
cmp rax, r12
jae 0x14009e7ae
test rdx, rdx
jne 0x14009e8a1
lea rcx, [rsp + 0x70]
call fcn.1400a0510
mov rax, qword [r15 + 0x38]
lea rbx, [r15 + 0x758]
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov rsi, qword [rax + rsi*8]
test rsi, rsi
lea rdi, [rsi + 0x10]
cmove rdi, r13
mov qword [rsp + 0x20], rdi
call fcn.140063b80
mov rdx, qword [rsp + 0x30]
test al, al
jne 0x14009e863
mov r9d, dword [rbx + 8]
mov r8d, dword [rbx + 0x10]
inc r9d
mov qword [rsp + 0x28], rdx
lea eax, [r9*4]
lea ecx, [r8 + r8*2]
cmp eax, ecx
jb 0x14009e818
lea edx, [r8 + r8]
jmp 0x14009e82e
mov ecx, r8d
mov eax, r8d
sub ecx, dword [rbx + 0xc]
sub ecx, r9d
shr eax, 3
cmp ecx, eax
ja 0x14009e84d
mov edx, r8d
mov rcx, rbx
call fcn.140089090
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.140063b80
mov rdx, qword [rsp + 0x28]
inc dword [rbx + 8]
cmp qword [rdx], 0xfffffffffffffff8
je 0x14009e859
dec dword [rbx + 0xc]
mov qword [rdx], rdi
mov dword [rdx + 8], 0xffffffff
mov r9d, dword [rdx + 8]
mov rdx, rsi
mov rax, qword [r15 + 0x770]
mov ecx, r9d
shr rcx, 5
and r9d, 0x1f
lea r8, [rax + rcx*4]
mov rcx, r15
mov eax, dword [r8]
bts eax, r9d
mov dword [r8], eax
mov rax, qword [r15]
call qword [rax + 0x10]
mov r14d, dword [rsp + 0x78]
test r14d, r14d
jne 0x14009e6f1
mov r13, qword [rsp + 0x40]
mov edi, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x68]
test r12d, r12d
je 0x14009e909
mov r10, qword [rsp + 0x58]
lea r9d, [r12 - 1]
mov ecx, r13d
mov r8d, 1
shr ecx, 5
xor ecx, r13d
shr ecx, 4
and ecx, r9d
mov eax, ecx
add rax, rax
mov rdx, qword [r10 + rax*8]
cmp r13, rdx
je 0x14009ea48
cmp rdx, 0xfffffffffffffff8
je 0x14009e909
mov eax, r8d
inc r8d
add ecx, eax
and ecx, r9d
mov eax, ecx
add rax, rax
mov rdx, qword [r10 + rax*8]
cmp r13, rdx
jne 0x14009e8e5
jmp 0x14009ea48
xor ebx, ebx
lea r9, [r13 + 0x10]
test r13, r13
jne 0x14009e917
mov r9d, ebx
mov eax, dword [r15 + 0x768]
mov r10, qword [r15 + 0x758]
test eax, eax
je 0x14009e971
lea r11d, [rax - 1]
mov ecx, r9d
shr ecx, 5
mov r8d, 1
xor ecx, r9d
shr ecx, 4
and ecx, r11d
mov eax, ecx
add rax, rax
mov rdx, qword [r10 + rax*8]
cmp r9, rdx
je 0x14009e9a0
cmp rdx, 0xfffffffffffffff8
je 0x14009e971
mov eax, r8d
inc r8d
add ecx, eax
and ecx, r11d
mov eax, ecx
add rax, rax
mov rdx, qword [r10 + rax*8]
cmp r9, rdx
jne 0x14009e950
jmp 0x14009e9a0
lea rcx, [r15 + 0x770]
lea rdx, [rsp + 0x54]
call fcn.14009bcc0
lea rdx, [r13 + 0x10]
test r13, r13
jne 0x14009e98e
mov rdx, rbx
mov r8d, dword [rsp + 0x54]
mov rcx, r15
call fcn.14009fc30
mov r14d, dword [rsp + 0x78]
cmp r14d, dword [rsp + 0x7c]
jb 0x14009e9c3
mov r9d, 4
lea rdx, [rbp - 0x80]
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14001d070
mov r14d, dword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov ecx, r14d
mov dword [rax + rcx*4], edi
mov r14d, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
inc r14d
mov edi, r14d
mov dword [rsp + 0x78], r14d
cmp rdi, 2
jb 0x14009ea48
mov rax, qword [rbp]
dec rdi
mov r15d, dword [rsi + r14*4 - 4]
mov qword [rsp + 0x40], rax
lea rbx, [rdi - 1]
sar rbx, 1
test rdi, rdi
jle 0x14009ea3a
nop word [rax + rax]
mov r14d, dword [rsi + rbx*4]
lea rcx, [rsp + 0x40]
mov edx, r14d
mov r8d, r15d
call fcn.14009ed30
test al, al
je 0x14009ea3a
mov dword [rsi + rdi*4], r14d
mov rdi, rbx
dec rbx
sar rbx, 1
test rdi, rdi
jg 0x14009ea10
mov dword [rsi + rdi*4], r15d
mov r14d, dword [rsp + 0x78]
mov r15, qword [rsp + 0x38]
cmp dword [rbp + 0x18], 0
jne 0x14009e5a0
test r14d, r14d
je 0x14009eb60
lea rbx, [r15 + 0x758]
xor r14d, r14d
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov ecx, dword [rax]
mov rax, qword [r15 + 0x38]
mov rsi, qword [rax + rcx*8]
mov rcx, rbx
test rsi, rsi
lea rdi, [rsi + 0x10]
cmove rdi, r14
mov qword [rsp + 0x20], rdi
call fcn.140063b80
mov rdx, qword [rsp + 0x30]
test al, al
jne 0x14009eb1b
mov r9d, dword [rbx + 8]
mov r8d, dword [rbx + 0x10]
inc r9d
mov qword [rsp + 0x28], rdx
lea eax, [r9*4]
lea ecx, [r8 + r8*2]
cmp eax, ecx
jb 0x14009ead0
lea edx, [r8 + r8]
jmp 0x14009eae6
mov ecx, r8d
mov eax, r8d
sub ecx, dword [rbx + 0xc]
sub ecx, r9d
shr eax, 3
cmp ecx, eax
ja 0x14009eb05
mov edx, r8d
mov rcx, rbx
call fcn.140089090
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.140063b80
mov rdx, qword [rsp + 0x28]
inc dword [rbx + 8]
cmp qword [rdx], 0xfffffffffffffff8
je 0x14009eb11
dec dword [rbx + 0xc]
mov qword [rdx], rdi
mov dword [rdx + 8], 0xffffffff
mov r9d, dword [rdx + 8]
mov rdx, rsi
mov rax, qword [r15 + 0x770]
mov ecx, r9d
shr rcx, 5
and r9d, 0x1f
lea r8, [rax + rcx*4]
mov rcx, r15
mov eax, dword [r8]
bts eax, r9d
mov dword [r8], eax
mov rax, qword [r15]
call qword [rax + 0x10]
lea rcx, [rsp + 0x70]
call fcn.1400a0510
cmp dword [rsp + 0x78], r14d
jne 0x14009ea70
xor ecx, ecx
cmp dword [rsp + 0x60], 0
je 0x14009eca7
mov esi, r12d
mov r12, qword [rsp + 0x58]
shl rsi, 4
mov rbx, r12
add rsi, r12
cmp r12, rsi
je 0x14009eba8
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
add rax, 0x10
test rax, 0xfffffffffffffff7
jne 0x14009eba8
add rbx, 0x10
cmp rbx, rsi
jne 0x14009eb90
cmp rbx, rsi
je 0x14009ecac
lea rdi, [r15 + 0x758]
nop dword [rax + rax]
mov rax, qword [rbx + 8]
lea r8, [rsp + 0x30]
test rax, rax
lea rdx, [rsp + 0x20]
lea r14, [rax + 0x10]
cmove r14, rcx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.140063b80
mov r8, qword [rsp + 0x30]
test al, al
jne 0x14009ec58
mov r9d, dword [rdi + 8]
mov edx, dword [rdi + 0x10]
inc r9d
mov qword [rsp + 0x28], r8
lea eax, [r9*4]
lea ecx, [rdx + rdx*2]
cmp eax, ecx
jb 0x14009ec11
add edx, edx
jmp 0x14009ec22
mov ecx, edx
mov eax, edx
sub ecx, dword [rdi + 0xc]
sub ecx, r9d
shr eax, 3
cmp ecx, eax
ja 0x14009ec41
mov rcx, rdi
call fcn.140089090
lea r8, [rsp + 0x28]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.140063b80
mov r8, qword [rsp + 0x28]
inc dword [rdi + 8]
cmp qword [r8], 0xfffffffffffffff8
je 0x14009ec4d
dec dword [rdi + 0xc]
mov qword [r8], r14
mov dword [r8 + 8], 0xffffffff
mov rax, qword [rbx]
mov r14d, 0
mov r8d, dword [r8 + 8]
test rax, rax
mov rcx, r15
lea rdx, [rax + 0x10]
cmove rdx, r14
call fcn.14009fc30
add rbx, 0x10
cmp rbx, rsi
je 0x14009ec9c
mov rax, qword [rbx]
add rax, 0x10
test rax, 0xfffffffffffffff7
jne 0x14009ec99
add rbx, 0x10
cmp rbx, rsi
jne 0x14009ec81
cmp rbx, rsi
mov rcx, r14
jne 0x14009ebc0
jmp 0x14009ecac
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
mov rdi, qword [rsp + 0x1c0]
cmp rsi, rax
je 0x14009eccb
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbp + 0x10]
lea rax, [rbp + 0x20]
cmp rsi, rax
je 0x14009ece1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call fcn.14013f228
mov rsi, qword [rsp + 0x210]
jmp 0x14009ed0a
movups xmm0, xmmword [r13]
lea rdx, [rsp + 0x40]
mov rcx, r12
movaps xmmword [rsp + 0x40], xmm0
call fcn.14009dd60
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret