Function at 0x18000a748
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x378
movaps xmmword [rsp + 0x360], xmm14
movapd xmmword [rsp + 0x350], xmm13
movapd xmmword [rsp + 0x340], xmm12
movaps xmmword [rsp + 0x330], xmm11
movapd xmmword [rsp + 0x320], xmm10
movaps xmmword [rsp + 0x310], xmm9
movaps xmmword [rsp + 0x300], xmm8
movaps xmmword [rsp + 0x2f0], xmm7
movaps xmmword [rsp + 0x2e0], xmm6
mov rdi, r9
mov r13, r8
mov rbx, rdx
mov rsi, rcx
cmp byte [r8], 0
je 0x18000aa85
mov qword [rsp + 0x98], r13
cmp dword [0x1800271b8], 0
jle 0x18000a8db
xor r15d, r15d
lea r12, [0x180027d68]
lea r13, [rsp + 0xe0]
lea rbp, [rsp + 0xa0]
lea r14, [rsp + 0x80]
mov rax, qword [0x1800271b0]
lea rcx, [r15 + r15*2]
movups xmm0, xmmword [rax + rcx*8]
movaps xmmword [rsp + 0xe0], xmm0
mov rax, qword [rax + rcx*8 + 0x10]
mov qword [rsp + 0xf0], rax
mov rcx, r12
mov rdx, r13
call fcn.1800164a0
test al, al
je 0x18000a8c8
mov eax, dword [rsp + 0xe0]
cmp eax, dword [0x180027520]
jne 0x18000a87f
mov dword [rsp + 0x70], 0x10021
mov word [rsp + 0x74], 0x21
mov word [rsp + 0x78], 0
mov eax, 1
xor byte [rsp + rax*2 + 0x70], 0x21
inc rax
cmp rax, 4
jne 0x18000a85b
mov word [rsp + 0x78], 0
mov rcx, rbp
lea rdx, [rsp + 0x72]
call fcn.180004d10
jmp 0x18000a8ac
cmp eax, dword [0x180027538]
jne 0x18000a89e
mov eax, dword [rdi + 8]
test eax, eax
jle 0x18000a8c8
mov rcx, qword [rdi]
dec eax
mov dword [rdi + 8], eax
mov word [rcx + rax*2], 0
jmp 0x18000a8c8
mov rcx, r12
mov rdx, rbp
mov r8, r13
call fcn.18001d996
mov rcx, r12
mov rdx, r14
mov r8, rdi
mov r9, rbp
call fcn.18001da9a
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rdi], xmm0
inc r15
movsxd rax, dword [0x1800271b8]
cmp r15, rax
jl 0x18000a7fa
cmp qword [rdi], 0
je 0x18000ac2a
movaps xmm6, xmmword [0x180021980]
lea r12, [rsp + 0x80]
movaps xmmword [r12], xmm6
mov r8, qword [0x180027dd8]
mov qword [rsp + 0x20], r12
lea r14, [0x180027d68]
lea r15, [rsp + 0xe0]
mov rcx, r14
mov rdx, r15
mov r9, rdi
call fcn.18001b4e4
movups xmm0, xmmword [rsi + 0x64]
lea rax, [rsp + 0x1f0]
movaps xmmword [rax], xmm0
movups xmm0, xmmword [rsi + 0x54]
lea rcx, [rsp + 0x1e0]
movaps xmmword [rcx], xmm0
movups xmm0, xmmword [rsi + 0x44]
lea r9, [rsp + 0x1d0]
movaps xmmword [r9], xmm0
movsd xmm0, qword [r15]
movsd xmm1, qword [0x180021cb0]
addsd xmm1, xmm0
movsd xmm2, qword [0x180021d60]
movapd xmm3, xmm2
cmpltsd xmm3, xmm0
andpd xmm1, xmm3
andnpd xmm3, xmm2
orpd xmm3, xmm1
lea r8, [rsp + 0x2c0]
movlpd qword [r8], xmm3
movabs rdx, 0x4034000000000000
mov qword [r8 + 8], rdx
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
lea rdx, [rsp + 0x1c0]
movapd xmmword [rdx], xmm1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
call fcn.18000871e
movaps xmm0, xmmword [0x180021900]
movaps xmmword [r12], xmm0
xorpd xmm1, xmm1
lea rax, [rsp + 0xa0]
movapd xmmword [rax], xmm1
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [section..rdata]
lea r8, [rsp + 0xd0]
movaps xmmword [r8], xmm0
lea r10, [rsp + 0xc0]
movaps xmmword [r10], xmm6
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
addpd xmm1, xmmword [0x180021db0]
lea r9, [rsp + 0xb0]
movapd xmmword [r9], xmm1
mov rdx, qword [0x180027dd8]
mov qword [rsp + 0x60], r12
mov r11b, 1
mov byte [rsp + 0x58], r11b
mov byte [rsp + 0x50], r11b
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
movabs rax, 0x3ff0000000000000
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x48], 0
mov rcx, r14
mov r8, rdi
call fcn.18001b6bc
jmp 0x18000ac9a
cmp qword [rdi], 0
je 0x18000aca7
movaps xmm6, xmmword [0x180021980]
lea r12, [rsp + 0x80]
movaps xmmword [r12], xmm6
mov r8, qword [0x180027dd8]
mov qword [rsp + 0x20], r12
lea r14, [0x180027d68]
lea r15, [rsp + 0xe0]
mov rcx, r14
mov rdx, r15
mov r9, rdi
call fcn.18001b4e4
movups xmm0, xmmword [rsi + 0x64]
lea rax, [rsp + 0x230]
movaps xmmword [rax], xmm0
movups xmm0, xmmword [rsi + 0x54]
lea rcx, [rsp + 0x220]
movaps xmmword [rcx], xmm0
movups xmm0, xmmword [rsi + 0x44]
lea r9, [rsp + 0x210]
movaps xmmword [r9], xmm0
movsd xmm0, qword [r15]
movsd xmm1, qword [0x180021cb8]
addsd xmm1, xmm0
movsd xmm2, qword [0x180021d60]
movapd xmm3, xmm2
cmpltsd xmm3, xmm0
andpd xmm1, xmm3
andnpd xmm3, xmm2
orpd xmm3, xmm1
lea r8, [rsp + 0x2d0]
movlpd qword [r8], xmm3
movabs rdx, 0x4034000000000000
mov qword [r8 + 8], rdx
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
lea rdx, [rsp + 0x200]
movapd xmmword [rdx], xmm1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
call fcn.18000871e
movaps xmm0, xmmword [0x180021900]
movaps xmmword [r12], xmm0
xorpd xmm1, xmm1
lea rax, [rsp + 0xa0]
movapd xmmword [rax], xmm1
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [section..rdata]
lea r8, [rsp + 0xd0]
movaps xmmword [r8], xmm0
lea r10, [rsp + 0xc0]
movaps xmmword [r10], xmm6
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
addpd xmm1, xmmword [0x180021db0]
lea r9, [rsp + 0xb0]
movapd xmmword [r9], xmm1
mov rdx, qword [0x180027dd8]
mov qword [rsp + 0x60], r12
mov r11b, 1
mov byte [rsp + 0x58], r11b
mov byte [rsp + 0x50], r11b
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
movabs rax, 0x3ff0000000000000
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x48], 0
mov rcx, r14
mov r8, rdi
jmp 0x18000ae41
movups xmm0, xmmword [rsi + 0x64]
lea rax, [rsp + 0x1b0]
movaps xmmword [rax], xmm0
movups xmm0, xmmword [rsi + 0x54]
lea rcx, [rsp + 0x1a0]
movaps xmmword [rcx], xmm0
movups xmm0, xmmword [rsi + 0x44]
lea r9, [rsp + 0x190]
movaps xmmword [r9], xmm0
movaps xmm0, xmmword [0x180021dc0]
lea r8, [rsp + 0x180]
movaps xmmword [r8], xmm0
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
lea rdx, [rsp + 0x170]
movapd xmmword [rdx], xmm1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
call fcn.18000871e
mov r13, qword [rsp + 0x98]
jmp 0x18000ae46
movups xmm0, xmmword [rsi + 0x64]
lea rax, [rsp + 0x280]
movaps xmmword [rax], xmm0
movups xmm0, xmmword [rsi + 0x54]
lea rcx, [rsp + 0x270]
movaps xmmword [rcx], xmm0
movups xmm0, xmmword [rsi + 0x44]
lea r9, [rsp + 0x260]
movaps xmmword [r9], xmm0
movaps xmm0, xmmword [0x180021dc0]
lea r8, [rsp + 0x250]
movaps xmmword [r8], xmm0
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
lea rdx, [rsp + 0x240]
movapd xmmword [rdx], xmm1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
call fcn.18000871e
movaps xmm0, xmmword [0x180021900]
movaps xmmword [rsp + 0x80], xmm0
xorpd xmm1, xmm1
movapd xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xd0], xmm0
movaps xmm0, xmmword [0x180021980]
movaps xmmword [rsp + 0xc0], xmm0
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
addpd xmm1, xmmword [0x180021dd0]
movapd xmmword [rsp + 0xb0], xmm1
lea rdx, [rsp + 0xe2]
movabs rax, 0x6c006c006c0042
mov qword [rdx - 2], rax
mov word [rdx + 6], 0x42
mov word [rdx + 0xe], 0
mov eax, 1
xor byte [rsp + rax*2 + 0xe0], 0x42
inc rax
cmp rax, 8
jne 0x18000ada2
mov word [rsp + 0xf0], 0
lea r14, [rsp + 0x130]
mov rcx, r14
call fcn.180004d10
mov rdx, qword [0x180027dd8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov al, 1
mov byte [rsp + 0x58], al
mov byte [rsp + 0x50], al
mov byte [rsp + 0x48], al
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
movabs rax, 0x3ff0000000000000
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea rcx, [0x180027d68]
lea r9, [rsp + 0xb0]
mov r8, r14
call fcn.18001b6bc
movsd xmm0, qword [rsi + 0x118]
movsd xmm1, qword [rsi + 0x148]
addsd xmm0, qword [rsi + 0x138]
ucomisd xmm1, xmm0
jb 0x18000aeb7
addsd xmm0, qword [0x180021d60]
ucomisd xmm0, xmm1
jb 0x18000aeb7
movsd xmm0, qword [rsi + 0x120]
movsd xmm1, qword [rsi + 0x150]
addsd xmm0, qword [rsi + 0x140]
ucomisd xmm1, xmm0
jb 0x18000aeb7
addsd xmm0, qword [0x180021bf0]
ucomisd xmm0, xmm1
jb 0x18000aeb7
lea rcx, [0x180027d68]
lea rdx, [0x180027250]
call fcn.1800164a0
mov cl, 1
test al, al
jne 0x18000aed7
lea rcx, [0x180027d68]
lea rdx, [0x180027250]
call fcn.1800164a0
test al, al
je 0x18000aedb
cmp byte [r13], 0
je 0x18000aedb
xor ecx, ecx
mov byte [r13], cl
movsd xmm8, qword [rsi + 0x140]
addsd xmm8, qword [0x180021cb0]
movsd xmm9, qword [rsi + 0x138]
movsd qword [rsi + 0x140], xmm8
cmp dword [rbx + 8], 0
jle 0x18000b3c6
movsd xmm10, qword [0x180021de0]
lea r13, [0x180027d68]
lea rbp, [rsp + 0xe0]
lea r14, [rsp + 0x80]
movaps xmm6, xmmword [section..rdata]
movaps xmm11, xmmword [0x180021a50]
movsd xmm12, qword [0x180021cb0]
movsd xmm13, qword [0x180021cb8]
xorps xmm14, xmm14
movaps xmm7, xmmword [0x180021980]
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x98], rax
mov rax, qword [rbx]
mov r12, qword [rax + r15*8]
test r12, r12
je 0x18000b1cf
cmp qword [rdi], 0
je 0x18000afb9
mov rax, qword [r12 + 0x40]
test rax, rax
je 0x18000b1cf
mov rdx, qword [rax + 0x28]
test rdx, rdx
je 0x18000b1cf
mov rcx, rbp
call fcn.180004d10
mov byte [rsp + 0x20], 0
mov rcx, r13
mov rdx, rbp
mov r8, rdi
xor r9d, r9d
call fcn.18001ddfe
test al, al
je 0x18000b1cf
movsd xmm0, qword [rsi + 0x120]
movsd xmm1, qword [rsi + 0x140]
addsd xmm1, xmm0
addsd xmm1, xmm10
addsd xmm0, qword [rsi + 0x130]
ucomisd xmm1, xmm0
ja 0x18000b1cf
mov rcx, r13
mov rdx, rbp
mov r8, r12
call fcn.18001987c
mov rcx, r13
mov rdx, r14
lea r8, [rsp + 0xe8]
call fcn.18001d996
mov rdx, qword [rsp + 0x80]
lea rcx, [0x180027d40]
call fcn.18000485a
movupd xmm0, xmmword [rsi + 0x118]
movupd xmm1, xmmword [rsi + 0x138]
addpd xmm1, xmm0
movapd xmmword [rsp + 0x80], xmm1
test rax, rax
je 0x18000b0b9
movaps xmmword [rsp + 0xa0], xmm14
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0xd0], xmm7
movaps xmmword [rsp + 0xc0], xmm14
movaps xmmword [rsp + 0xb0], xmm11
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x38], 2
mov rcx, r13
mov rdx, rax
mov r8, r14
lea r9, [rsp + 0xb0]
call fcn.18001b976
jmp 0x18000b0f9
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm11
movapd xmm0, xmmword [rsp + 0x80]
movapd xmmword [rsp + 0x100], xmm0
lea rdx, [rsp + 0x100]
lea r8, [rsp + 0x110]
lea r9, [rsp + 0x120]
call fcn.180008664
movsd xmm0, qword [rsi + 0x118]
movsd xmm1, qword [rsi + 0x138]
addsd xmm1, xmm12
movsd qword [rsi + 0x138], xmm1
addsd xmm1, xmm0
addsd xmm1, xmm13
addsd xmm0, qword [rsi + 0x128]
ucomisd xmm1, xmm0
jbe 0x18000b146
addsd xmm8, xmm12
movsd qword [rsi + 0x138], xmm9
movsd qword [rsi + 0x140], xmm8
jmp 0x18000b14f
movsd xmm8, qword [rsi + 0x140]
movsd xmm0, qword [rsp + 0x80]
movsd xmm1, qword [rsi + 0x148]
ucomisd xmm1, xmm0
jb 0x18000b1cf
movsd xmm2, qword [rsp + 0x88]
movsd xmm3, qword [rsi + 0x150]
movapd xmm4, xmm2
addsd xmm4, xmm10
ucomisd xmm4, xmm3
jb 0x18000b1cf
addsd xmm0, xmm10
ucomisd xmm0, xmm1
jb 0x18000b1cf
ucomisd xmm3, xmm2
jb 0x18000b1cf
mov rax, qword [r12 + 0x40]
test rax, rax
je 0x18000b1a7
mov rax, qword [rax + 0x28]
jmp 0x18000b1a9
xor eax, eax
mov qword [rsp + 0x98], rax
mov rcx, r13
lea rdx, [0x180027250]
call fcn.1800164a0
test al, al
je 0x18000b1cf
mov rax, qword [rsp + 0x3e0]
mov qword [rax], r12
inc r15
movsxd rax, dword [rbx + 8]
cmp r15, rax
jl 0x18000af62
mov rdi, qword [rsp + 0x98]
test rdi, rdi
je 0x18000b3c6
lea r15, [0x180027d68]
lea rdx, [rsp + 0xe0]
mov rcx, r15
call fcn.180016774
lea r14, [rsp + 0xa0]
movaps xmmword [r14], xmm7
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, rdi
call fcn.180004d10
mov r8, qword [0x180027dd8]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r13, [rsp + 0x80]
mov rcx, r15
mov rdx, r13
mov r9, rbx
call fcn.18001b4e4
movups xmm0, xmmword [rsi + 0x64]
lea rbx, [rsp + 0x160]
movaps xmmword [rbx], xmm0
movups xmm0, xmmword [rsi + 0x54]
lea r12, [rsp + 0x150]
movaps xmmword [r12], xmm0
movups xmm0, xmmword [rsi + 0x44]
lea rsi, [rsp + 0x140]
movaps xmmword [rsi], xmm0
movsd xmm0, qword [r13]
addsd xmm0, qword [0x180021de8]
lea rbp, [rsp + 0x2b0]
movsd qword [rbp], xmm0
movabs rax, 0x4034000000000000
mov qword [rbp + 8], rax
mov rcx, r15
mov rdx, r14
call fcn.180016774
movsd xmm0, qword [r14 + 8]
addsd xmm0, qword [0x180021df0]
movsd xmm1, qword [r14]
lea rdx, [rsp + 0x2a0]
movsd qword [rdx], xmm1
movsd qword [rdx + 8], xmm0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
mov r8, rbp
mov r9, rsi
call fcn.18000871e
movaps xmm0, xmmword [0x180021900]
movaps xmmword [r14], xmm0
xorpd xmm1, xmm1
lea rbx, [rsp + 0x70]
movapd xmmword [rbx], xmm1
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm7
movsd xmm0, qword [r13]
mulsd xmm0, qword [0x180021960]
addsd xmm0, qword [0x180021be0]
shufpd xmm0, xmmword [0x180021e00], 2
lea rax, [rsp + 0xe0]
addpd xmm0, xmmword [rax]
lea rsi, [rsp + 0x130]
movapd xmmword [rsi], xmm0
lea r12, [rsp + 0x290]
mov rcx, r12
mov rdx, rdi
call fcn.180004d10
mov rdx, qword [0x180027dd8]
mov qword [rsp + 0x60], r14
mov al, 1
mov byte [rsp + 0x58], al
mov byte [rsp + 0x50], al
mov byte [rsp + 0x48], al
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x38], rax
movabs rax, 0x3ff0000000000000
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov rcx, r15
mov r8, r12
mov r9, rsi
call fcn.18001b6bc
movaps xmm6, xmmword [rsp + 0x2e0]
movaps xmm7, xmmword [rsp + 0x2f0]
movaps xmm8, xmmword [rsp + 0x300]
movaps xmm9, xmmword [rsp + 0x310]
movaps xmm10, xmmword [rsp + 0x320]
movaps xmm11, xmmword [rsp + 0x330]
movaps xmm12, xmmword [rsp + 0x340]
movaps xmm13, xmmword [rsp + 0x350]
movaps xmm14, xmmword [rsp + 0x360]
add rsp, 0x378
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret