Function at 0x140041370
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rbp - 8], rax
movsxd r13, edx
mov r15, rcx
mov edx, r8d
lea rcx, [rbp - 0x48]
call fcn.140044340
nop
lea r14, [r13*2]
xor esi, esi
mov r9, qword [rbp - 0x38]
cmp r9, r14
jae 0x1400414c2
mov rcx, qword [rbp - 0x30]
nop dword [rax]
nop word [rax + rax]
or rdi, 0xffffffffffffffff
cmp r9, rdi
cmovb rdi, r9
mov rax, r9
not rax
cmp rax, rdi
jbe 0x1400414b4
lea rbx, [r9 + rdi]
test rdi, rdi
je 0x14004149c
cmp rbx, 0xfffffffffffffffe
ja 0x1400414a6
cmp rcx, rbx
jae 0x140041427
mov r8, r9
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140004310
jmp 0x140041440
test rbx, rbx
jne 0x14004144d
mov qword [rbp - 0x38], rsi
lea rax, [rbp - 0x48]
cmp rcx, 0x10
cmovae rax, qword [rbp - 0x48]
mov byte [rax], sil
mov r9, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
test rbx, rbx
je 0x14004149c
lea rdx, [rbp - 0x48]
mov r8, qword [rbp - 0x48]
cmp rcx, 0x10
cmovae rdx, r8
lea r10, [rbp - 0x48]
cmovae r10, r8
add r10, r9
test rdi, rdi
je 0x140041480
mov r8, rdi
mov rcx, r10
call fcn.1400fddb8
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x48]
mov qword [rbp - 0x38], rbx
lea rax, [rbp - 0x48]
cmp rcx, 0x10
cmovae rax, r8
mov byte [rax + rbx], sil
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x38]
cmp r9, r14
jae 0x1400414c2
jmp 0x1400413e0
lea rcx, str.string_too_long
call qword [0x1401012f0]
int3
lea rcx, str.string_too_long
call qword [0x1401012f0]
int3
dec r9
mov r8d, 2
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14002fe10
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140015810
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x14004153e
inc rax
mov rcx, qword [rbp - 0x28]
cmp rax, 0x1000
jb 0x140041539
test cl, 0x1f
je 0x140041509
call qword [0x140102008]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140041519
call qword [0x140102008]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140041529
call qword [0x140102008]
int3
cmp rcx, 0x27
jbe 0x140041536
call qword [0x140102008]
int3
mov rcx, rax
call fcn.1400fc8a8
lea eax, [r13 + 1]
movsxd rbx, eax
mov rcx, rbx
call qword [0x140101f00]
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400fddca
test r13d, r13d
jle 0x140041594
sub r15, rdi
nop word [rax + rax]
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
lea rcx, [rsi + rdi]
movzx eax, byte [rax + rsi]
xor al, byte [r15 + rcx]
mov byte [rcx], al
inc rsi
cmp rsi, r13
jl 0x140041570
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x1400415ee
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x1400415e9
test cl, 0x1f
je 0x1400415b9
call qword [0x140102008]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400415c9
call qword [0x140102008]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400415d9
call qword [0x140102008]
int3
cmp rcx, 0x27
jbe 0x1400415e6
call qword [0x140102008]
int3
mov rcx, rax
call fcn.1400fc8a8
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400fcc70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret