Function at 0x14011ada0
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, 0x200190
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 0x14011aeb0
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.cryptonight_hash_ctx.constprop.0
mov eax, dword [r15 + 0xdc]
cmp dword [r13 + 0x1c], eax
jb 0x14011b6e0
cmp dword [rsp + 0x1c0], r14d
jb 0x14011ae6e
mov rax, qword [rsp + 0x48]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
je 0x14011ae2c
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 + 0x200000]
lea r10, [rbx + 0x200040]
lea rdi, [rbx + 0x2000d0]
lea r15, [rbx + 0x2000e0]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0x200110]
lea r14, [rbx + 0x2000f0]
lea r13, [rbx + 0x200100]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x200120]
mov dword [rsp + 0xbc], ebp
mov dword [rsp + 0xb8], r9d
mov qword [rsp + 0x28], rax
lea rax, [rbx + 0x200130]
mov qword [rsp + 0x1b8], r11
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x200140]
mov qword [rsp + 0x20], rax
lea rax, [rbx + 0x200150]
mov qword [rsp + 0x88], rax
lea rax, [rbx + 0x200170]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xb0], rax
lea rax, [rbx + 0x200160]
mov qword [rsp + 0x90], rax
lea rax, [rbx + 0x200020]
mov qword [rsp + 0x98], rax
lea rax, [rbx + 0x200180]
mov qword [rsp + 0xa8], 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 + 0x200180], 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 + 0x2000c0]
vzeroupper
call sym.oaes_key_import_data
mov qword [rsp + 0x58], r12
mov rbp, qword [rsp + 0x40]
mov r12, rdi
mov qword [rsp + 0x50], rbx
mov rdi, qword [rsp + 0x30]
jmp 0x14011b053
vzeroupper
mov rax, qword [rbx + 0x200180]
mov rcx, r12
sub rsi, 0xffffffffffffff80
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
mov rcx, r15
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
mov rcx, r14
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
mov rcx, r13
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
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 + 0x200180]
mov rcx, rdi
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx + 0x200180]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
vmovdqu ymm1, ymmword [r12]
vmovdqu ymmword [rsi - 0x80], ymm1
vmovdqu ymm2, ymmword [r12 + 0x20]
vmovdqu ymmword [rsi - 0x60], ymm2
vmovdqu ymm3, ymmword [r12 + 0x40]
vmovdqu ymmword [rsi - 0x40], ymm3
vmovdqu ymm4, ymmword [r12 + 0x60]
vmovdqu ymmword [rsi - 0x20], ymm4
cmp rbp, rsi
jne 0x14011b050
mov rax, qword [rbx + 0x200000]
mov rdi, r12
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r13
mov ebp, 0x40000
xor rax, qword [rbx + 0x200020]
mov rdx, qword [rbx + 0x200008]
xor rdx, qword [rbx + 0x200028]
mov r10, qword [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x58], rdi
mov rdi, rbx
mov rsi, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov qword [rbx + 0x200150], rax
mov rax, qword [rbx + 0x200010]
xor rax, qword [rbx + 0x200030]
mov qword [rsp + 0x78], r10
mov qword [rbx + 0x200158], rdx
mov rdx, qword [rbx + 0x200018]
xor rdx, qword [rbx + 0x200038]
mov qword [rbx + 0x200160], rax
mov qword [rbx + 0x200168], rdx
mov rbx, qword [rsp + 0xb0]
vzeroupper
nop word [rax + rax]
mov ecx, dword [rdi + 0x200150]
mov r8, rsi
mov rdx, r14
and ecx, 0x1ffff0
lea r15, [rdi + rcx]
mov rcx, r15
call sym.fast_aesb_single_round
mov rdx, qword [rdi + 0x200178]
mov ecx, 0x75310
xor rdx, qword [rdi + 0x200168]
mov rax, qword [rdi + 0x200170]
xor rax, qword [rdi + 0x200160]
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 + 0x200170]
mov rcx, qword [rdi + 0x200170]
and r10d, 0x1ffff0
lea r15, [rdi + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0xc8]
mov r8, rsi
add rdx, qword [rdi + 0x200150]
mov r11, qword [r15]
add rax, qword [rdi + 0x200158]
xor r11, rdx
vmovq xmm5, rdx
mov rdx, r13
mov qword [rdi + 0x200150], r11
mov r9, qword [r15 + 8]
xor r9, rax
xor rax, r12
vpinsrq xmm0, xmm5, rax, 1
mov qword [rdi + 0x200158], r9
vmovdqu xmmword [r15], xmm0
mov ecx, dword [rdi + 0x200150]
and ecx, 0x1ffff0
lea r15, [rdi + rcx]
mov rcx, r15
call sym.fast_aesb_single_round
mov rdx, qword [rdi + 0x200168]
mov ecx, 0x75310
xor rdx, qword [rdi + 0x200178]
mov rax, qword [rdi + 0x200160]
xor rax, qword [rdi + 0x200170]
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 + 0x200160]
mov rcx, qword [rdi + 0x200160]
and r10d, 0x1ffff0
lea r15, [rdi + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0xc8]
add rdx, qword [rdi + 0x200150]
mov rcx, qword [r15]
add rax, qword [rdi + 0x200158]
xor rcx, rdx
vmovq xmm1, rdx
mov qword [rdi + 0x200150], rcx
mov rcx, qword [r15 + 8]
xor rcx, rax
xor rax, r12
dec rbp
vpinsrq xmm0, xmm1, rax, 1
mov qword [rdi + 0x200158], rcx
vmovdqu xmmword [r15], xmm0
jne 0x14011b1f0
mov r10, qword [rsp + 0x78]
mov rbx, rdi
mov r8d, 0x20
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
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 + 0x200180]
vzeroupper
call sym.oaes_key_import_data
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, rsi
mov r12, qword [rsp + 0x38]
mov rsi, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov rcx, rdi
sub rbx, 0xffffffffffffff80
xor qword [rsi + 0x2000d0], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x2000d8], 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 [rsi + 0x2000e0], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x2000e8], 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 [rsi + 0x2000f0], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x2000f8], 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 [rsi + 0x200100], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x200108], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
mov rax, qword [rbx - 0x40]
mov rcx, r12
mov rdx, qword [rbx - 0x38]
xor qword [rsi + 0x200110], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x200118], rdx
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 [rsi + 0x200120], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x200128], 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 - 0x20]
mov rdx, qword [rbx - 0x18]
xor qword [rsi + 0x200130], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x200138], 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 - 0x10]
mov rdx, qword [rbx - 8]
xor qword [rsi + 0x200140], rax
mov rax, qword [rsi + 0x200180]
xor qword [rsi + 0x200148], rdx
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.fast_aesb_pseudo_round_mut
cmp rbp, rbx
jne 0x14011b430
vmovdqu ymm2, ymmword [rdi]
mov r10, qword [rsp + 0x50]
mov rbx, rsi
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
mov edx, 0xc8
movzx eax, byte [rsi + 0x200000]
mov rsi, qword [rsp + 0x80]
mov rcx, rbp
and eax, 3
mov r8, rsi
call qword [r11 + rax*8]
mov rcx, qword [rsp + 0xa8]
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 0x14011b680
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x1c0], eax
jb 0x14011b705
mov rsi, qword [0x1401fd8b0]
mov rax, qword [rsp + 0x48]
add rax, qword [rsi]
movzx eax, byte [rax]
test al, al
je 0x14011af89
mov ebp, dword [rsp + 0xbc]
mov r9d, dword [rsp + 0xb8]
mov r12, qword [rsp + 0x1c8]
jmp 0x14011ae71
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 0x14011ae90
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 0x14011b6c8
mov ebp, dword [rsp + 0xbc]
mov r12, qword [rsp + 0x1c8]
mov r9d, eax
jmp 0x14011ae71