Function at 0x1400839b0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r13
push r14
mov eax, 0x40
call fcn.1400a59c0
sub rsp, rax
xor ebp, ebp
movsxd rdi, r9d
mov r14, r8
mov rsi, rcx
mov r13d, ebp
cmp edi, 0xa
jge 0x140083a08
lea r9, [0x1401150e8]
mov dword [rsp + 0x20], 0x78
lea edx, [rax + 0x32]
lea ecx, [rax - 0x3c]
lea r8d, [rax + 0x2f]
call fcn.140038ac0
or eax, 0xffffffff
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x70], rbx
lea rdx, [0x140115100]
mov qword [rsp + 0x88], r15
mov r8d, 0x7c
mov r15d, dword [rsp + 0x90]
mov ecx, r15d
call fcn.140037280
mov rbx, rax
test rax, rax
jne 0x140083a60
lea r9, [0x140115118]
mov dword [rsp + 0x20], 0x7e
lea edx, [rax + 0x72]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
call fcn.140038ac0
or eax, 0xffffffff
jmp 0x140083cdb
movsxd rax, r15d
add r14, rdi
add rbx, rax
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x30], rax
test r15d, r15d
jle 0x140083ab1
mov rdx, r15
nop
mov eax, edi
lea ecx, [rdi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec rbx
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edi, eax
mov eax, ecx
and eax, 1
sub r14, rax
movzx eax, byte [r14]
and al, cl
mov byte [rbx], al
sub rdx, 1
jne 0x140083a80
movzx ecx, byte [rbx]
mov r10d, 2
movzx eax, byte [rbx + 1]
mov r9d, ebp
xor eax, 2
mov r11d, ebp
lea edi, [rax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
lea eax, [rcx - 1]
shr eax, 0x1f
neg edi
not ecx
shr ecx, 0x1f
and eax, ecx
neg eax
and edi, eax
mov r12d, edi
not r12d
cmp r15d, r10d
jle 0x140083b62
or eax, 0xffffffff
lea r14, [rbx + 2]
nop dword [rax]
movzx r8d, byte [r14]
lea r14, [r14 + 1]
mov ecx, r8d
not ecx
shr ecx, 0x1f
lea edx, [r8 - 1]
xor r8d, 3
shr edx, 0x1f
and edx, ecx
neg edx
and eax, edx
or r9d, edx
mov ecx, eax
lea edx, [r8 - 1]
and eax, r10d
shr edx, 0x1f
not ecx
not r8d
and r13d, ecx
shr r8d, 0x1f
or r13d, eax
and edx, r8d
neg edx
mov eax, r9d
or edx, r9d
not eax
mov ecx, eax
inc r10d
and ecx, 1
add ecx, r11d
mov r11d, edx
and r11d, ecx
cmp r10d, r15d
jl 0x140083b00
mov r14d, dword [rsp + 0x78]
lea r10d, [r13 + 1]
lea eax, [r13 - 0xa]
or eax, r13d
xor eax, r13d
shr eax, 0x1f
dec eax
and edi, eax
lea eax, [r11 - 8]
or eax, r11d
mov r9d, edi
xor eax, r11d
or r9d, r12d
shr eax, 0x1f
and r12d, r9d
neg eax
and r12d, 0x6b
mov ecx, edi
not r9d
and edi, eax
not ecx
and r9d, 0x71
mov r8d, edi
or r8d, ecx
or r12d, r9d
and r12d, r8d
mov eax, r15d
sub eax, r10d
mov edx, edi
mov ecx, r14d
not r8d
sub ecx, eax
and r8d, 0x73
xor ecx, eax
or r12d, r8d
xor eax, r14d
not edx
or ecx, eax
xor ecx, r14d
shr ecx, 0x1f
dec ecx
and edi, ecx
mov ecx, r15d
sub ecx, r14d
and r10d, edi
xor ecx, r14d
mov eax, edi
or eax, edx
mov r13d, edi
and r12d, eax
not r13d
not eax
mov r9d, edi
and eax, 0x6d
or r12d, eax
mov eax, r14d
xor eax, r15d
or ecx, eax
mov eax, r15d
xor ecx, r15d
shr ecx, 0x1f
neg ecx
mov r11d, ecx
and ecx, r15d
not r11d
and r11d, r14d
or r11d, ecx
sub eax, r11d
and eax, r13d
or eax, r10d
movsxd r10, eax
sub r15d, eax
add r10, rbx
test r11d, r11d
jle 0x140083c8d
mov r14, rsi
neg r14
nop
mov eax, ebp
inc ebp
xor eax, r15d
lea ecx, [rax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, r11d
neg ecx
mov edx, ecx
and rcx, rax
sub r10, rcx
lea rax, [r14 + rsi]
xor edx, r9d
lea rsi, [rsi + 1]
and r9d, edx
movzx r8d, r9b
movzx ecx, byte [rax + r10]
and cl, r8b
not r8b
and r8b, byte [rsi - 1]
or cl, r8b
mov byte [rsi - 1], cl
cmp ebp, r11d
jl 0x140083c40
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140004400
mov rcx, rbx
call fcn.1400371e0
mov edx, 0x72
mov dword [rsp + 0x20], 0xd5
lea r9, str..crypto_rsa_rsa_ssl.c
mov r8d, r12d
lea ecx, [rdx - 0x6e]
call fcn.140038ac0
mov ecx, edi
and ecx, 1
call fcn.140038c30
mov r12, qword [rsp + 0x80]
and edi, r15d
or edi, r13d
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret