Function at 0x140119fd0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, [r8 + 0x200000]
mov r14, r8
mov qword [rsp + 0x48], rcx
mov r8d, 0x4c
mov rcx, rsi
mov rbx, rdx
lea r13, [r14 + 0x2000d0]
lea r12, [r14 + 0x2000e0]
call sym.hash_process
call sym.oaes_alloc
lea r11, [r14 + 0x200040]
mov qword [rsp + 0x40], rsi
vmovdqu ymm2, ymmword [r14 + 0x200040]
mov qword [r14 + 0x200180], rax
mov rcx, rax
vmovdqu ymm3, ymmword [r14 + 0x200060]
mov qword [rsp + 0x50], r11
mov rdx, rsi
mov r8d, 0x20
vmovdqu ymm4, ymmword [r14 + 0x200080]
lea rbp, [r14 + 0x200130]
lea r15, [r14 + 0x200140]
vmovdqu ymm5, ymmword [r14 + 0x2000a0]
vmovdqu ymmword [r14 + 0x2000d0], ymm2
vmovdqu ymmword [r14 + 0x2000f0], ymm3
vmovdqu ymmword [r14 + 0x200110], ymm4
vmovdqu ymmword [r14 + 0x200130], ymm5
mov rdi, qword [rbx + 0x23]
mov rbx, r13
xor rdi, qword [r14 + 0x2000c0]
vzeroupper
call sym.oaes_key_import_data
lea rcx, [r14 + 0x200100]
lea rax, [r14 + 0x2000f0]
mov qword [rsp + 0x20], rcx
lea rcx, [r14 + 0x200110]
mov qword [rsp + 0x58], rdi
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [r14 + 0x200120]
mov qword [rsp + 0x38], rax
mov rdi, r14
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x60], r14
mov r13, rax
jmp 0x14011a0f3
vzeroupper
mov rax, qword [r14 + 0x200180]
mov rcx, rbx
sub rdi, 0xffffffffffffff80
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, r12
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, r13
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, rbp
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [r14 + 0x200180]
mov rcx, r15
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
vmovdqu ymm1, ymmword [rbx]
vmovdqu ymmword [rdi - 0x80], ymm1
vmovdqu ymm2, ymmword [rbx + 0x20]
vmovdqu ymmword [rdi - 0x60], ymm2
vmovdqu ymm3, ymmword [rbx + 0x40]
vmovdqu ymmword [rdi - 0x40], ymm3
vmovdqu ymm4, ymmword [rbx + 0x60]
vmovdqu ymmword [rdi - 0x20], ymm4
cmp rsi, rdi
jne 0x14011a0f0
mov rax, qword [r14 + 0x200000]
lea r9, [r14 + 0x200160]
lea rcx, [r14 + 0x200170]
mov qword [rsp + 0x70], rbp
xor rax, qword [r14 + 0x200020]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x68], r15
mov rbp, r14
mov esi, 0x40000
mov r12, r9
mov rdx, qword [r14 + 0x200008]
xor rdx, qword [r14 + 0x200028]
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x58], rbx
mov qword [r14 + 0x200150], rax
mov rax, qword [r14 + 0x200010]
xor rax, qword [r14 + 0x200030]
mov qword [r14 + 0x200158], rdx
mov rdx, qword [r14 + 0x200018]
xor rdx, qword [r14 + 0x200038]
mov qword [r14 + 0x200160], rax
lea rax, [r14 + 0x200150]
mov r13, rax
mov qword [r14 + 0x200168], rdx
lea rdx, [rsp + 0x88]
mov r14, rcx
mov rbx, rdx
vzeroupper
nop
mov ecx, dword [rbp + 0x200150]
mov r8, r13
mov rdx, r14
and ecx, 0x1ffff0
lea r15, [rbp + rcx]
mov rcx, r15
call sym.aesb_single_round
mov rdx, qword [rbp + 0x200178]
mov ecx, 0x75310
xor rdx, qword [rbp + 0x200168]
mov rax, qword [rbp + 0x200170]
xor rax, qword [rbp + 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 [rbp + 0x200170]
mov rcx, qword [rbp + 0x200170]
and r10d, 0x1ffff0
lea r15, [rbp + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0x88]
mov r8, r13
add rdx, qword [rbp + 0x200150]
mov r9, qword [r15]
add rax, qword [rbp + 0x200158]
xor r9, rdx
vmovq xmm5, rdx
mov rdx, r12
mov qword [rbp + 0x200150], r9
mov r11, qword [r15 + 8]
xor r11, rax
xor rax, rdi
vpinsrq xmm0, xmm5, rax, 1
mov qword [rbp + 0x200158], r11
vmovdqu xmmword [r15], xmm0
mov ecx, dword [rbp + 0x200150]
and ecx, 0x1ffff0
lea r15, [rbp + rcx]
mov rcx, r15
call sym.aesb_single_round
mov rdx, qword [rbp + 0x200168]
mov ecx, 0x75310
xor rdx, qword [rbp + 0x200178]
mov rax, qword [rbp + 0x200160]
xor rax, qword [rbp + 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 [rbp + 0x200160]
mov rcx, qword [rbp + 0x200160]
and r10d, 0x1ffff0
lea r15, [rbp + r10]
mov rdx, qword [r15]
call sym.mul128
mov rdx, qword [rsp + 0x88]
add rdx, qword [rbp + 0x200150]
mov rcx, qword [r15]
add rax, qword [rbp + 0x200158]
xor rcx, rdx
vmovq xmm1, rdx
mov qword [rbp + 0x200150], rcx
mov rcx, qword [r15 + 8]
xor rcx, rax
xor rax, rdi
dec rsi
vpinsrq xmm0, xmm1, rax, 1
mov qword [rbp + 0x200158], rcx
vmovdqu xmmword [r15], xmm0
jne 0x14011a280
mov r14, rbp
mov r11, qword [rsp + 0x50]
mov r8d, 0x20
vmovdqu ymm2, ymmword [r14 + 0x200040]
mov r13, qword [rsp + 0x58]
lea rdx, [r14 + 0x200020]
mov rdi, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov r15, qword [rsp + 0x68]
mov rsi, rbx
vmovdqu ymmword [r14 + 0x2000d0], ymm2
vmovdqu ymm3, ymmword [r11 + 0x20]
vmovdqu ymmword [r13 + 0x20], ymm3
vmovdqu ymm4, ymmword [r11 + 0x40]
vmovdqu ymmword [r13 + 0x40], ymm4
vmovdqu ymm5, ymmword [r11 + 0x60]
vmovdqu ymmword [r13 + 0x60], ymm5
mov rcx, qword [r14 + 0x200180]
mov r14, r12
mov r12, rbp
vzeroupper
call sym.oaes_key_import_data
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
nop
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, r13
sub rsi, 0xffffffffffffff80
xor qword [rdi + 0x2000d0], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x2000d8], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x70]
mov rcx, r14
mov rdx, qword [rsi - 0x68]
xor qword [rdi + 0x2000e0], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x2000e8], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x60]
mov rdx, qword [rsi - 0x58]
xor qword [rdi + 0x2000f0], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x2000f8], rdx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x50]
mov rdx, qword [rsi - 0x48]
xor qword [rdi + 0x200100], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x200108], rdx
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x40]
mov rdx, qword [rsi - 0x38]
xor qword [rdi + 0x200110], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x200118], rdx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x30]
mov rcx, rbp
mov rdx, qword [rsi - 0x28]
xor qword [rdi + 0x200120], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x200128], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x20]
mov rcx, r12
mov rdx, qword [rsi - 0x18]
xor qword [rdi + 0x200130], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x200138], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
mov rax, qword [rsi - 0x10]
mov rcx, r15
mov rdx, qword [rsi - 8]
xor qword [rdi + 0x200140], rax
mov rax, qword [rdi + 0x200180]
xor qword [rdi + 0x200148], rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
call sym.aesb_pseudo_round_mut
cmp rbx, rsi
jne 0x14011a4c0
vmovdqu ymm2, ymmword [rdi + 0x2000d0]
mov r11, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
vmovdqu ymmword [rdi + 0x200040], ymm2
vmovdqu ymm3, ymmword [r13 + 0x20]
vmovdqu ymmword [r11 + 0x20], ymm3
vmovdqu ymm4, ymmword [r13 + 0x40]
vmovdqu ymmword [r11 + 0x40], ymm4
vmovdqu ymm5, ymmword [r13 + 0x60]
vmovdqu ymmword [r11 + 0x60], ymm5
vzeroupper
call sym.hash_permutation
lea r10, sym.do_blake_hash
mov rcx, rbx
movzx eax, byte [rdi + 0x200000]
mov r8, qword [rsp + 0x48]
mov edx, 0xc8
and eax, 3
call qword [r10 + rax*8]
lea rcx, [rdi + 0x200180]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.oaes_free