Function at 0x1403509c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x140682ee8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x140695b08]
cmp eax, 0x61
jg 0x140350a20
test r15, r15
sete al
test rbx, rbx
sete cl
test rdi, rdi
sete dl
mov r8d, dword [0x140695b04]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
je 0x140350a33
nop dword [rax]
mov eax, dword [0x140695b04]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140350a20
jmp 0x1403509f6
or al, cl
or al, dl
je 0x140350a40
xor esi, esi
jmp 0x140350dd2
cmp rsi, 0x10
jae 0x140350aba
mov r13, rsi
and r13, 0xf
je 0x140350dd2
movabs r12, 0x78c00c9ca39192b0
mov rax, qword [r15 + 0x20]
lea rdx, [r15 + 0x50]
lea r8, [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x28], rdx
call qword [0x1405fc400]
mov rax, qword [0x14064a830]
lea r8, [rax + r12]
add r8, 2
mov rcx, rsi
not rcx
mov rdx, rsi
xor rdx, r8
not r8
and r8, rcx
or r8, rdx
mov rcx, r8
not rcx
add rax, r12
add rax, 3
cmp r13, rax
jae 0x140350b53
xor r9d, r9d
jmp 0x140350c1c
mov r13, rsi
shr r13, 4
lea r14, [r15 + 0x50]
add rdi, 0x10
add rbx, 0x10
dec r13
lea r12, [rsp + 0x30]
nop word cs:[rax + rax]
mov rax, qword [r15 + 0x20]
mov rcx, r15
mov rdx, r14
mov r8, r12
call qword [0x1405fc400]
mov eax, dword [rbx - 0x10]
mov ecx, eax
xor ecx, eax
not ecx
and ecx, dword [rsp + 0x30]
xor ecx, eax
mov dword [rdi - 0x10], ecx
mov eax, dword [rbx - 0xc]
mov ecx, eax
xor ecx, eax
not ecx
and ecx, dword [rsp + 0x34]
xor ecx, eax
mov dword [rdi - 0xc], ecx
mov eax, dword [rsp + 0x38]
xor eax, dword [rbx - 8]
mov dword [rdi - 8], eax
mov eax, dword [rbx - 4]
mov ecx, dword [rsp + 0x3c]
not ecx
not eax
mov edx, ecx
xor edx, eax
or eax, ecx
and eax, edx
mov dword [rdi - 4], eax
movups xmm0, xmmword [rdi - 0x10]
movups xmmword [r14], xmm0
sub r13, 1
jb 0x140350a46
add rdi, 0x10
add rbx, 0x10
jmp 0x140350ae0
mov r10, r13
sub r10, rcx
mov r9d, 0x9480f1a2
nop
mov eax, dword [0x140695b08]
cmp eax, 0x55
jg 0x140350b7c
mov eax, dword [0x140695b04]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
je 0x140350b9d
mov edx, dword [0x140695b04]
lea eax, [rdx - 1]
imul eax, edx
mov r11d, dword [0x14064a828]
add r11d, r9d
xor edx, edx
div r11d
test edx, edx
jne 0x140350b60
jmp 0x140350b6b
xor r9d, r9d
movzx eax, byte [rsp + r9 + 0x30]
xor al, byte [rbx + r9]
mov byte [rdi + r9], al
mov rax, r9
or rax, 1
movzx edx, byte [rbx + rax]
mov r11d, edx
xor r11b, dl
not r11b
and r11b, byte [rsp + rax + 0x30]
xor r11b, dl
mov byte [rdi + rax], r11b
mov rax, qword [0x14064a830]
add rax, r12
inc rax
mov rdx, rax
not rdx
mov r11, r9
xor r11, rdx
and r11, r9
xor rdx, rax
and rdx, r9
xor rdx, rax
or rdx, r11
movzx eax, byte [rsp + rdx + 0x30]
xor al, byte [rbx + rdx]
mov byte [rdi + rdx], al
mov rax, r9
or rax, 3
movzx edx, byte [rsp + rax + 0x30]
xor dl, byte [rbx + rax]
mov byte [rdi + rax], dl
add r9, 4
cmp r9, r10
jne 0x140350ba0
mov eax, dword [0x140695b08]
cmp eax, 0x5b
nop word cs:[rax + rax]
xor eax, eax
test al, al
jne 0x140350c30
lea rax, [r12 - 1]
mov rdx, qword [0x14064a830]
xor rdx, rax
mov r10, rdx
not r10
and r10, rax
lea rax, [rdx + r10*2]
cmp rcx, rax
jne 0x140350c6c
cmp dword [0x14064a828], 0x6b7f0e60
je 0x140350d38
jmp 0x140350d59
add r8, 2
mov r10, 0xffffffffffffffff
xor r11d, r11d
mov ebp, 0x9480f1a2
mov r15, r12
not r15
xor r14d, r14d
nop dword [rax + rax]
mov ecx, dword [0x140695b04]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x14064a828]
add ecx, ebp
xor edx, edx
div ecx
test edx, edx
jne 0x140350d10
nop dword [rax]
movzx eax, byte [rbx + r9]
mov ecx, eax
xor cl, al
not cl
and cl, byte [rsp + r9 + 0x30]
xor cl, al
mov byte [rdi + r9], cl
test r11b, r11b
jne 0x140350d10
test r8, r8
je 0x140350c57
mov rax, qword [0x14064a830]
mov rcx, r12
xor rcx, rax
not rax
and rax, r15
or rax, rcx
not rax
lea rax, [rcx + rax*2]
add r9, rax
add r9, qword [0x140694328]
inc r8
add r14, 2
add r10, 0xfffffffffffffffe
jmp 0x140350c90
movzx ecx, byte [rbx + r9]
movzx edx, byte [rsp + r9 + 0x30]
mov eax, edx
sub al, cl
mul cl
mov ecx, eax
mov eax, edx
sub al, cl
mul cl
mov ecx, eax
sub cl, dl
xor cl, al
mov byte [rdi + r9], cl
jmp 0x140350cb0
cmp rsi, 0x10
setb al
mov ecx, dword [0x14064a828]
mov edx, ecx
xor edx, 0x9480f1a0
and ecx, 0x1480f1a0
add ecx, ecx
add ecx, edx
je 0x140350d81
mov ecx, 0x9480f1a2
nop
mov edx, dword [0x140695b04]
lea eax, [rdx - 1]
imul eax, edx
mov r8d, dword [0x14064a828]
add r8d, ecx
xor edx, edx
div r8d
test edx, edx
jne 0x140350d60
jmp 0x140350d38
add rdi, r13
or al, byte [0x140693f99]
test al, 1
je 0x140350dc6
add r12, qword [0x14064a830]
sub r12, rsi
lea r8, [r12 + 0xf]
mov rbx, qword [rsp + 0x28]
lea rdx, [rbx + rsi]
mov rcx, rbx
call fcn.140511c70
lea rcx, [rbx + r12]
add rcx, 0xf
sub rdi, rsi
mov rdx, rdi
mov r8, rsi
call fcn.140511c70
jmp 0x140350dd2
movups xmm0, xmmword [rdi - 0x10]
mov rax, qword [rsp + 0x28]
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1404e9d20
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret