Function at 0x14011bf20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov ebp, dword [rdx + 0x27]
lea rax, [rsp + 0x14f]
movsxd rsi, ecx
mov r12, r9
mov ecx, 0x100190
and rax, 0xffffffffffffff80
lea r9d, [rbp - 1]
mov dword [rsp + 0x1c0], r8d
mov qword [rsp + 0x1b8], rdx
mov dword [rsp + 0x20], r9d
mov r13, rax
mov qword [rsp + 0x80], rax
call sym.malloc
mov rbx, rax
shl rsi, 7
mov rax, qword [0x1401fd5b0]
mov r9d, dword [rsp + 0x20]
mov qword [rsp + 0x48], rsi
mov r11, qword [rsp + 0x1b8]
cmp byte [rax], 0
jne 0x14011c030
mov rdi, qword [0x1401fd8b0]
mov r14d, r9d
mov r15, r11
mov esi, r14d
inc r14d
mov r8, rbx
mov rdx, r15
mov dword [r15 + 0x27], r14d
mov rcx, r13
call sym.cryptolight_hash_ctx.constprop.0
mov eax, dword [r15 + 0xdc]
cmp dword [r13 + 0x1c], eax
jb 0x14011c840
cmp dword [rsp + 0x1c0], r14d
jb 0x14011bfee
mov rax, qword [rsp + 0x48]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
je 0x14011bfac
mov r9d, r14d
mov rcx, rbx
mov dword [rsp + 0x20], r9d
call sym.free
mov r9d, dword [rsp + 0x20]
sub r9d, ebp
lea eax, [r9 + 1]
mov qword [r12], rax
xor eax, eax
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rbx + 0x100000]
lea r10, [rbx + 0x100040]
lea rdi, [rbx + 0x1000d0]
lea r15, [rbx + 0x1000e0]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0x100110]
lea r14, [rbx + 0x1000f0]
lea r13, [rbx + 0x100100]
mov qword [rsp + 0x20], rax
lea rax, [rbx + 0x100120]
mov dword [rsp + 0xbc], ebp
mov dword [rsp + 0xb8], r9d
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x100130]
mov qword [rsp + 0x1b8], r11
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x28], rax
lea rax, [rbx + 0x100140]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x100150]
mov qword [rsp + 0xa0], rax
lea rax, [rbx + 0x100170]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xb0], rax
lea rax, [rbx + 0x100160]
mov qword [rsp + 0xa8], rax
lea rax, [rbx + 0x100020]
mov qword [rsp + 0x88], rax
lea rax, [rbx + 0x100180]
mov qword [rsp + 0x98], rax
inc dword [rsp + 0xb8]
mov r8d, 0x4c
mov qword [rsp + 0x50], r10
mov rsi, qword [rsp + 0x1b8]
mov eax, dword [rsp + 0xb8]
mov rdx, rsi
mov dword [rsi + 0x27], eax
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call sym.hash_process
call sym.oaes_alloc
mov qword [rsp + 0x40], rsi
mov rdx, rsi
mov r10, qword [rsp + 0x50]
mov qword [rbx + 0x100180], rax
mov rcx, rax
mov rax, qword [rsp + 0x1b8]
mov r8d, 0x20
mov rsi, rbx
vmovdqu ymm2, ymmword [r10]
mov qword [rsp + 0x60], r10
mov r12, qword [rax + 0x23]
vmovdqu ymmword [rdi], ymm2
vmovdqu ymm3, ymmword [r10 + 0x20]
vmovdqu ymmword [rdi + 0x20], ymm3
vmovdqu ymm4, ymmword [r10 + 0x40]
vmovdqu ymmword [rdi + 0x40], ymm4
vmovdqu ymm5, ymmword [r10 + 0x60]
vmovdqu ymmword [rdi + 0x60], ymm5
xor r12, qword [rbx + 0x1000c0]
vzeroupper
call sym.oaes_key_import_data
mov qword [rsp + 0x58], r12
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x30]
mov qword [rsp + 0x50], rbx
jmp 0x14011c1d3
vzeroupper
mov rax, qword [rbx + 0x100180]
mov rcx, rdi
sub rsi, 0xffffffffffffff80
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, r15
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, r14
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, r13
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, r12
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x100180]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
vmovdqu ymm1, ymmword [rdi]
vmovdqu ymmword [rsi - 0x80], ymm1
vmovdqu ymm2, ymmword [rdi + 0x20]
vmovdqu ymmword [rsi - 0x60], ymm2
vmovdqu ymm3, ymmword [rdi + 0x40]
vmovdqu ymmword [rsi - 0x40], ymm3
vmovdqu ymm4, ymmword [rdi + 0x60]
vmovdqu ymmword [rsi - 0x20], ymm4
cmp rbp, rsi
jne 0x14011c1d0
mov rax, qword [rbx + 0x100000]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
mov rdi, rbx
mov ebp, 0x20000
xor rax, qword [rbx + 0x100020]
mov rdx, qword [rbx + 0x100008]
xor rdx, qword [rbx + 0x100028]
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x58], r13
mov rsi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa8]
mov qword [rbx + 0x100150], rax
mov rax, qword [rbx + 0x100010]
xor rax, qword [rbx + 0x100030]
mov qword [rbx + 0x100158], rdx
mov rdx, qword [rbx + 0x100018]
xor rdx, qword [rbx + 0x100038]
mov qword [rbx + 0x100160], rax
mov qword [rbx + 0x100168], rdx
mov rbx, qword [rsp + 0xb0]
vzeroupper
nop word cs:[rax + rax]
mov ecx, dword [rdi + 0x100150]
mov r8, rsi
mov rdx, r13
and ecx, 0xffff0
lea r15, [rdi + rcx]
mov rcx, r15
call sym.fast_aesb_single_round
mov rdx, qword [rdi + 0x100178]
mov ecx, 0x75310
xor rdx, qword [rdi + 0x100168]
mov rax, qword [rdi + 0x100170]
xor rax, qword [rdi + 0x100160]
mov qword [r15 + 8], rdx
shr rdx, 0x18
mov qword [r15], rax
mov eax, edx
mov r8d, edx
shr al, 3
and r8d, 1
and eax, 6
or eax, r8d
mov r8, rbx
add eax, eax
sarx eax, ecx, eax
and eax, 0x30
xor eax, edx
mov byte [r15 + 0xb], al
mov r10d, dword [rdi + 0x100170]
mov rcx, qword [rdi + 0x100170]
and r10d, 0xffff0
lea r15, [rdi + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0xc8]
mov r8, rsi
add rdx, qword [rdi + 0x100150]
mov r11, qword [r15]
add rax, qword [rdi + 0x100158]
xor r11, rdx
vmovq xmm5, rdx
mov rdx, r14
mov qword [rdi + 0x100150], r11
mov r9, qword [r15 + 8]
xor r9, rax
xor rax, r12
vpinsrq xmm0, xmm5, rax, 1
mov qword [rdi + 0x100158], r9
vmovdqu xmmword [r15], xmm0
mov ecx, dword [rdi + 0x100150]
and ecx, 0xffff0
lea r15, [rdi + rcx]
mov rcx, r15
call sym.fast_aesb_single_round
mov rdx, qword [rdi + 0x100168]
mov ecx, 0x75310
xor rdx, qword [rdi + 0x100178]
mov rax, qword [rdi + 0x100160]
xor rax, qword [rdi + 0x100170]
mov qword [r15 + 8], rdx
shr rdx, 0x18
mov qword [r15], rax
mov eax, edx
mov r8d, edx
shr al, 3
and r8d, 1
and eax, 6
or eax, r8d
mov r8, rbx
add eax, eax
sarx eax, ecx, eax
and eax, 0x30
xor eax, edx
mov byte [r15 + 0xb], al
mov r10d, dword [rdi + 0x100160]
mov rcx, qword [rdi + 0x100160]
and r10d, 0xffff0
lea r15, [rdi + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0xc8]
add rdx, qword [rdi + 0x100150]
mov rcx, qword [r15]
add rax, qword [rdi + 0x100158]
xor rcx, rdx
vmovq xmm1, rdx
mov qword [rdi + 0x100150], rcx
mov rcx, qword [r15 + 8]
xor rcx, rax
xor rax, r12
dec rbp
vpinsrq xmm0, xmm1, rax, 1
mov qword [rdi + 0x100158], rcx
vmovdqu xmmword [r15], xmm0
jne 0x14011c360
mov r10, qword [rsp + 0x60]
mov rbx, rdi
mov r8d, 0x20
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
mov rbp, rbx
mov rdx, qword [rsp + 0x88]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
vmovdqu ymm2, ymmword [r10]
mov qword [rsp + 0x50], r10
vmovdqu ymmword [rdi], ymm2
vmovdqu ymm3, ymmword [r10 + 0x20]
vmovdqu ymmword [rdi + 0x20], ymm3
vmovdqu ymm4, ymmword [r10 + 0x40]
vmovdqu ymmword [rdi + 0x40], ymm4
vmovdqu ymm5, ymmword [r10 + 0x60]
vmovdqu ymmword [rdi + 0x60], ymm5
mov rcx, qword [rbx + 0x100180]
mov rbx, rsi
vzeroupper
call sym.oaes_key_import_data
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
nop
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov rcx, rdi
sub rbx, 0xffffffffffffff80
xor qword [rbp + 0x1000d0], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x1000d8], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x70]
mov rcx, r15
mov rdx, qword [rbx - 0x68]
xor qword [rbp + 0x1000e0], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x1000e8], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x60]
mov rcx, r14
mov rdx, qword [rbx - 0x58]
xor qword [rbp + 0x1000f0], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x1000f8], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x50]
mov rcx, r13
mov rdx, qword [rbx - 0x48]
xor qword [rbp + 0x100100], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x100108], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x40]
mov rdx, qword [rbx - 0x38]
xor qword [rbp + 0x100110], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x100118], rdx
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x30]
mov rdx, qword [rbx - 0x28]
xor qword [rbp + 0x100120], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x100128], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x20]
mov rdx, qword [rbx - 0x18]
xor qword [rbp + 0x100130], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x100138], rdx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x10]
mov rcx, r12
mov rdx, qword [rbx - 8]
xor qword [rbp + 0x100140], rax
mov rax, qword [rbp + 0x100180]
xor qword [rbp + 0x100148], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
cmp rsi, rbx
jne 0x14011c590
vmovdqu ymm2, ymmword [rdi]
mov r10, qword [rsp + 0x50]
mov rbx, rbp
mov rbp, qword [rsp + 0x40]
mov rcx, rbp
vmovdqu ymmword [r10], ymm2
vmovdqu ymm3, ymmword [rdi + 0x20]
vmovdqu ymmword [r10 + 0x20], ymm3
vmovdqu ymm4, ymmword [rdi + 0x40]
vmovdqu ymmword [r10 + 0x40], ymm4
vmovdqu ymm5, ymmword [rdi + 0x60]
vmovdqu ymmword [r10 + 0x60], ymm5
vzeroupper
call sym.hash_permutation
lea r11, sym.do_blake_hash_1
mov edx, 0xc8
movzx eax, byte [rbx + 0x100000]
mov rsi, qword [rsp + 0x80]
mov rcx, rbp
and eax, 3
mov r8, rsi
call qword [r11 + rax*8]
mov rcx, qword [rsp + 0x98]
call sym.oaes_free
mov rax, rsi
mov rsi, qword [rsp + 0x1b8]
mov r10, qword [rsp + 0x50]
mov esi, dword [rsi + 0xdc]
cmp dword [rax + 0x1c], esi
jb 0x14011c7e0
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x1c0], eax
jb 0x14011c865
mov rsi, qword [0x1401fd8b0]
mov rax, qword [rsp + 0x48]
add rax, qword [rsi]
movzx eax, byte [rax]
test al, al
je 0x14011c109
mov ebp, dword [rsp + 0xbc]
mov r9d, dword [rsp + 0xb8]
mov r12, qword [rsp + 0x1c8]
jmp 0x14011bff1
mov r11, qword [rsp + 0x1b8]
mov r9d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x80]
mov ebp, dword [rsp + 0xbc]
mov r12, qword [rsp + 0x1c8]
mov rcx, r11
mov dword [rsp + 0x20], r9d
call dbg.work_set_target_ratio
mov rcx, rbx
mov eax, dword [rsp + 0x20]
sub eax, ebp
inc eax
mov qword [r12], rax
call sym.free
mov eax, 1
jmp 0x14011c010
mov rdx, qword [rsp + 0x80]
add esi, 2
mov rcx, r15
sub esi, ebp
call dbg.work_set_target_ratio
mov eax, esi
mov rcx, rbx
mov qword [r12], rax
call sym.free
jmp 0x14011c828
mov ebp, dword [rsp + 0xbc]
mov r12, qword [rsp + 0x1c8]
mov r9d, eax
jmp 0x14011bff1