Function at 0x1400a52c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rbp + 0x20], r8
cmp rdx, 0x40
jg 0x1400a5767
mov rax, qword [r9]
mov rdi, r9
cmp rax, 0x3f
jle 0x1400a572f
lea rdx, [rsp + 0x50]
mov rsi, rcx
lea r13, [0x1400cc2a0]
xor ecx, ecx
call fcn.140034360
mov rcx, r13
call fcn.140030c20
mov ebx, eax
test eax, eax
jne 0x1400a5700
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov r11, qword [0x140222388]
mov r8, rax
test r11, r11
je 0x1400a54c8
mov r14d, eax
mov r9, rsi
cmp eax, 0xb
jbe 0x1400a56e0
mov r10d, eax
mov ecx, 0x9e3779b9
mov ebx, 0x9e3779b9
mov r15d, 0xfeedbeef
nop word [rax + rax]
movzx edx, byte [r9 + 5]
movzx eax, byte [r9 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r9 + 4]
add edx, eax
movzx eax, byte [r9 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r9 + 9]
add edx, ecx
movzx ecx, byte [r9 + 0xa]
shl eax, 8
shl ecx, 0x10
add eax, ecx
movzx ecx, byte [r9 + 8]
add eax, ecx
movzx ecx, byte [r9 + 0xb]
shl ecx, 0x18
add eax, ecx
movzx ecx, byte [r9 + 1]
add eax, r15d
movzx r15d, byte [r9 + 2]
shl ecx, 8
shl r15d, 0x10
add ecx, r15d
movzx r15d, byte [r9]
add ecx, r15d
movzx r15d, byte [r9 + 3]
shl r15d, 0x18
add ecx, r15d
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, ebx
mov ebx, eax
shr ebx, 0xd
xor ecx, ebx
mov ebx, edx
mov edx, ecx
sub ebx, ecx
sub eax, ecx
shl edx, 8
xor edx, ebx
sub eax, edx
mov ebx, eax
mov eax, edx
shr eax, 0xd
xor eax, ebx
sub ecx, edx
sub r10d, 0xc
add r9, 0xc
mov ebx, ecx
mov ecx, eax
sub edx, eax
sub ebx, eax
shr ecx, 0xc
xor ecx, ebx
mov ebx, edx
mov edx, ecx
sub ebx, ecx
sub eax, ecx
shl edx, 0x10
xor edx, ebx
sub eax, edx
sub ecx, edx
mov ebx, eax
mov eax, edx
shr eax, 5
xor eax, ebx
mov ebx, eax
sub ecx, eax
sub edx, eax
shr ebx, 3
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
sub eax, ebx
shl ecx, 0xa
xor ecx, edx
mov r15d, ecx
sub eax, ecx
shr r15d, 0xf
xor r15d, eax
cmp r10d, 0xb
ja 0x1400a5360
lea eax, [r15 + r8]
cmp r10d, 0xb
ja case.0x1400a5472.0
lea r15, [0x1400f4a98]
movsxd rdx, dword [r15 + r10*4]
add rdx, r15
jmp rdx
xor eax, eax
mov qword [rbx + 0x46], 0
mov word [rbx + 0x44], ax
mov qword [rbx + 0x4e], 0
mov qword [rbx + 0x56], 0
mov qword [rbx + 0x5e], 0
mov qword [rbx + 0x66], 0
mov qword [rbx + 0x6e], 0
mov qword [rbx + 0x76], 0
mov qword [rbx + 0x7e], 0
mov byte [rbx + 0x86], 0
nop dword [rax]
mov rcx, r13
call fcn.140030f90
test eax, eax
je 0x1400a54fa
mov dword [rsp + 0x28], eax
lea rax, str.Error_locking_Wallet_table__errno_d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_chain_wallet
call fcn.140052d40
mov eax, 0xfffffffe
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx edx, byte [r9 + 0xa]
shl edx, 0x18
add eax, edx
movzx edx, byte [r9 + 9]
shl edx, 0x10
add eax, edx
movzx edx, byte [r9 + 8]
shl edx, 8
add eax, edx
movzx edx, byte [r9 + 7]
shl edx, 0x18
add ecx, edx
movzx edx, byte [r9 + 6]
shl edx, 0x10
add ecx, edx
movzx edx, byte [r9 + 5]
shl edx, 8
add ecx, edx
movzx edx, byte [r9 + 4]
add ecx, edx
movzx edx, byte [r9 + 3]
shl edx, 0x18
add ebx, edx
movzx edx, byte [r9 + 2]
shl edx, 0x10
add ebx, edx
movzx edx, byte [r9 + 1]
shl edx, 8
add ebx, edx
movzx edx, byte [r9]
add ebx, edx
lea edx, [rax + rcx]
sub ecx, eax
sub ebx, edx
mov edx, eax
shr edx, 0xd
xor edx, ebx
mov r9d, edx
sub ecx, edx
sub eax, edx
shl r9d, 8
xor r9d, ecx
mov ecx, r9d
sub eax, r9d
sub edx, r9d
shr ecx, 0xd
xor eax, ecx
mov ecx, eax
sub edx, eax
sub r9d, eax
shr ecx, 0xc
xor ecx, edx
mov edx, ecx
sub r9d, ecx
sub eax, ecx
shl edx, 0x10
xor edx, r9d
sub eax, edx
sub ecx, edx
mov r9d, eax
mov eax, edx
shr eax, 5
xor eax, r9d
mov r9d, eax
sub ecx, eax
sub edx, eax
shr r9d, 3
xor ecx, r9d
mov r15d, ecx
sub edx, ecx
sub eax, ecx
shl r15d, 0xa
xor r15d, edx
mov rdx, qword [r11 + 0x98]
sub eax, r15d
shr r15d, 0xf
xor r15d, eax
mov eax, dword [rdx + 8]
sub eax, 1
and eax, r15d
shl rax, 4
add rax, qword [rdx]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400a54c8
mov rax, qword [rdx + 0x20]
mov r8d, r8d
mov r12, rax
sub rbx, rax
neg r12
jmp 0x1400a563b
mov rbx, qword [rbx + 0xb8]
test rbx, rbx
je 0x1400a54c8
add rbx, r12
cmp dword [rbx + 0xcc], r15d
jne 0x1400a5628
cmp dword [rbx + 0xc8], r14d
jne 0x1400a5628
mov rcx, qword [rbx + 0xc0]
mov rdx, rsi
mov qword [rsp + 0x48], r8
call sub.msvcrt.dll_memcmp
mov r8, qword [rsp + 0x48]
test eax, eax
jne 0x1400a5628
mov rax, qword [rbx + 0x88]
cmp qword [rsp + 0x50], rax
jg 0x1400a5478
movzx r8d, word [rbx + 0x44]
test r8w, r8w
je 0x1400a54c8
mov qword [rdi], r8
mov rcx, qword [rbp + 0x20]
lea rdx, [rbx + 0x46]
call sub.msvcrt.dll_memcpy
mov rcx, r13
call fcn.140030f90
test eax, eax
je 0x1400a54ff
mov dword [rsp + 0x28], eax
lea rax, str.Error_locking_Wallet_table__errno_d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_chain_wallet
call fcn.140052d40
xor eax, eax
jmp 0x1400a54ff
mov r10d, eax
mov ecx, 0x9e3779b9
mov ebx, 0x9e3779b9
mov r15d, 0xfeedbeef
jmp 0x1400a5456
mov dword [rsp + 0x28], eax
lea rax, str.Error_locking_Wallet_table__errno_d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_chain_wallet
call fcn.140052d40
mov eax, ebx
neg eax
jmp 0x1400a54ff
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], eax
lea rax, str.Wallets_buffer_for_password_is_too_small___d____d_
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.dap_chain_wallet
call fcn.140052d40
mov eax, 0xffffffea
jmp 0x1400a54ff
mov dword [rsp + 0x30], 0x40
lea rax, str.Wallets_name_is_too_long___d____d_
mov dword [rsp + 0x28], edx
jmp 0x1400a5742