Function at 0x140050830
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov r14, r8
mov qword [rsp + 0x28], rcx
mov ecx, dword [r8 + 8]
test ecx, ecx
jle 0x1400510b3
mov rax, qword [r14]
mov r8d, ecx
mov ecx, r8d
mov dil, 1
cmp qword [rax + rcx*8 - 8], 0
je 0x140051182
mov ecx, r8d
movsxd rax, dword [r13 + 8]
test rax, rax
jle 0x1400510f3
mov r10, qword [r13]
mov r11d, eax
mov r8d, r11d
mov r9b, 1
cmp qword [r10 + r8*8 - 8], 0
je 0x14005119f
mov r8d, r11d
test dil, dil
je 0x1400508b1
mov r10, qword [r14]
mov ecx, ecx
cmp qword [r10 + rcx*8 - 8], 0
je 0x140051137
test r9b, r9b
je 0x1400508c9
mov rcx, qword [r13]
mov r8d, r8d
cmp qword [rcx + r8*8 - 8], 0
je 0x140051137
test eax, eax
je 0x140050f45
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [r13]
xor r9d, r9d
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rax, r9
jne 0x1400508e3
test r8, r8
je 0x140050f45
mov qword [rsp + 0x50], rdx
cmp byte [rbx + 0x28], 0
jne 0x140050921
mov rcx, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x20]
cmp rcx, qword [rbx + 0x18]
je 0x140050ed8
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], rsi
inc qword [rbx + 0x10]
mov rcx, rbx
call fcn.140050720
mov qword [rsp + 0x38], rax
mov rcx, rbx
call fcn.140050720
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.140050720
mov rsi, rax
cmp qword [rsp + 0x28], 0
jne 0x14005095b
mov rcx, rbx
call fcn.140050720
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140051045
cmp qword [rsp + 0x28], 0
je 0x140051045
mov ecx, dword [r13 + 8]
test ecx, ecx
jle 0x140050ffb
mov rax, qword [r13]
mov edx, ecx
cmp qword [rax + rdx*8 - 8], 0
je 0x140050c10
movsxd rdx, ecx
shl ecx, 6
mov rdx, qword [rax + rdx*8 - 8]
xor eax, eax
test rdx, rdx
setne al
or eax, ecx
xor ecx, ecx
mov r8, rdx
shr r8, 0x20
cmove r8, rdx
setne cl
shl ecx, 5
mov r9, r8
shr r9, 0x10
xor edx, edx
cmp r8, 0x10000
cmovb r9, r8
setae dl
shl edx, 4
mov r10, r9
shr r10, 8
xor r8d, r8d
cmp r9, 0x100
cmovb r10, r9
setae r8b
mov r9, r10
shr r9, 4
xor r11d, r11d
cmp r10, 0x10
setae r11b
cmovb r9, r10
mov r10, r9
shr r10, 2
xor esi, esi
cmp r9, 4
setae sil
cmovb r10, r9
or ecx, eax
or ecx, edx
cmp r10, 2
lea eax, [rcx + r8*8]
lea eax, [rax + r11*4]
lea esi, [rax + rsi*2]
sbb esi, 0xffffffff
add esi, 0xffffffc0
mov rcx, qword [rsp + 0x30]
and esi, 0x3f
mov r8d, 0x40
sub r8d, esi
mov rdx, r13
int3
lea edx, [rcx - 1]
cmp ecx, 1
mov ecx, edx
jg 0x140050985
jmp 0x140050ff4
mov rax, qword [r8 + 8]
mov rcx, qword [r8 + 0x10]
lea rdx, [rcx - 1]
mov qword [r8 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r8 + 0x20], rax
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x1400510e8
mov rax, rdi
shr rax, 0x3d
jne 0x1400510e8
lea rdx, [rdi*8]
mov rcx, qword [rbx + 8]
int3
mov dword [rsp + 0x20], 0xd9
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
int3
xor esi, esi
jmp 0x140050a32
je 0x140050ff4
mov rax, qword [r13]
jmp 0x140050993
xor esi, esi
mov rax, qword [rsp + 0xe0]
cmp byte [rax + 0x28], 0
jne 0x140050ec5
mov r8, qword [rsp + 0xe0]
jmp 0x140050eac
xor edi, edi
jmp 0x140050872
mov word [rbx + 0x28], 0x101
jmp 0x140050921
xor r9d, r9d
mov r8d, eax
jmp 0x14005089b
mov dword [rsp + 0x20], 0xd4
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6f
jmp 0x140050f63
lea r9d, [r8 - 1]
xor ecx, ecx
mov edi, 0
cmp r8d, 1
mov r8d, r9d
jg 0x14005085d
jmp 0x140050872
lea esi, [r11 - 1]
xor r8d, r8d
mov r9d, 0
cmp r11d, 1
mov r11d, esi
jg 0x140050886
jmp 0x14005089b