Function at 0x1400bb570
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
mov rsi, rdx
push rbx
sub rsp, 0x58
cmp rdx, 0x40
jg 0x1400bb99a
lea r12, [0x14022f010]
mov rbx, rcx
mov rcx, r12
call fcn.140031050
mov r14d, eax
test eax, eax
jne 0x1400bb900
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r11, qword [0x1403ee208]
mov r8, rax
mov edi, eax
test r11, r11
je 0x1400bb87b
mov r9, rbx
cmp eax, 0xb
jbe 0x1400bb982
mov r10d, eax
mov r13d, 0x9e3779b9
mov ebp, 0x9e3779b9
mov ecx, 0xfeedbeef
nop word cs:[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, r13d
movzx r13d, byte [r9 + 0xa]
shl eax, 8
shl r13d, 0x10
add eax, r13d
movzx r13d, byte [r9 + 8]
add eax, r13d
movzx r13d, byte [r9 + 0xb]
shl r13d, 0x18
add eax, r13d
movzx r13d, byte [r9 + 2]
add eax, ecx
movzx ecx, byte [r9 + 1]
shl r13d, 0x10
shl ecx, 8
add ecx, r13d
movzx r13d, byte [r9]
add ecx, r13d
movzx r13d, byte [r9 + 3]
shl r13d, 0x18
add ecx, r13d
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, ebp
mov ebp, eax
shr ebp, 0xd
xor ecx, ebp
sub edx, ecx
sub eax, ecx
mov ebp, edx
mov edx, ecx
shl edx, 8
xor edx, ebp
sub eax, edx
mov ebp, eax
mov eax, edx
shr eax, 0xd
xor eax, ebp
sub ecx, edx
sub r10d, 0xc
add r9, 0xc
sub ecx, eax
sub edx, eax
mov ebp, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, ebp
sub edx, ecx
sub eax, ecx
mov ebp, edx
mov edx, ecx
shl edx, 0x10
xor edx, ebp
sub eax, edx
sub ecx, edx
mov ebp, eax
mov eax, edx
shr eax, 5
xor eax, ebp
mov ebp, eax
sub ecx, eax
sub edx, eax
shr ebp, 3
xor ebp, ecx
mov r13d, ebp
sub edx, ebp
sub eax, ebp
shl r13d, 0xa
xor r13d, edx
mov ecx, r13d
sub eax, r13d
shr ecx, 0xf
xor ecx, eax
cmp r10d, 0xb
ja 0x1400bb5f0
add ecx, r8d
cmp r10d, 0xb
ja case.0x1400bb704.0
lea rdx, [0x140280a90]
movsxd rax, dword [rdx + r10*4]
add rax, rdx
jmp rax
movzx eax, byte [r9 + 0xa]
shl eax, 0x18
add ecx, eax
movzx eax, byte [r9 + 9]
shl eax, 0x10
add ecx, eax
movzx eax, byte [r9 + 8]
shl eax, 8
add ecx, eax
movzx eax, byte [r9 + 7]
shl eax, 0x18
add r13d, eax
movzx eax, byte [r9 + 6]
shl eax, 0x10
add r13d, eax
movzx eax, byte [r9 + 5]
shl eax, 8
add r13d, eax
movzx eax, byte [r9 + 4]
add r13d, eax
movzx eax, byte [r9 + 3]
shl eax, 0x18
add ebp, eax
movzx eax, byte [r9 + 2]
shl eax, 0x10
add ebp, eax
movzx eax, byte [r9 + 1]
shl eax, 8
add ebp, eax
movzx eax, byte [r9]
add ebp, eax
lea eax, [rcx + r13]
sub r13d, ecx
sub ebp, eax
mov eax, ecx
shr eax, 0xd
xor eax, ebp
mov edx, eax
sub r13d, eax
sub ecx, eax
shl edx, 8
xor edx, r13d
sub ecx, edx
sub eax, edx
mov r9d, ecx
mov ecx, edx
shr ecx, 0xd
xor ecx, r9d
sub eax, ecx
sub edx, ecx
mov r9d, eax
mov eax, ecx
shr eax, 0xc
xor eax, r9d
sub edx, eax
sub ecx, eax
mov r9d, edx
mov edx, eax
shl edx, 0x10
xor edx, r9d
mov r9d, edx
sub ecx, edx
sub eax, edx
shr r9d, 5
xor ecx, r9d
mov r9d, eax
mov eax, ecx
sub r9d, ecx
sub edx, ecx
shr eax, 3
xor r9d, eax
mov eax, ecx
mov r13d, r9d
sub edx, r9d
sub eax, r9d
shl r13d, 0xa
xor r13d, edx
mov rdx, qword [r11 + 0x98]
sub eax, r13d
shr r13d, 0xf
xor r13d, eax
mov eax, dword [rdx + 8]
sub eax, 1
and eax, r13d
shl rax, 4
add rax, qword [rdx]
mov rbp, qword [rax]
test rbp, rbp
je 0x1400bb87b
mov rax, qword [rdx + 0x20]
mov r8d, r8d
mov r15, rax
sub rbp, rax
neg r15
jmp 0x1400bb83f
mov rbp, qword [rbp + 0xb8]
test rbp, rbp
je 0x1400bb87b
add rbp, r15
cmp dword [rbp + 0xcc], r13d
jne 0x1400bb830
cmp dword [rbp + 0xc8], edi
jne 0x1400bb830
mov rcx, qword [rbp + 0xc0]
mov rdx, rbx
mov qword [rsp + 0x48], r8
call sub.msvcrt.dll_memcmp
mov r8, qword [rsp + 0x48]
test eax, eax
mov r14d, eax
jne 0x1400bb830
cmp word [rbp + 0x44], 0
jne 0x1400bb930
lea rax, str.The_Wallet__.s_is_not_active
mov qword [rsp + 0x30], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov r9d, 5
lea r8, str.dap_chain_wallet
mov r14d, 0xfffffff0
mov qword [rsp + 0x20], rax
call fcn.14005a160
mov rcx, r12
call fcn.140030f90
test eax, eax
jne 0x1400bb8d0
add rsp, 0x58
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x28], eax
lea rax, str.Error_unlocking_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.14005a160
jmp 0x1400bb8b8
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
neg r14d
call fcn.14005a160
jmp 0x1400bb8b8
xor eax, eax
mov qword [rbp + 0x46], 0
mov word [rbp + 0x44], ax
mov qword [rbp + 0x4e], 0
mov qword [rbp + 0x56], 0
mov qword [rbp + 0x5e], 0
mov qword [rbp + 0x66], 0
mov qword [rbp + 0x6e], 0
mov qword [rbp + 0x76], 0
mov qword [rbp + 0x7e], 0
mov byte [rbp + 0x86], 0
jmp 0x1400bb8ac
mov r10d, eax
mov r13d, 0x9e3779b9
mov ebp, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x1400bb6ed
lea rax, str.Wallets_name_is_too_long___d____d_
mov dword [rsp + 0x28], edx
xor ecx, ecx
mov r9d, 7
mov dword [rsp + 0x30], 0x40
lea r8, str.dap_chain_wallet
xor edx, edx
mov r14d, 0xffffffea
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400bb8b8