Function at 0x14009d710
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm7
movaps xmmword [rsp + 0x220], xmm6
mov rax, qword [0x14019d040]
xor rax, rsp
mov qword [rsp + 0x218], rax
test rdx, rdx
je 0x14009dbd6
mov rbx, rdx
mov r13, rcx
call fcn.1400a5330
mov r12, rax
call fcn.1400a5340
mov ebp, eax
mov ecx, 1
call fcn.1400a59b0
movaps xmm6, xmmword [0x140171db0]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
test eax, 0x40000000
mov dword [rsp + 0x28], eax
je 0x14009dde0
mov edi, eax
xor ecx, ecx
call fcn.1400a59b0
test eax, 0x40000000
je 0x14009df0b
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14000d3d0
test eax, eax
je 0x14009df0b
lea r14, [rsp + 0x88]
mov r8d, 0x138
mov rcx, r14
mov dl, 0xaa
call fcn.1400f5e20
mov ecx, 1
call fcn.1400a5240
test rax, rax
je 0x14009dc85
mov r15, rax
add rax, 0x128
mov qword [rsp + 0x30], rax
cmp dword [r15 + 0x128], 0xfff
ja 0x14009dd79
cmp qword [r15 + 0x120], r12
jne 0x14009dd79
cmp dword [r15 + 0x130], ebp
jne 0x14009dd79
mov rax, qword [r15 + 0x118]
lea r12, [r15 + 0x108]
lea rbp, [rsp + 0x200]
mov ecx, edi
and ecx, 0x12000000
mov dword [rsp + 0x2c], ecx
mov esi, 0x20
mov qword [rsp + 0x38], 0
movabs rcx, 0x1000000000000
xorps xmm7, xmm7
cmp rbx, 0x10000
mov r14d, 0x10000
cmovb r14, rbx
cmp rax, rcx
ja 0x14009de22
test byte [rsp + 0x38], 1
jne 0x14009d99b
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call qword [0x1401904a0]
xor eax, eax
nop dword [rax]
movzx ecx, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x14009d930
test edi, 0x2000000
je 0x14009df6d
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14009def1
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.1400032c0
lea rcx, [fcn.140001000]
lea rax, [0x140001d60]
mov qword [r15 + 0xf8], rcx
mov qword [r15 + 0x100], rax
movups xmm0, xmmword [rbp]
movups xmmword [r12], xmm0
mov rdi, r13
mov rbp, r14
cmp rbx, 0x10
jb 0x14009da55
mov rbp, r14
mov rdi, r13
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
cmp rbp, 0x2000
jae 0x14009de6c
mov ebx, ebp
and ebx, 0x1ff0
cmp qword [r15 + 0x100], 0
je 0x14009de27
cmp rbx, 0x10
jne 0x14009dc73
movups xmmword [rdi], xmm7
mov r13d, ebx
shr r13d, 4
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0x100]
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov rdx, rdi
mov r8, r13
mov r9, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
add eax, r13d
dec eax
bswap eax
mov dword [r15 + 0x114], eax
add rdi, rbx
sub rbp, rbx
cmp rbp, 0xf
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
ja 0x14009d9bb
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
test rbp, rbp
jne 0x14009dbf0
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
bswap ecx
inc ecx
bswap ecx
mov dword [r15 + 0x114], ecx
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call qword [0x1401904a0]
test byte [rsp + 0x38], 1
jne 0x14009db37
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x14009db20
test edi, 0x2000000
je 0x14009dea2
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14009de88
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.1400032c0
lea rcx, [fcn.140001000]
lea rax, [0x140001d60]
mov qword [r15 + 0xf8], rcx
mov qword [r15 + 0x100], rax
movups xmm0, xmmword [rbp]
movups xmmword [r12], xmm0
mov rax, qword [r15 + 0x118]
inc rax
mov qword [r15 + 0x118], rax
mov rcx, qword [rsp + 0x30]
inc dword [rcx]
add r13, r14
mov cl, 1
mov qword [rsp + 0x38], rcx
mov esi, 0
sub rbx, r14
movabs rcx, 0x1000000000000
jne 0x14009d862
lea rax, [rsp + 0x88]
cmp r15, rax
je 0x14009de76
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x14019d040]
je 0x14009dc4d
call fcn.1400c6de0
int3
movaps xmmword [rsp + 0x1e0], xmm6
bswap ecx
inc ecx
bswap ecx
mov dword [r15 + 0x114], ecx
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
cmp rbp, 8
jne 0x14009dd61
mov rax, qword [rsp + 0x1e0]
mov qword [rdi], rax
lea rbp, [rsp + 0x200]
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
mov edi, dword [rsp + 0x28]
jmp 0x14009da78
xor eax, eax
movaps xmm6, xmmword [rsp + 0x220]
movaps xmm7, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebx, 0x20
jne 0x14009dd46
movups xmmword [rdi + 0x10], xmm7
jmp 0x14009d9e8
mov rsi, r13
mov ecx, 0x138
call fcn.14005bc80
test rax, rax
je 0x14009dfb3
mov r15, rax
lea r8, [0x140051080]
mov ecx, 1
mov rdx, rax
call fcn.1400629a0
test eax, eax
je 0x14009dfb3
mov dword [r15 + 0x12c], 0
lea rdi, [rsp + 0x1e0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
lea r13, [rsp + 0x50]
movaps xmmword [r13 + 0x20], xmm0
movaps xmmword [r13 + 0x10], xmm0
movaps xmmword [r13], xmm0
mov edx, 0x30
mov rcx, rdi
call fcn.140062ff0
mov rcx, r15
mov rdx, rdi
mov r8, r13
xor r9d, r9d
call fcn.140050cd0
test eax, eax
je 0x14009de22
lea rax, [r15 + 0x128]
mov qword [rsp + 0x30], rax
mov dword [r15 + 0x128], 0
mov qword [r15 + 0x120], r12
mov dword [r15 + 0x130], ebp
mov r13, rsi
mov edi, dword [rsp + 0x28]
jmp 0x14009d818
test rbx, rbx
je 0x14009d9eb
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.1400f5e20
jmp 0x14009d9eb
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rbp
call fcn.1400f5780
jmp 0x14009dc2e
lea rdi, [rsp + 0x1e0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov edx, 0x30
mov rcx, rdi
call fcn.140062ff0
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call fcn.140050ed0
test eax, eax
je 0x14009de22
mov qword [r15 + 0x118], 1
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov qword [r15 + 0x120], r12
mov dword [r15 + 0x130], ebp
mov eax, 1
mov edi, dword [rsp + 0x28]
jmp 0x14009d82c
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
cmp cl, 1
je 0x14009de06
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140148690
jmp 0x14009de19
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov edi, dword [rsp + 0x28]
jmp 0x14009d7c1
call fcn.1400d896c
test rbx, rbx
je 0x14009da3b
xor r13d, r13d
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
lea rdx, [rdi + r13]
mov rcx, r12
mov r8, r15
call qword [0x1401904a0]
add r13, 0x10
cmp r13, rbx
jb 0x14009de33
jmp 0x14009da3b
mov ebx, 0x2000
jmp 0x14009d9d0
mov edx, 0x120
mov rcx, r15
call fcn.1400a4b30
jmp 0x14009dbd6
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140002fd0
jmp 0x14009db66
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x14009dedc
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
jmp 0x14009db74
call fcn.140124080
lea rax, [0x140124ce0]
lea rcx, [0x140123f50]
jmp 0x14009decb
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140002fd0
jmp 0x14009d976
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
jne 0x14009de06
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1401486e0
test eax, eax
mov edi, dword [rsp + 0x28]
jne 0x14009d7c1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14000d3d0
test eax, eax
jne 0x14009d7c1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140148690
jmp 0x14009d7c1
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x14009df9b
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
jmp 0x14009d984
call fcn.140124080
lea rax, [0x140124ce0]
lea rcx, [0x140123f50]
jmp 0x14009d984
mov r15, r14
jmp 0x14009dcba