Function at 0x140092940
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, r9
mov r13, rdx
mov r14, rcx
mov r12, qword [rsp + 0xf0]
mov qword [rsp + 0x38], r8
mov ecx, dword [r8 + 8]
mov ebp, ecx
sar ebp, 0x1f
and ebp, ecx
mov r8d, ecx
test ecx, ecx
jle 0x140092996
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
lea rax, [rcx - 1]
cmp qword [rbx + rcx*8 - 8], 0
mov rcx, rax
je 0x140092974
inc eax
mov ebp, eax
mov esi, dword [r15 + 8]
mov ecx, esi
sar ecx, 0x1f
and ecx, esi
mov rbx, rsi
mov edi, ebx
test ebx, ebx
jle 0x1400929c0
mov rdx, qword [r15]
lea rax, [rbx - 1]
cmp qword [rdx + rbx*8 - 8], 0
mov rbx, rax
je 0x1400929a4
inc eax
mov ecx, eax
test r8d, r8d
jle 0x1400929da
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
dec ebp
cmp qword [rax + rbp*8], 0
je 0x14009311a
test edi, edi
jle 0x1400929ee
mov rax, qword [r15]
dec ecx
cmp qword [rax + rcx*8], 0
je 0x14009311a
test rsi, rsi
je 0x140093037
mov rax, qword [r15]
movsxd rcx, esi
xor edx, edx
xor ebx, ebx
or rbx, qword [rax + rdx*8]
inc rdx
cmp rcx, rdx
jne 0x140092a01
test rbx, rbx
je 0x140093037
cmp byte [r12 + 0x28], 0
jne 0x140092a41
mov rcx, qword [r12 + 0x10]
mov rsi, qword [r12 + 0x20]
cmp rcx, qword [r12 + 0x18]
je 0x140092fdf
mov rax, qword [r12 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r12 + 0x10]
mov rcx, r12
call fcn.1400927e0
mov qword [rsp + 0x60], rax
mov rcx, r12
call fcn.1400927e0
mov rsi, rax
mov rcx, r12
call fcn.1400927e0
mov qword [rsp + 0x30], rax
test r14, r14
jne 0x140092a76
mov rcx, r12
call fcn.1400927e0
mov r14, rax
cmp qword [rsp + 0x30], 0
je 0x1400931b6
test r14, r14
je 0x1400931b6
mov ecx, dword [r15 + 8]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], rsi
test ecx, ecx
jle 0x1400931d3
mov rax, qword [r15]
lea rdx, [rcx - 1]
cmp qword [rax + rcx*8 - 8], 0
mov rcx, rdx
je 0x140092a99
inc edx
mov ecx, edx
movsxd rdx, ecx
shl ecx, 6
mov rbp, qword [rax + rdx*8 - 8]
xor eax, eax
test rbp, rbp
setne al
or eax, ecx
xor ecx, ecx
mov rdx, rbp
shr rdx, 0x20
cmove rdx, rbp
setne cl
shl ecx, 5
mov rdi, rdx
shr rdi, 0x10
xor ebp, ebp
cmp rdx, 0x10000
cmovb rdi, rdx
setae bpl
shl ebp, 4
mov rdx, rdi
shr rdx, 8
xor r8d, r8d
cmp rdi, 0x100
cmovb rdx, rdi
setae r8b
mov rdi, rdx
shr rdi, 4
xor esi, esi
cmp rdx, 0x10
setae sil
cmovb rdi, rdx
mov rdx, rdi
shr rdx, 2
xor ebx, ebx
cmp rdi, 4
setae bl
cmovb rdx, rdi
add ebx, ebx
or ecx, eax
or ecx, ebp
lea eax, [rcx + r8*8]
lea esi, [rax + rsi*4]
add esi, 0xffffffc0
or esi, ebx
cmp rdx, 2
sbb esi, 0xffffffff
and esi, 0x3f
mov r8d, 0x40
sub r8d, esi
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call fcn.140172f80
test eax, eax
mov rbx, qword [rsp + 0x50]
je 0x1400931b6
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rbp, qword [rsp + 0x30]
test eax, eax
jle 0x1400931e3
mov rdx, qword [rbp]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x140092b88
inc ecx
mov dword [rbp + 8], ecx
mov dword [rbp + 0x10], 0
mov r8d, 0x80
sub r8d, esi
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x74], r8d
call fcn.140172f80
test eax, eax
je 0x1400931b6
mov ecx, dword [rbx + 8]
test ecx, ecx
jle 0x1400931ff
mov rdx, qword [rbx]
lea rax, [rcx - 1]
cmp qword [rdx + rcx*8 - 8], 0
mov rcx, rax
je 0x140092bd5
inc eax
mov dword [rbx + 8], eax
mov dword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 8]
lea ecx, [rdx + 1]
cmp ecx, eax
jge 0x14009321d
lea esi, [rax + 1]
cmp dword [rbx + 0xc], esi
jb 0x140092ec3
mov rdi, qword [rbx]
cdqe
mov qword [rdi + rax*8], 0
mov edi, dword [rbx + 8]
inc edi
mov dword [rbx + 8], edi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 8]
mov esi, edi
sub esi, ecx
mov rax, qword [rax]
cmp rcx, 1
mov qword [rsp + 0x78], r13
je 0x140093269
mov rdx, qword [rax + rcx*8 - 0x10]
mov qword [rsp + 0x68], rdx
mov r14, qword [rbx]
mov qword [rsp + 0x58], rcx
mov r13, qword [rax + rcx*8 - 8]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 0x10]
mov eax, dword [r15 + 0x10]
xor eax, ecx
mov rbp, qword [rsp + 0x40]
mov dword [rbp + 0x10], eax
lea ebx, [rsi + 1]
cmp dword [rbp + 0xc], ebx
mov dword [rsp + 0x70], ecx
jb 0x140092f14
mov r15, qword [rbp]
lea edx, [rsi - 1]
mov dword [rbp + 8], edx
mov rax, qword [rsp + 0x58]
lea rbx, [rax + 1]
mov eax, edx
mov rcx, qword [rsp + 0x60]
mov rbp, rbx
mov qword [rsp + 0x38], rbx
cmp dword [rcx + 0xc], ebx
mov dword [rsp + 0x4c], edx
jb 0x140092f6e
movsxd rcx, edx
lea rbx, [r15 + rcx*8]
test eax, eax
je 0x140093270
add rbx, 0xfffffffffffffff8
cmp esi, 2
jl 0x140092de6
movsxd rax, esi
movsxd rcx, edi
lea r12, [r14 + rax*8]
lea rsi, [r14 + rcx*8]
add rsi, 0xfffffffffffffff8
xor r14d, r14d
mov r15, qword [rsp + 0x58]
mov rdx, qword [rsi]
cmp rdx, r13
je 0x1400930b3
mov rax, qword [rsi - 8]
mov qword [rsp + 0x80], r13
div qword [rsp + 0x80]
mov rbp, rdx
mov rdi, rax
mul qword [rsp + 0x68]
mov r9, qword [rsi - 0x10]
cmp r9, rax
mov rcx, rbp
sbb rcx, rdx
jb 0x140092dad
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rbp]
mov r8, r15
mov r9, rdi
call fcn.140172b30
add r12, 0xfffffffffffffff8
mov rcx, qword [rbp]
mov qword [rcx + r15*8], rax
mov rcx, qword [rsp + 0x38]
test ecx, ecx
je 0x140092d92
mov rax, qword [rbp]
xor edx, edx
sub rbp, rbp
jmp 0x140092d70
mov rbp, qword [r12 + rdx*8]
sbb rbp, qword [rax + rdx*8]
mov qword [r12 + rdx*8], rbp
lea rdx, [rdx + 1]
dec rcx
jne 0x140092d70
sbb rbp, rbp
test bpl, 1
jne 0x1400930bf
mov qword [rbx], rdi
inc r14d
add rsi, 0xfffffffffffffff8
add rbx, 0xfffffffffffffff8
cmp r14d, dword [rsp + 0x4c]
jne 0x140092cf1
jmp 0x140092de6
add rbp, r13
dec rdi
mov r8, rdi
mov rdi, r8
cmp rbp, r13
jb 0x140092d2f
sub rax, qword [rsp + 0x68]
sbb rdx, 0
mov rcx, rbp
add rcx, r13
lea r8, [rdi - 1]
cmp r9, rax
sbb rbp, rdx
mov rbp, rcx
jae 0x140092d2f
jmp 0x140092db6
mov rdx, qword [rsp + 0x50]
mov eax, dword [rdx + 8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
test eax, eax
jle 0x14009309c
mov rbp, qword [rdx]
lea rcx, [rax - 1]
cmp qword [rbp + rax*8 - 8], 0
mov rax, rcx
je 0x140092e00
inc ecx
mov dword [rdx + 8], ecx
test rdi, rdi
je 0x140092e61
mov rcx, rdi
mov r8d, dword [rsp + 0x74]
call fcn.1400932b0
test eax, eax
je 0x1400931b6
movsxd rax, dword [rdi + 8]
test rax, rax
je 0x140092e61
mov rcx, qword [rdi]
xor edx, edx
xor ebp, ebp
or rbp, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x140092e49
test rbp, rbp
je 0x140092e61
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x10], eax
mov eax, dword [rsi + 8]
test eax, eax
jle 0x14009313d
mov rdx, qword [rsi]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x140092e64
inc ecx
mov dword [rsi + 8], ecx
mov esi, 1
cmp byte [r12 + 0x28], 0
jne 0x140092ead
mov rax, qword [r12 + 8]
mov rcx, qword [r12 + 0x10]
lea rdx, [rcx - 1]
mov qword [r12 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r12 + 0x20], rax
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp esi, 0x800000
jae 0x140093159
test byte [rbx + 0x14], 2
jne 0x140093177
movsxd rcx, esi
shl rcx, 3
call fcn.14018af30
test rax, rax
je 0x140093195
mov rdi, rax
movsxd r8, dword [rbx + 8]
test r8, r8
jne 0x14009305f
mov rcx, qword [rbx]
call fcn.14018af70
mov qword [rbx], rdi
mov dword [rbx + 0xc], esi
mov eax, dword [rbx + 8]
jmp 0x140092c1e
cmp ebx, 0x800000
jae 0x140093159
mov rax, qword [rsp + 0x40]
test byte [rax + 0x14], 2
jne 0x140093177
movsxd rcx, ebx
shl rcx, 3
call fcn.14018af30
test rax, rax
je 0x140093195
mov r15, rax
mov rbp, qword [rsp + 0x40]
movsxd r8, dword [rbp + 8]
test r8, r8
jne 0x140093073
mov rcx, qword [rbp]
call fcn.14018af70
mov qword [rbp], r15
mov dword [rbp + 0xc], ebx
jmp 0x140092c90
cmp dword [rsp + 0x38], 0x800000
jae 0x140093159
mov rax, qword [rsp + 0x60]
test byte [rax + 0x14], 2
jne 0x140093177
mov rax, qword [rsp + 0x38]
lea rcx, [rax*8]
call fcn.14018af30
test rax, rax
je 0x140093195
mov rbp, rax
mov rbx, qword [rsp + 0x60]
movsxd r8, dword [rbx + 8]
test r8, r8
jne 0x140093088
mov rcx, qword [rbx]
call fcn.14018af70
mov qword [rbx], rbp
mov rax, qword [rsp + 0x38]
mov dword [rbx + 0xc], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov edx, dword [rsp + 0x4c]
jmp 0x140092cbb
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x140093281
mov rax, rdi
shr rax, 0x3d
jne 0x140093281
lea rdx, [rdi*8]
mov rcx, qword [r12 + 8]
call fcn.14018afc0
test rax, rax
je 0x140093281
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rdi
mov rcx, qword [r12 + 0x10]
jmp 0x140092a38
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
call fcn.140299620
jmp 0x140092ead
shl r8, 3
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1401bcb50
jmp 0x140092efe
shl r8, 3
mov rdx, qword [rbp]
mov rcx, r15
call fcn.1401bcb50
jmp 0x140092f59
shl r8, 3
mov rdx, qword [rbx]
mov rcx, rbp
call fcn.1401bcb50
jmp 0x140092fbb
mov dword [rdx + 8], eax
test eax, eax
jne 0x140092e1f
mov dword [rdx + 0x10], 0
jmp 0x140092e1f
mov rdi, 0xffffffffffffffff
jmp 0x140092d2f
dec rdi
cmp dword [rsp + 0x58], 0
je 0x140092d92
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x58]
sub rbp, rbp
jmp 0x1400930f0
mov rbp, qword [r12 + rdx*8]
adc rbp, qword [rax + rdx*8]
mov qword [r12 + rdx*8], rbp
lea rdx, [rdx + 1]
dec rcx
jne 0x1400930f0
sbb rbp, rbp
test bpl, 1
je 0x140092d92
inc qword [rsi]
jmp 0x140092d92
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 0x140093055
mov dword [rsi + 8], eax
test eax, eax
jne 0x140092e83
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0
jmp 0x140092e83
mov dword [rsp + 0x20], 0x15c
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x1400931b1
mov dword [rsp + 0x20], 0x161
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x6a
jmp 0x1400931b1
mov dword [rsp + 0x20], 0x167
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x41
call fcn.140299620
xor esi, esi
cmp byte [r12 + 0x28], 0
jne 0x140092ead
mov rax, r12
mov rbp, r12
mov rax, qword [rax + 8]
jmp 0x140092e95
test ecx, ecx
je 0x14009329a
mov rax, qword [r15]
jmp 0x140092ab7
mov rbp, qword [rsp + 0x30]
mov dword [rbp + 8], eax
test eax, eax
jne 0x140092ba8
mov dword [rbp + 0x10], 0
jmp 0x140092ba8
mov dword [rbx + 8], ecx
test ecx, ecx
jne 0x14009328e
mov rbx, qword [rsp + 0x50]
mov dword [rbx + 0x10], 0
mov eax, ecx
jmp 0x140092bf4
add rdx, 2
mov rcx, rbx
call fcn.140230170
test eax, eax
je 0x1400931b6
movsxd rax, dword [rbx + 8]
mov rcx, qword [rsp + 0x30]
mov edi, dword [rcx + 8]
add edi, 2
cmp eax, edi
jge 0x140092c2d
mov rcx, qword [rbx]
mov qword [rcx + rax*8], 0
inc rax
mov rcx, qword [rsp + 0x30]
movsxd rdi, dword [rcx + 8]
add rdi, 2
cmp rax, rdi
jl 0x140093244
jmp 0x140092c2d
xor edx, edx
jmp 0x140092c54
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0
jmp 0x140092cce
mov word [r12 + 0x28], 0x101
jmp 0x140092a41
mov eax, ecx
mov rbx, qword [rsp + 0x50]
jmp 0x140092bf4
xor esi, esi
jmp 0x140092b55