Function at 0x14026aa20
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov eax, dword [rcx + 0x10]
mov rsi, rdx
mov r9d, dword [rcx + 4]
lea rdx, str.sqlcipher_cipher_ctx_key_derive:_ctx__kdf_salt_sz_d_ctx__kdf_iter_d_ctx__fast_kdf_iter_d_ctx__key_sz_d
mov r8d, dword [rcx + 0xc]
mov rdi, rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + 8]
mov ecx, 8
mov dword [rsp + 0x20], eax
call fcn.14026fc80
cmp qword [rsi + 0x18], 0
je 0x14026ae8c
cmp dword [rsi + 4], 0
je 0x14026ae8c
cmp dword [rdi + 0x3c], 0
mov qword [rsp + 0x88], rbx
je 0x14026aaaa
mov rcx, rdi
call fcn.14026b980
mov ebx, eax
test eax, eax
je 0x14026aaaa
mov r8d, eax
lea rdx, str.sqlcipher_cipher_ctx_key_derive:_error__d_from_sqlcipher_codec_ctx_init_kdf_salt
mov ecx, 1
call fcn.14026fc80
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x68
pop rdi
pop rsi
ret
mov ebx, dword [rsi + 4]
lea r11, [0x1403dc9b8]
mov qword [rsp + 0x90], rbp
mov r10d, 2
mov qword [rsp + 0x60], r12
lea r12, [0x1403d65c0]
mov qword [rsp + 0x58], r14
mov r14d, dword [rdi + 0x10]
mov qword [rsp + 0x50], r15
lea r15d, [r14 + r14]
lea eax, [r15 + 3]
cmp ebx, eax
jne 0x14026abc1
mov rbp, qword [rsi + 0x18]
mov edx, r10d
test rbp, rbp
je 0x14026abc1
mov r9, rbp
mov r8, r11
movzx eax, byte [r9]
dec edx
test al, al
je 0x14026ab29
mov ecx, eax
movzx eax, byte [r8]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x14026ab29
inc r9
inc r8
test edx, edx
jg 0x14026ab02
dec edx
test edx, edx
js 0x14026ab44
movzx eax, byte [r8]
movzx r8d, byte [rax + r12]
movzx eax, byte [r9]
movzx ecx, byte [rax + r12]
cmp ecx, r8d
jne 0x14026abc1
mov edx, r15d
lea rcx, [rbp + 2]
call fcn.14020d930
test eax, eax
je 0x14026abc1
lea rdx, str.cipher_ctx_key_derive:_using_raw_key_from_hex
mov ecx, 8
call fcn.14026fc80
mov r8, qword [rsi + 8]
lea edx, [rbx - 3]
lea rcx, [rbp + 2]
call fcn.14020d8a0
movsxd rdx, dword [rdi + 0x20]
mov rcx, qword [rsi + 0x20]
mov r15, qword [rsi + 8]
call fcn.14026fb80
mov qword [rsi + 0x20], 0
movsxd rcx, dword [rdi + 0x20]
call fcn.14026fdd0
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x14026ad10
lea r8d, [rax + 7]
lea rdx, str.sqlcipher_cipher_ctx_key_derive:_error__d_from_sqlcipher_cipher_ctx_set_keyspec
lea ecx, [rax + 1]
call fcn.14026fc80
mov eax, 7
jmp 0x14026acea
mov ecx, dword [rdi + 0xc]
add ecx, r14d
lea edx, [rcx + rcx]
lea eax, [rdx + 3]
cmp ebx, eax
jne 0x14026ac76
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x14026ac76
mov r9, rbx
movzx eax, byte [r9]
dec r10d
test al, al
je 0x14026ac0f
mov ecx, eax
movzx eax, byte [r11]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x14026ac0f
inc r9
inc r11
test r10d, r10d
jg 0x14026abe5
dec r10d
test r10d, r10d
js 0x14026ac2b
movzx eax, byte [r11]
movzx r8d, byte [rax + r12]
movzx eax, byte [r9]
movzx ecx, byte [rax + r12]
cmp ecx, r8d
jne 0x14026ac76
add rbx, 2
mov rcx, rbx
call fcn.14020d930
test eax, eax
je 0x14026ac76
lea rdx, str.cipher_ctx_key_derive:_using_raw_key_from_hex
mov ecx, 8
call fcn.14026fc80
mov edx, dword [rdi + 0x10]
mov rcx, rbx
mov r8, qword [rsi + 8]
add edx, edx
call fcn.14020d8a0
mov eax, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
add eax, eax
mov r8, qword [rdi + 0x48]
add edx, edx
movsxd rcx, eax
add rcx, rbx
jmp 0x14026ab70
mov r8d, dword [rdi + 4]
lea rdx, str.cipher_ctx_key_derive:_deriving_key_using_full_PBKDF2_with__d_iterations
mov ecx, 8
call fcn.14026fc80
mov rax, qword [rsi + 8]
mov r10, qword [rdi + 0x78]
mov r9d, dword [rsi + 4]
mov r8, qword [rsi + 0x18]
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi + 0x80]
mov qword [rsp + 0x40], rax
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x20], rax
call qword [r10 + gethostbyaddr]
test eax, eax
je 0x14026ab75
lea rdx, str.cipher_ctx_key_derive:_error_occurred_from_provider_kdf_generating_encryption_key
mov ecx, 1
call fcn.14026fc80
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x88]
add rsp, 0x68
pop rdi
pop rsi
ret
mov byte [rax], 0x78
mov rax, qword [rsi + 0x20]
mov byte [rax + 1], 0x27
movsxd rax, dword [rdi + 0x10]
mov rdx, qword [rsi + 0x20]
mov r14, rax
lea r12, [rdx + 2]
test eax, eax
jle 0x14026ad6e
xor ebx, ebx
xor ebp, ebp
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [rbx + r15]
lea r8, str._02x
movsxd rdx, ebp
mov ecx, 3
add rdx, r12
call fcn.1401f3ba0
add ebp, 2
inc rbx
cmp rbx, r14
jl 0x14026ad40
mov eax, dword [rdi + 0x10]
mov rdx, qword [rsi + 0x20]
movsxd r14, dword [rdi + 0xc]
lea r15, [rdx + 2]
mov r12, qword [rdi + 0x48]
add eax, eax
movsxd rcx, eax
add r15, rcx
test r14, r14
jle 0x14026adbb
xor ebx, ebx
xor ebp, ebp
nop dword [rax + rax]
movzx r9d, byte [rbx + r12]
lea r8, str._02x
movsxd rdx, ebp
mov ecx, 3
add rdx, r15
call fcn.1401f3ba0
add ebp, 2
inc rbx
cmp rbx, r14
jl 0x14026ad90
mov rdx, qword [rsi + 0x20]
movsxd rax, dword [rdi + 0x20]
mov byte [rax + rdx - 1], 0x27
test byte [rdi + 0x40], 1
je 0x14026ae7f
movsxd r8, dword [rdi + 0xc]
mov rdx, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x50]
call fcn.1402f4a50
xor r10d, r10d
cmp dword [rdi + 0xc], r10d
jle 0x14026ae1b
xor r9d, r9d
nop dword [rax + rax]
movzx r8d, byte [0x14042d45f]
lea r9, [r9 + 1]
mov rax, qword [rdi + 0x50]
inc r10d
movzx edx, byte [r9 + rax - 1]
mov rax, qword [rdi + 0x50]
xor r8b, dl
mov byte [r9 + rax - 1], r8b
cmp r10d, dword [rdi + 0xc]
jl 0x14026adf0
mov r8d, dword [rdi + 8]
lea rdx, str.cipher_ctx_key_derive:_deriving_hmac_key_from_encryption_key_using_PBKDF2_with__d_iterations
mov ecx, 8
call fcn.14026fc80
mov rax, qword [rsi + 0x10]
mov r9d, dword [rdi + 0x10]
mov r10, qword [rdi + 0x78]
mov r8, qword [rsi + 8]
mov edx, dword [rdi + 0x34]
mov rcx, qword [rdi + 0x80]
mov qword [rsp + 0x40], rax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x20], rax
call qword [r10 + gethostbyaddr]
test eax, eax
je 0x14026ae7f
lea rdx, str.cipher_ctx_key_derive:_error_occurred_from_provider_kdf_generating_HMAC_key
jmp 0x14026acdb
mov dword [rsi], 0
xor eax, eax
jmp 0x14026acea
lea rdx, str.cipher_ctx_key_derive:_key_material_is_not_present_on_the_context_for_key_derivation
mov ecx, 1
call fcn.14026fc80
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
ret