Function at 0x140218830
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
movaps xmmword [rsp + 0x220], xmm7
movaps xmmword [rsp + 0x210], xmm6
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x208], rax
test rdx, rdx
je 0x140218cf2
mov rbx, rdx
mov r13, rcx
movaps xmm6, xmmword [0x1403db8a0]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1b0], xmm6
test byte [0x1404697b7], 0x40
je 0x140218ed9
mov eax, 0x40000000
and eax, dword [0x1404697b0]
je 0x140218ed9
lea rcx, [rsp + 0x1b0]
mov edx, 0x20
call fcn.14008a090
test eax, eax
je 0x140218ed9
lea rsi, [rsp + 0x80]
mov r8d, 0x130
mov rcx, rsi
mov dl, 0xaa
call fcn.14025c760
mov ecx, 1
call fcn.140230bb0
test rax, rax
je 0x140218d3d
mov r14, rax
add rax, 0x128
mov qword [rsp + 0x38], rax
cmp dword [r14 + 0x128], 0xfff
ja 0x140218e8c
cmp qword [r14 + 0x120], 0
jne 0x140218e8c
lea r15, [r14 + 0x108]
lea rdi, [rsp + 0x1f0]
mov rax, qword [r14 + 0x118]
mov esi, 0x20
xorps xmm7, xmm7
lea rbp, [rsp + 0x1d0]
xor ecx, ecx
mov qword [rsp + 0x30], rcx
cmp rbx, 0x10000
mov r12d, 0x10000
cmovb r12, rbx
movabs rcx, 0x1000000000000
cmp rax, rcx
ja 0x140218efe
test byte [rsp + 0x30], 1
jne 0x140218a7b
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
mov rdx, rbp
mov r8, r14
call qword [case.0x1402d5a00.0]
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
lea rdx, [rsp + 0x1e0]
mov r8, r14
call qword [case.0x1402d5a00.0]
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
mov rdx, rdi
mov r8, r14
call qword [case.0x1402d5a00.0]
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rsp + rax + 0x1b0]
xor byte [rsp + rax + 0x1d0], cl
inc rax
cmp rsi, rax
jne 0x140218a20
mov eax, dword [0x1404697b4]
test eax, 0x2000000
je 0x140218f03
mov rcx, rbp
mov edx, 0x100
mov r8, r14
call fcn.140074960
lea rcx, [0x140072700]
lea rax, [0x140073460]
mov qword [r14 + 0xf8], rcx
mov qword [r14 + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov rbp, r12
mov rdi, r13
cmp r12, 0x10
jae 0x140218be0
test rbp, rbp
jne 0x140218c90
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
lea rbp, [rsp + 0x1d0]
mov rdx, rbp
mov r8, r14
call qword [case.0x1402d5a00.0]
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
lea rdx, [rsp + 0x1e0]
mov r8, r14
call qword [case.0x1402d5a00.0]
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
lea rdi, [rsp + 0x1f0]
mov rdx, rdi
mov r8, r14
call qword [case.0x1402d5a00.0]
test byte [rsp + 0x30], 1
jne 0x140218b67
xor eax, eax
nop dword [rax + rax]
movzx ecx, byte [rsp + rax + 0x1b0]
xor byte [rsp + rax + 0x1d0], cl
inc rax
cmp rsi, rax
jne 0x140218b50
mov eax, dword [0x1404697b4]
test eax, 0x2000000
je 0x140218f35
mov rcx, rbp
mov edx, 0x100
mov r8, r14
call fcn.140074960
lea rcx, [0x140072700]
lea rax, [0x140073460]
mov qword [r14 + 0xf8], rcx
mov qword [r14 + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov rax, qword [r14 + 0x118]
inc rax
mov qword [r14 + 0x118], rax
mov rcx, qword [rsp + 0x38]
inc dword [rcx]
add r13, r12
mov cl, 1
mov qword [rsp + 0x30], rcx
mov esi, 0
sub rbx, r12
jne 0x140218948
jmp 0x140218ce1
mov rdi, r13
mov rbp, r12
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
cmp rbp, 0x2000
mov r13d, 0x2000
cmovb r13, rbp
mov ebx, r13d
and ebx, 0x3ff0
cmp qword [r14 + 0x100], 0
je 0x140218f77
shr r13, 4
cmp ebx, 0x10
jne 0x140218d2b
movups xmmword [rdi], xmm7
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0x100]
mov qword [rsp + 0x20], r15
mov rcx, rdi
mov rdx, rdi
mov r8, r13
mov r9, r14
call qword [case.0x1402d5a00.0]
mov eax, dword [r14 + 0x114]
bswap eax
add eax, r13d
dec eax
bswap eax
mov dword [r14 + 0x114], eax
add rdi, rbx
sub rbp, rbx
cmp rbp, 0xf
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
jbe 0x140218a8b
jmp 0x140218bf0
movaps xmmword [rsp + 0x1d0], xmm6
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
mov rcx, r15
lea rdx, [rsp + 0x1d0]
mov r8, r14
call qword [case.0x1402d5a00.0]
cmp rbp, 8
jne 0x140218e59
mov rax, qword [rsp + 0x1d0]
mov qword [rdi], rax
jmp 0x140218a94
lea rax, [rsp + 0x80]
cmp r14, rax
je 0x140218fd3
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.14025a610
mov eax, 1
movaps xmm6, xmmword [rsp + 0x210]
movaps xmm7, xmmword [rsp + 0x220]
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebx, 0x20
jne 0x140218e71
movups xmmword [rdi + 0x10], xmm7
jmp 0x140218c25
mov ecx, 0x130
call fcn.14021f9d0
test rax, rax
je 0x140218ed1
mov r14, rax
lea r8, [0x140153fa0]
mov ecx, 1
mov rdx, rax
call fcn.14017f940
test eax, eax
je 0x140218ed1
mov dword [r14 + 0x12c], 0
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov edx, 0x30
mov rcx, rdi
call fcn.140180350
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movaps xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x1f0], xmm2
movaps xmmword [rsp + 0x1e0], xmm1
movaps xmmword [rsp + 0x1d0], xmm0
xor eax, eax
lea rcx, [0x140429df0]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x1d0], dl
inc rax
cmp rax, 0x30
jne 0x140218dc3
mov eax, dword [0x1404697b4]
lea rcx, [rsp + 0x1d0]
mov edx, 0x100
mov r8, r14
bt eax, 0x19
jae 0x14021901a
call fcn.140074960
lea rax, [0x140073460]
lea rcx, [0x140072700]
mov qword [r14 + 0xf8], rcx
mov qword [r14 + 0x100], rax
movaps xmm0, xmmword [rsp + 0x1f0]
movups xmmword [r14 + 0x108], xmm0
mov qword [r14 + 0x118], 1
lea rax, [r14 + 0x128]
mov qword [rsp + 0x38], rax
mov dword [r14 + 0x128], 0
mov qword [r14 + 0x120], 0
jmp 0x14021891b
mov rcx, rdi
lea rdx, [rsp + 0x1d0]
mov r8, rbp
call fcn.14025c0b0
jmp 0x140218a94
test rbx, rbx
je 0x140218c28
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.14025c760
jmp 0x140218c28
lea rdi, [rsp + 0x1d0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov edx, 0x30
mov rcx, rdi
call fcn.140180350
mov r8d, 0x30
mov rcx, r14
mov rdx, rdi
call fcn.140153e10
test eax, eax
je 0x140218efe
mov qword [r14 + 0x118], 1
jmp 0x140218e3e
mov r14, rsi
jmp 0x140218d6f
call fcn.14036a110
test eax, eax
je 0x140218fbc
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1c0], xmm0
movaps xmmword [rsp + 0x1b0], xmm0
jmp 0x1402188c3
call fcn.1402735f0
lea rcx, [rsp + 0x1d0]
mov edx, 0x100
mov r8, r14
bt eax, 9
jae 0x140218fea
call fcn.140075a50
lea rax, [0x140075f20]
lea rcx, [0x140075c20]
jmp 0x140218a66
lea rcx, [rsp + 0x1d0]
mov edx, 0x100
mov r8, r14
bt eax, 9
jae 0x140219002
call fcn.140075a50
lea rax, [0x140075f20]
lea rcx, [0x140075c20]
lea rdi, [rsp + 0x1f0]
lea rbp, [rsp + 0x1d0]
jmp 0x140218b96
test rbx, rbx
je 0x140218c71
xor r13d, r13d
mov eax, dword [r14 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r14 + 0x114], eax
mov rax, qword [r14 + 0xf8]
lea rdx, [rdi + r13]
mov rcx, r15
mov r8, r14
call qword [case.0x1402d5a00.0]
add r13, 0x10
cmp r13, rbx
jb 0x140218f83
jmp 0x140218c71
lea rcx, [rsp + 0x1b0]
mov edx, 0x20
call fcn.14036a140
jmp 0x1402188c3
lea rcx, [rsp + 0x80]
mov edx, 0x120
call fcn.14021fa70
jmp 0x140218cf2
call fcn.140328360
lea rax, [0x140328b60]
lea rcx, [0x140328220]
jmp 0x140218a66
call fcn.140328360
lea rax, [0x140328b60]
lea rcx, [0x140328220]
jmp 0x140218f62
bt eax, 9
jae 0x140219038
call fcn.140075a50
lea rax, [0x140075f20]
lea rcx, [0x140075c20]
jmp 0x140218e09
call fcn.140328360
lea rax, [0x140328b60]
lea rcx, [0x140328220]
jmp 0x140218e09