Function at 0x42aaf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov esi, 1
call fcn.00429670
mov rbx, rax
test ah, 2
jne 0x42aee8
test bh, 1
jne 0x42af0c
test bl, 0x80
jne 0x42af2d
test bl, 0x10
jne 0x42af4e
and ebx, 4
jne 0x42af6f
lea r8, [0x00427d40]
mov rdx, r8
lea rcx, [0x00428270]
call fcn.00429250
test eax, esi
jne 0x42aed0
lea rcx, str.scrypt:_mix_function_power_on_self_test_failed
call qword [0x00733120]
mov dword [rsp + 0x9c], 6
mov ebx, 4
call fcn.004297f0
test eax, eax
jne 0x42ab95
lea rcx, str.scrypt:_hash_function_power_on_self_test_failed
call qword [0x00733120]
mov dword [rsp + 0x9c], ebx
lea rax, [0x0073eba0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x90], rax
lea r15, [0x0073eb00]
mov rax, qword [rsp + 0x40]
lea rdi, [0x0042b710]
movzx ebp, byte [rax + 0x10]
mov qword [rsp + 0x88], rax
movzx r14d, byte [rax + 0x12]
movzx ebx, byte [rax + 0x11]
mov r13, qword [rax + 8]
mov rax, qword [rax]
mov esi, ebp
mov rcx, rax
mov qword [rsp + 0x50], rax
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x58], rax
call fcn.00429670
mov qword [rsp + 0x48], rdi
test ah, 2
jne 0x42ac68
lea rdi, [0x0042bac0]
mov qword [rsp + 0x48], rdi
test ah, 1
jne 0x42ac68
lea rdi, [0x0042be70]
mov qword [rsp + 0x48], rdi
test al, 0x80
jne 0x42ac68
lea rdi, [0x0042afb0]
mov qword [rsp + 0x48], rdi
test al, 0x10
jne 0x42ac68
test al, 4
lea rdx, [0x0042b360]
lea rax, [0x004290d0]
cmovne rax, rdx
mov qword [rsp + 0x48], rax
nop dword [rax]
mov ecx, dword [0x007bce60]
test ecx, ecx
je 0x42aea0
cmp sil, 0x1e
jbe 0x42ac89
lea rcx, str.scrypt:_N_out_of_range
call qword [0x00733120]
cmp bl, 7
jbe 0x42ac9b
lea rcx, str.scrypt:_r_out_of_range
call qword [0x00733120]
cmp r14b, 0x19
jbe 0x42acae
lea rcx, str.scrypt:_p_out_of_range
call qword [0x00733120]
mov eax, 1
inc ebp
mov esi, 0x100
shlx ecx, eax, ebp
shlx edi, eax, ebx
mov rbp, rcx
shlx ebx, esi, ebx
imul rcx, rbx
shlx eax, eax, r14d
mov dword [rsp + 0x3c], edi
add rcx, 0x7f
mov dword [rsp + 0x38], eax
call sub.msvcrt.dll_malloc
lea r12, [rax + 0x7f]
mov qword [rsp + 0x80], rax
mov rsi, rbx
and r12, 0xffffffffffffff80
test rax, rax
je 0x42af9e
mov eax, dword [rsp + 0x38]
inc eax
mov edi, eax
imul edi, esi
lea rcx, [rdi + 0x7f]
mov qword [rsp + 0x68], rdi
call sub.msvcrt.dll_malloc
lea rdi, [rax + 0x7f]
mov qword [rsp + 0x78], rax
and rdi, 0xffffffffffffff80
test rax, rax
je 0x42af8c
add rbx, rdi
shlx eax, esi, r14d
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov r8, r13
mov qword [rsp + 0x70], rax
call fcn.0042a770
mov edx, dword [rsp + 0x38]
xor r13d, r13d
xor r14d, r14d
test edx, edx
je 0x42adb3
mov qword [rsp + 0x60], r15
mov r15d, r14d
mov r14, r12
mov r12d, esi
mov esi, r13d
mov r13, qword [rsp + 0x48]
nop dword [rax + rax]
mov eax, dword [rsp + 0x3c]
mov ecx, esi
mov dword [rsp + 0x20], eax
add rcx, rbx
mov r9d, ebp
mov r8, r14
mov rdx, rdi
inc r15d
call r13
add esi, r12d
cmp dword [rsp + 0x38], r15d
jne 0x42ad88
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov r8, rbx
call fcn.0042a560
xor eax, eax
mov rcx, qword [rsp + 0x68]
push rdi
push rcx
rep stosb byte [rdi], al
pop rcx
pop rdi
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
xor edx, edx
xor ecx, ecx
mov r8, rsi
nop word [rax + rax]
movzx eax, byte [r15 + rdx]
xor al, byte [r8 + rdx]
movzx eax, al
inc rdx
or ecx, eax
cmp rdx, 0x40
jne 0x42ae08
add qword [rsp + 0x40], 0x18
dec ecx
mov rbx, qword [rsp + 0x88]
shr ecx, 8
and dword [rsp + 0x98], ecx
add r15, 0x40
cmp qword [rbx + 0x18], 0
mov rax, qword [rsp + 0x40]
je 0x42ae60
mov rcx, qword [rax + 8]
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x60], rax
jmp 0x42abcc
mov eax, dword [rsp + 0x98]
test eax, eax
jne 0x42ae80
lea rcx, str.scrypt:_scrypt_power_on_self_test_failed
call qword [0x00733120]
and dword [rsp + 0x9c], 0xfffffffb
mov eax, dword [rsp + 0x9c]
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [0x007bce60], 1
call fcn.0042aaf0
test eax, eax
jne 0x42ac76
lea rcx, str.scrypt:_power_on_self_test_failed
call qword [0x00733120]
jmp 0x42ac76
mov dword [rsp + 0x9c], 7
mov ebx, 5
jmp 0x42ab78
lea r8, [0x00427d50]
mov rdx, r8
lea rcx, [fcn.00426480]
call fcn.00429250
and eax, 1
mov esi, eax
test bh, 1
je 0x42ab22
lea r8, [0x00427d50]
mov rdx, r8
lea rcx, [fcn.004266c0]
call fcn.00429250
and esi, eax
test bl, 0x80
je 0x42ab2b
lea r8, [0x00427d50]
mov rdx, r8
lea rcx, [fcn.00426a40]
call fcn.00429250
and esi, eax
test bl, 0x10
je 0x42ab34
lea r8, [0x00427d50]
mov rdx, r8
lea rcx, [fcn.00426e20]
call fcn.00429250
and esi, eax
and ebx, 4
je 0x42ab3d
lea r8, [0x00427d50]
mov rdx, r8
lea rcx, [fcn.004272b0]
call fcn.00429250
and esi, eax
jmp 0x42ab3d
lea rcx, str.scrypt:_out_of_memory
call qword [0x00733120]
jmp 0x42ad31
lea rcx, str.scrypt:_out_of_memory
call qword [0x00733120]
jmp 0x42ad02