Function at 0x140221a90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
xor r13d, r13d
mov r15, r8
cmp qword [0x140548d80], r13
mov rdi, rcx
mov qword [0x140548d78], r13
jne 0x140221add
lea ecx, [r13 + 1]
call fcn.1403caaf4
mov rcx, rax
call fcn.1402229f0
mov qword [0x140548d80], rax
movsxd r14, dword [rdi + 0x3c]
lea r8, [rbp + 0x3a0]
xorps xmm0, xmm0
lea rdx, [rbp + 0x5b0]
movups xmmword [rdi], xmm0
add r14, rdi
lea rcx, [rsp + 0x50]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov dword [r14], r13d
mov word [r14 + 0x18], r13w
mov word [rsp + 0x50], r13w
mov word [rbp + 0x5b0], r13w
mov word [rbp + 0x3a0], r13w
call fcn.14021dc00
test eax, eax
jne 0x140221eb9
mov rax, qword [0x1405492b0]
xor edx, edx
mov qword [rsp + 0x910], rbx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140221bdd
xor edx, edx
lea rcx, [rbp + 0x164]
mov r8d, 0x234
call fcn.1403ccc50
mov r8, qword [0x140549318]
lea rdx, [rbp + 0x160]
mov rcx, rbx
mov dword [rbp + 0x160], 0x238
call r8
cmp eax, 1
jne 0x140221bd4
nop
lea rax, [rsp + 0x50]
lea r8, [rbp + 0x18c]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140221bb4
add rax, 2
test ecx, ecx
jne 0x140221ba0
mov rcx, rbx
test edx, edx
je 0x140221c48
mov rax, qword [0x1405492f8]
lea rdx, [rbp + 0x160]
call rax
cmp eax, 1
je 0x140221b90
mov rcx, rbx
call qword [0x1405492d8]
lea rdx, [rbp + 0x3a0]
lea rcx, [rsp + 0x50]
call fcn.14021fe70
test eax, eax
je 0x140222172
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x8c8], rsi
call fcn.14021da80
mov r9, qword [0x1405492e0]
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call r9
mov rcx, rax
mov qword [0x140548d70], rax
movzx eax, word [r14 + 0x16]
bt ax, 0xd
mov dword [0x1404f9594], 0xffffffff
jae 0x140221c7c
mov dword [0x1404f9594], r13d
jmp 0x140221e52
call qword [0x1405492d8]
lea rcx, [rsp + 0x50]
call fcn.14021da80
mov r9, qword [0x1405492e0]
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call r9
xor edx, edx
mov rcx, rax
call qword [0x140549308]
jmp 0x140221bdd
test al, 2
je 0x140222168
mov dword [0x1404f9594], 1
test r15, r15
je 0x140221e52
mov ecx, 0x18
call fcn.1403caaf4
mov r8d, dword [r14 + 0x50]
mov ecx, r13d
movdqa xmm0, xmmword [0x1404d0800]
mov rdx, r13
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rax + 8], rdi
mov dword [rax + 0x10], r8d
xor eax, eax
mov byte [rsp + 0x4e], al
mov dword [rsp + 0x40], 0xfae19df7
mov dword [rsp + 0x44], 0xfee2fce4
mov dword [rsp + 0x48], 0xc2dec0e0
mov word [rsp + 0x4c], 0xa6db
nop word [rax + rax]
lea eax, [rcx - 0x39]
inc ecx
xor byte [rsp + rdx + 0x30], al
movsxd rdx, ecx
cmp rdx, 0x1e
jb 0x140221cf0
lea rbx, [rdi + r8]
mov byte [rsp + 0x4e], r13b
lea rdx, [rsp + 0x30]
mov rcx, r13
mov r9, rdi
cmp rdi, rbx
jae 0x140221e3e
mov esi, 0x3f3f
nop dword [rax]
nop dword [rax + rax]
movsx r8d, byte [rdx]
mov r11, rcx
test r8b, r8b
je 0x140221de1
cmp r8b, 0x3f
je 0x140221dae
movzx eax, r8b
and al, 0xdf
sub al, 0x41
cmp al, 5
ja 0x140221d5d
mov ecx, r8d
and ecx, 0xffffffdf
sub ecx, 0x37
jmp 0x140221d6c
lea eax, [r8 - 0x30]
lea ecx, [r8 - 0x30]
cmp al, 9
jbe 0x140221d6c
mov ecx, r13d
movsx r10d, byte [rdx + 1]
movzx eax, r10b
and al, 0xdf
sub al, 0x41
cmp al, 5
ja 0x140221d88
mov eax, r10d
and eax, 0xffffffdf
sub eax, 0x37
jmp 0x140221d97
lea eax, [r10 - 0x30]
cmp al, 9
lea eax, [r10 - 0x30]
jbe 0x140221d97
mov eax, r13d
shl ecx, 4
or ecx, eax
movzx eax, byte [r9]
cmp eax, ecx
je 0x140221dae
lea rdx, [rsp + 0x30]
mov rcx, r13
jmp 0x140221dd3
test r11, r11
mov rcx, r9
cmovne rcx, r11
cmp byte [rdx + 2], r13b
je 0x140221de1
cmp word [rdx], si
je 0x140221dcf
cmp r8b, 0x3f
jne 0x140221dcf
add rdx, 2
jmp 0x140221dd3
add rdx, 3
inc r9
cmp r9, rbx
jb 0x140221d30
jmp 0x140221e3e
test rcx, rcx
je 0x140221e3e
movzx eax, word [r14 + 0x14]
lea rdx, [r14 + 0x18]
movzx r11d, word [r14 + 6]
add rdx, rax
movzx r8d, r13w
cmp r13w, r11w
jae 0x140221e3e
mov r10d, dword [rdx + 0x14]
lea r9, [r10 + rdi]
cmp rcx, r9
jb 0x140221e19
mov eax, dword [rdx + 0x10]
add rax, r9
cmp rcx, rax
jbe 0x140221e29
inc r8w
add rdx, 0x28
cmp r8w, r11w
jb 0x140221e01
jmp 0x140221e3e
mov eax, dword [rdx + 0xc]
sub rax, r10
add rax, rcx
je 0x140221e3e
sub rax, rdi
mov qword [0x140548d78], rax
cmp dword [0x1404f9594], 0xffffffff
je 0x140222168
mov rcx, qword [0x140548d70]
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov rax, qword [0x1405492e8]
mov r9d, 0x3000
mov qword [rsp + 0x8c0], r12
mov dword [rsp + 0x20], 4
call rax
mov r8, rdi
mov rdx, rax
mov rcx, r14
mov r12, rax
call fcn.140221700
mov r8, rdi
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.140221890
test al, al
jne 0x140221ec9
mov eax, 3
mov r12, qword [rsp + 0x8c0]
mov rsi, qword [rsp + 0x8c8]
mov rbx, qword [rsp + 0x910]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
movzx ebx, word [r14 + 0x14]
movzx esi, r13w
add rbx, 0x3c
cmp r13w, word [r14 + 6]
jae 0x140221fbe
add rbx, r14
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, 0x80
ja 0x140221fac
mov edx, dword [rbx - 0x18]
mov ecx, dword [rbx - 0x14]
add rdx, r12
bt eax, 0x19
jae 0x140221f27
mov r8d, ecx
mov r9d, 0x4000
mov rcx, qword [0x140548d70]
call qword [0x1405492c8]
jmp 0x140221fac
mov r8d, dword [rbx - 0x10]
mov r9, rcx
mov rcx, qword [0x140548d70]
add r8, rdi
mov qword [rsp + 0x20], r13
call qword [0x140549310]
mov edx, dword [rbx]
mov r10, qword [0x1405492c0]
mov ecx, edx
mov r8d, dword [rbx - 0x14]
mov eax, edx
shr rax, 0x1e
and eax, 1
shr rcx, 0x1d
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1404c9158]
mov eax, dword [rax + rcx*4]
mov r9d, eax
mov rcx, qword [0x140548d70]
bts r9d, 9
and edx, 0x4000000
mov edx, dword [rbx - 0x18]
cmove r9d, eax
lea rax, [rbp + 0x808]
add rdx, r12
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x140221fd8
inc si
add rbx, 0x28
cmp si, word [r14 + 6]
jb 0x140221ef0
mov r8d, dword [r14 + 0x54]
mov r9d, 0x4000
mov rcx, qword [0x140548d70]
mov rdx, r12
call qword [0x1405492c8]
mov r8, r15
mov rdx, r14
mov rcx, r12
call fcn.140220eb0
test al, al
je 0x14022215e
movzx eax, word [r14 + 0x14]
lea rsi, [r14 + 0x18]
add rsi, rax
movzx r15d, r13w
cmp r13w, word [r14 + 6]
jae 0x140222154
nop dword [rax]
mov dword [rbp + 0x800], 0xbfbbbddd
mov ecx, r13d
mov word [rbp + 0x804], 0xa3
mov rdx, r13
nop dword [rax]
lea eax, [rcx - 0xd]
inc ecx
xor byte [rbp + rdx + 0x800], al
movsxd rdx, ecx
cmp rdx, 5
jb 0x140222030
lea r8, [rbp + 0x800]
mov byte [rbp + 0x805], r13b
sub r8, rsi
mov rax, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140222073
inc rax
test ecx, ecx
jne 0x140222060
test edx, edx
jne 0x140222141
xorps xmm0, xmm0
mov rbx, r13
mov rdi, r13
mov qword [rsp + 0x40], rbx
movdqu xmmword [rsp + 0x30], xmm0
mov r9, qword [rsp + 0x38]
cmp dword [rsi + 0x10], r13d
jbe 0x1402220ea
nop word [rax + rax]
rdtsc
shl rdx, 0x20
or rax, rdx
mov byte [rbp + 0x808], al
cmp r9, rbx
je 0x1402220c1
mov byte [r9], al
inc r9
mov qword [rsp + 0x38], r9
jmp 0x1402220df
lea r8, [rbp + 0x808]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.14020fa70
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rsi + 0x10]
inc rdi
cmp rdi, rax
jb 0x1402220a0
mov rdi, qword [rsp + 0x30]
mov edx, dword [rsi + 0xc]
sub r9, rdi
mov rcx, qword [0x140548d70]
add rdx, r12
mov r8, rdi
mov qword [rsp + 0x20], r13
call qword [0x140549310]
test rdi, rdi
je 0x140222141
sub rbx, rdi
mov rax, rdi
cmp rbx, 0x1000
jb 0x140222136
mov rdi, qword [rdi - 8]
add rbx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14022217c
mov rdx, rbx
mov rcx, rdi
call fcn.1403cad84
inc r15w
add rsi, 0x28
cmp r15w, word [r14 + 6]
jb 0x140222010
mov eax, 0x309
jmp 0x140221ea1
mov eax, 4
jmp 0x140221ea1
mov eax, 6
jmp 0x140221ea9
mov eax, 2
jmp 0x140221eb1
call fcn.1403d7020
int3