Function at 0x1400f6070
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movsxd rax, dword [r9 + 8]
test rax, rax
je 0x1400f65f8
mov rdi, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
mov r14, qword [rsp + 0xc0]
mov rcx, qword [r9]
xor edx, edx
xor r8d, r8d
or r8, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x1400f60a9
test r8, r8
je 0x1400f65f8
cmp byte [r14 + 0x28], 0
jne 0x1400f60e3
mov rcx, qword [r14 + 0x10]
mov rsi, qword [r14 + 0x20]
cmp rcx, qword [r14 + 0x18]
je 0x1400f657b
mov rax, qword [r14 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r14 + 0x10]
mov qword [rsp + 0x48], r15
mov rcx, r14
call fcn.1400f5f60
mov r15, rax
mov rcx, r14
call fcn.1400f5f60
mov r12, rax
mov rcx, r14
call fcn.1400f5f60
mov qword [rsp + 0x30], rax
test rbp, rbp
jne 0x1400f611b
mov rcx, r14
call fcn.1400f5f60
mov rbp, rax
mov qword [rsp + 0x28], rbp
test r15, r15
mov rbp, qword [rsp + 0x30]
je 0x1400f66e6
test r12, r12
je 0x1400f66e6
test rbp, rbp
je 0x1400f66e6
cmp qword [rsp + 0x28], 0
je 0x1400f66e6
mov ecx, dword [rdi + 8]
test ecx, ecx
jle 0x1400f671a
mov rax, qword [rdi]
mov edx, ecx
cmp qword [rax + rdx*8 - 8], 0
je 0x1400f6360
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 eax, [rax + rsi*2]
sbb eax, 0xffffffff
add eax, 0xffffffc0
and eax, 0x3f
mov r8d, 0x40
sub r8d, eax
mov rcx, rbp
mov rdx, rdi
mov dword [rsp + 0x3c], r8d
call fcn.14014f2c0
test eax, eax
je 0x1400f66e6
mov rcx, r12
mov rdx, r13
mov r8d, dword [rsp + 0x3c]
call fcn.14014f2c0
test eax, eax
je 0x1400f66e6
mov eax, dword [rbp + 8]
test eax, eax
jle 0x1400f66ff
mov rcx, qword [rbp]
mov edx, eax
cmp qword [rcx + rdx*8 - 8], 0
je 0x1400f6773
mov dword [rbp + 8], eax
mov esi, dword [r12 + 8]
test esi, esi
jle 0x1400f672d
mov rax, qword [r12]
mov ecx, esi
cmp qword [rax + rcx*8 - 8], 0
je 0x1400f6783
mov dword [r12 + 8], esi
movsxd r13, dword [rbp + 8]
mov rax, qword [rbp]
cmp r13, 1
je 0x1400f674e
mov rcx, qword [rax + r13*8 - 0x10]
mov qword [rsp + 0x40], rcx
mov rbx, qword [rax + r13*8 - 8]
cmp esi, r13d
cmovle esi, r13d
inc esi
movsxd rdx, esi
mov rcx, r12
call fcn.1400f5c60
test eax, eax
je 0x1400f66e6
mov eax, dword [rbp + 0x10]
xor eax, dword [r12 + 0x10]
sub esi, r13d
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x10], eax
cmp esi, dword [rcx + 0xc]
jbe 0x1400f633b
cmp esi, 0x800000
jae 0x1400f66a7
mov rax, qword [rsp + 0x28]
test byte [rax + 0x14], 2
jne 0x1400f66c5
movsxd rcx, esi
mov edx, 8
call fcn.140101250
test rax, rax
je 0x1400f66e6
mov rdi, rax
mov rbp, r12
mov r12, qword [rsp + 0x28]
movsxd r8, dword [r12 + 8]
test r8, r8
jne 0x1400f65cf
mov rcx, qword [r12]
call fcn.140153f70
mov qword [r12], rdi
mov dword [r12 + 0xc], esi
mov r12, rbp
lea rdi, [r13 + 1]
cmp edi, dword [r15 + 0xc]
ja 0x1400f6373
mov rbp, r12
mov rax, qword [rsp + 0x28]
mov dword [rax + 8], esi
test esi, esi
jle 0x1400f64ba
mov r14d, esi
jmp 0x1400f642f
lea edx, [rcx - 1]
cmp ecx, 1
mov ecx, edx
jg 0x1400f615a
jmp 0x1400f6687
cmp edi, 0x800000
jae 0x1400f66a7
test byte [r15 + 0x14], 2
jne 0x1400f66c5
mov edx, 8
mov rcx, rdi
call fcn.140101250
test rax, rax
je 0x1400f66e6
mov rbp, rax
movsxd r8, dword [r15 + 8]
test r8, r8
jne 0x1400f65e4
mov rcx, qword [r15]
call fcn.140153f70
mov qword [r15], rbp
mov dword [r15 + 0xc], edi
jmp 0x1400f6345
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rcx, qword [r15]
mov r8, r13
mov r9, rsi
call fcn.14014f190
mov rcx, qword [r15]
mov qword [rcx + r13*8], rax
test edi, edi
je 0x1400f6412
mov rax, qword [r15]
xor edx, edx
mov rcx, rdi
sub r8, r8
jmp 0x1400f63f0
mov r8, qword [r12 + rdx*8]
sbb r8, qword [rax + rdx*8]
mov qword [r12 + rdx*8], r8
lea rdx, [rdx + 1]
dec rcx
jne 0x1400f63f0
sbb r8, r8
test r8b, 1
jne 0x1400f6643
lea rax, [r14 - 1]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rcx + rax*8], rsi
cmp r14, 1
mov r14, rax
jle 0x1400f64ba
lea r12, [r14*8 - 8]
add r12, qword [rbp]
mov rdx, qword [r12 + r13*8]
cmp rdx, rbx
je 0x1400f6633
mov rax, qword [r12 + r13*8 - 8]
mov qword [rsp + 0x50], rbx
div qword [rsp + 0x50]
mov rsi, rax
cmp r13d, 2
jl 0x1400f63c1
mov rcx, rdx
mov r8, qword [r12 + r13*8 - 0x10]
mov rax, rsi
mul qword [rsp + 0x40]
cmp r8, rax
mov r9, rcx
sbb r9, rdx
jae 0x1400f63c1
add rcx, rbx
dec rsi
mov r9, rsi
mov rsi, r9
cmp rcx, rbx
jb 0x1400f63c1
sub rax, qword [rsp + 0x40]
sbb rdx, 0
lea r10, [rcx + rbx]
lea r9, [rsi - 1]
cmp r8, rax
sbb rcx, rdx
mov rcx, r10
jae 0x1400f63c1
jmp 0x1400f648c
mov eax, dword [rbp + 8]
test eax, eax
jle 0x1400f6793
mov r8, qword [rbp]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
mov r10d, eax
cmp qword [r8 + r10*8 - 8], 0
jne 0x1400f64f7
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x1400f64db
jmp 0x1400f6620
mov dword [rbp + 8], eax
mov eax, dword [r9 + 8]
test eax, eax
jle 0x1400f675c
mov r8, qword [r9]
mov r10d, eax
cmp qword [r8 + r10*8 - 8], 0
jne 0x1400f6525
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x1400f6509
jmp 0x1400f668e
mov dword [r9 + 8], eax
test rcx, rcx
je 0x1400f6543
mov rdx, rbp
mov r8d, dword [rsp + 0x3c]
call fcn.1400f67c0
test eax, eax
je 0x1400f66e6
mov esi, 1
cmp byte [r14 + 0x28], 0
jne 0x1400f6568
mov rax, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
lea rdx, [rcx - 1]
mov qword [r14 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r14 + 0x20], rax
mov eax, esi
add rsp, 0x58
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 ebx, 0x20
cmovne rbx, rax
cmp rbx, rcx
jbe 0x1400f6767
mov rax, rbx
shr rax, 0x3d
jne 0x1400f6767
lea rdx, [rbx*8]
mov rcx, qword [r14 + 8]
call fcn.140153fc0
test rax, rax
je 0x1400f6767
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], rbx
mov rcx, qword [r14 + 0x10]
jmp 0x1400f60db
shl r8, 3
mov rdx, qword [r12]
mov rcx, rdi
call fcn.1401a2ec0
jmp 0x1400f6326
shl r8, 3
mov rdx, qword [r15]
mov rcx, rbp
call fcn.1401a2ec0
jmp 0x1400f63b0
mov dword [rsp + 0x20], 0xbd
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c.inc
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.1401fce50
jmp 0x1400f6568
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x1400f64fa
mov rsi, 0xffffffffffffffff
jmp 0x1400f63c1
xor eax, eax
jmp 0x1400f667b
test r13d, r13d
je 0x1400f663f
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
xor r8d, r8d
mov rcx, r13
sub rax, rax
jmp 0x1400f6660
mov rax, qword [r12 + r8*8]
adc rax, qword [rdx + r8*8]
mov qword [r12 + r8*8], rax
lea r8, [r8 + 1]
dec rcx
jne 0x1400f6660
sbb rax, rax
and eax, 1
dec rsi
add qword [r12 + r13*8], rax
jmp 0x1400f6412
xor eax, eax
jmp 0x1400f6207
mov dword [r9 + 8], 0
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], 0
jmp 0x1400f6529
mov dword [rsp + 0x20], 0x163
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c.inc
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x1400f66e1
mov dword [rsp + 0x20], 0x168
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c.inc
mov ecx, 3
xor edx, edx
mov r8d, 0x6a
call fcn.1401fce50
xor esi, esi
cmp byte [r14 + 0x28], 0
jne 0x1400f6568
mov rax, r14
mov rax, qword [rax + 8]
jmp 0x1400f6553
jne 0x1400f6263
jmp 0x1400f670e
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x1400f6263
je 0x1400f67b0
mov rax, qword [rdi]
mov rbp, qword [rsp + 0x30]
jmp 0x1400f6168
jne 0x1400f6287
jmp 0x1400f673e
mov dword [r12 + 8], 0
mov dword [r12 + 0x10], 0
xor esi, esi
jmp 0x1400f6287
mov qword [rsp + 0x40], 0
jmp 0x1400f62a3
jne 0x1400f6529
jmp 0x1400f6696
mov word [r14 + 0x28], 0x101
jmp 0x1400f60e3
lea edx, [rax - 1]
cmp eax, 1
mov eax, edx
jg 0x1400f6252
jmp 0x1400f6707
lea ecx, [rsi - 1]
cmp esi, 1
mov esi, ecx
jg 0x1400f6274
jmp 0x1400f6735
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
jne 0x1400f64fa
jmp 0x1400f6627
xor eax, eax
mov rbp, qword [rsp + 0x30]
jmp 0x1400f6207