Function at 0x6d9e1ff0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4a8
movabs rax, 0x1fffffffe0
cmp qword [rsp + 0x520], rax
mov rsi, rcx
mov rdi, rdx
mov r14, r8
mov r13, r9
ja 0x6d9e22fb
cmp qword [rsp + 0x510], 1
jne 0x6d9e2048
mov rax, qword [rsp + 0x520]
and eax, 0x1f
mov qword [rsp + 0x38], rax
je 0x6d9e2273
lea rax, [rsp + 0xb0]
lea rbx, [rsp + 0x380]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x110]
mov r8, rdi
mov r9, rbx
lea rdi, [rsp + 0x1e0]
mov rcx, rax
mov qword [rsp + 0x38], rax
mov rax, rdx
mov qword [rsp + 0x20], rdx
mov rdx, rsi
add rax, 0x40
mov rsi, rcx
mov qword [rsp + 0x28], rax
call fcn.6d9e1b30
test r13, r13
mov qword [rsp + 0x50], rdi
mov ecx, 0x1a
rep movsq qword [rdi], qword [rsi]
jne 0x6d9e22e3
cmp qword [rsp + 0x520], 0
je 0x6d9e225f
lea rbp, [rsp + 0x2b0]
lea rax, [rsp + 0x60]
lea r14, [rsp + 0x70]
lea r15, [rsp + 0x90]
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], rax
mov r13, rbp
mov r12, r14
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov ecx, 0x1a
mov rdx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, 4
mov eax, edi
mov byte [rsp + 0x63], dil
shr eax, 8
mov byte [rsp + 0x62], al
mov eax, edi
shr eax, 0x10
mov byte [rsp + 0x61], al
mov eax, edi
mov rdi, rbp
rep movsq qword [rdi], qword [rsi]
shr eax, 0x18
mov rcx, r13
mov rbp, r13
mov byte [rsp + 0x60], al
call fcn.6d9e1850
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov rdx, r13
mov rcx, r15
call fcn.6d9e1ad0
cmp qword [rsp + 0x510], 1
jbe 0x6d9e220f
mov rax, qword [rsp + 0x90]
mov r14d, 2
mov rbp, r14
mov r14, qword [rsp + 0x510]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rax
mov rsi, qword [rsp + 0x38]
mov rdi, r13
mov ecx, 0x1a
rep movsq qword [rdi], qword [rsi]
mov r9, rbx
mov r8d, 0x20
mov rdx, r12
mov rcx, r13
mov rsi, r13
call fcn.6d9e1850
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.6d9e1ad0
xor eax, eax
nop
movzx edx, byte [r12 + rax]
xor byte [r15 + rax], dl
add rax, 1
cmp rax, 0x20
jne 0x6d9e21f0
add rbp, 1
cmp r14, rbp
jae 0x6d9e21b3
mov rbp, rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x520]
mov r8d, 0x20
mov rdx, r15
sub rax, rcx
add rcx, qword [rsp + 0x518]
cmp rax, 0x20
cmovbe r8, rax
call fcn.6da41170
mov rax, qword [rsp + 0x40]
add qword [rsp + 0x40], 1
shl rax, 5
cmp qword [rsp + 0x520], rax
mov qword [rsp + 0x48], rax
ja 0x6d9e20f8
add rsp, 0x4a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, r13
lea rbx, [rsp + 0x380]
and eax, 0x3f
cmp rax, 0x33
jbe 0x6d9e2319
lea rax, [rsp + 0x110]
mov r8, rdi
lea rdi, [rsp + 0x1e0]
mov r9, rbx
mov rcx, rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov rdx, rax
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rdx
mov rdx, rsi
mov rsi, rcx
mov qword [rsp + 0x28], rax
call fcn.6d9e1b30
mov qword [rsp + 0x50], rdi
mov ecx, 0x1a
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rsp + 0x50]
mov r9, rbx
mov r8, r13
mov rdx, r14
call fcn.6d9e1850
jmp 0x6d9e20b2
lea rdx, str.crypto_minotaurx_yespower_crypto_sha256.c
lea rcx, str.dkLen___32___size_t__UINT32_MAX_
mov r8d, 0x228
call fcn.6da36d30
jmp 0x6d9e2027
lea rax, [rsp + 0xb0]
lea rbp, [rsp + 0x2b0]
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov qword [rsp + 0x28], rax
call fcn.6d9e1b30
test r13, r13
je 0x6d9e236a
mov r9, rbx
mov r8, r13
mov rdx, r14
mov rcx, rbp
call fcn.6d9e1850
lea rdx, [0x6db1e3d3]
mov r12d, dword [rsp + 0x2d0]
mov r9, rbx
mov r8d, 4
mov rcx, rbp
call fcn.6d9e1850
mov rax, qword [rsp + 0x2d0]
and r12d, 0x1f8
mov edx, r12d
and eax, 0x1f8
cmp rax, rdx
jb 0x6d9e205d
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rbp
call fcn.6daca4f0
test eax, eax
jne 0x6d9e205d
mov rdx, qword [rsp + 0x30]
mov r13d, r12d
lea rcx, [rbp + 0x68]
shr r13d, 3
mov r8, rbx
add qword [rsp + 0x338], 0x100
lea r15, [rbp + r13 + 0x28]
xor r14d, r14d
lea r12, [rbp + 0x28]
call fcn.6daca4f0
add rbp, 0x90
cmp qword [rsp + 0x520], 0
mov esi, 1
lea rdi, [rbx + 0x100]
je 0x6d9e225f
mov rax, rbp
mov rbp, rdi
mov rdi, rbx
mov rbx, r12
mov r12, rax
mov eax, esi
mov byte [r15 + 3], sil
mov rcx, qword [rsp + 0x30]
shr eax, 8
mov r9, rbp
mov r8, rdi
mov byte [r15 + 2], al
mov eax, esi
mov rdx, rbx
shr eax, 0x10
add r14, 0x20
mov byte [r15 + 1], al
mov eax, esi
shr eax, 0x18
mov byte [rsp + r13 + 0x2d8], al
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0xc8], rax
call fcn.6d9e0cc0
mov rdx, qword [rsp + 0x30]
mov rcx, r12
call fcn.6d9e0c60
mov rax, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x30]
mov r9, rbp
mov r8, rdi
mov rdx, r12
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x320]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x328]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0xc8], rax
call fcn.6d9e0cc0
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x518]
mov rdx, qword [rsp + 0x30]
call fcn.6d9e0c60
mov rax, rsi
add rsi, 1
shl rax, 5
cmp qword [rsp + 0x520], r14
mov qword [rsp + 0x38], rax
ja 0x6d9e2423
jmp 0x6d9e225f