Function at 0x140066f50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
cmp dword [r8 + 0x10], 0
jne 0x140066f71
mov rbx, r9
cmp dword [r9 + 0x10], 0
je 0x140066fa9
mov dword [rsp + 0x20], 0x1cd
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor r15d, r15d
mov ecx, 3
xor edx, edx
mov r8d, WSASetLastError
call fcn.1400c18f0
mov eax, r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movsxd rax, dword [rbx + 8]
test rax, rax
je 0x14006709e
mov r14, r8
mov r15, rdx
mov r13, rcx
mov rcx, qword [rbx]
cmp eax, 4
jae 0x140066fce
xor edx, edx
xor r8d, r8d
jmp 0x140067020
mov rdx, rax
and rdx, 0xfffffffffffffffc
pxor xmm0, xmm0
xor r8d, r8d
pxor xmm1, xmm1
movdqu xmm2, xmmword [rcx + r8*8]
por xmm0, xmm2
movdqu xmm2, xmmword [rcx + r8*8 + 0x10]
por xmm1, xmm2
add r8, 4
cmp rdx, r8
jne 0x140066fe0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rdx, rax
je 0x14006702c
nop word cs:[rax + rax]
or r8, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x140067020
test r8, r8
je 0x14006709e
mov rcx, qword [rsp + 0xb8]
cmp byte [rcx + 0x28], 0
jne 0x1400670d6
mov rdx, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x20]
cmp rdx, qword [rcx + 0x18]
jne 0x1400670c2
lea rax, [rdx + rdx*2]
shr rax, 1
test rdx, rdx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rdx
jbe 0x1400670d0
mov rax, rdi
shr rax, 0x3d
jne 0x1400670d0
lea rdx, [rdi*8]
mov rcx, qword [rcx + 8]
call fcn.1400c0a10
mov rcx, qword [rsp + 0xb8]
test rax, rax
je 0x1400670d0
mov qword [rcx + 8], rax
mov qword [rcx + 0x18], rdi
mov rdx, qword [rcx + 0x10]
jmp 0x1400670c6
mov dword [rsp + 0x20], 0x1d1
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor r15d, r15d
mov ecx, 3
xor edx, edx
mov r8d, 0x69
jmp 0x140066f90
mov rax, qword [rcx + 8]
mov qword [rax + rdx*8], rsi
inc qword [rcx + 0x10]
jmp 0x1400670d6
mov word [rcx + 0x28], 0x101
test r13, r13
je 0x1400670e8
cmp r13, r14
je 0x1400670e8
mov r12, r13
cmp r13, rbx
jne 0x1400670f8
call fcn.140065eb0
mov rcx, qword [rsp + 0xb8]
mov r12, rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x30], r15
test r15, r15
je 0x14006711b
cmp qword [rsp + 0x30], r14
je 0x14006711b
mov rax, qword [rsp + 0x30]
mov r13, rax
cmp rax, rbx
jne 0x14006712b
call fcn.140065eb0
mov rcx, qword [rsp + 0xb8]
mov r13, rax
call fcn.140065eb0
mov qword [rsp + 0x38], rax
xor r15d, r15d
test r12, r12
je 0x140067474
test r13, r13
je 0x140067474
cmp qword [rsp + 0x38], 0
je 0x140067474
movsxd rdx, dword [r14 + 8]
mov rcx, r12
call fcn.140063720
test eax, eax
je 0x140067474
movsxd rdx, dword [rbx + 8]
mov rcx, r13
call fcn.140063720
test eax, eax
je 0x140067474
movsxd rdx, dword [rbx + 8]
mov rcx, qword [rsp + 0x38]
call fcn.140063720
test eax, eax
je 0x140067474
movsxd r8, dword [r14 + 8]
xor edi, edi
mov eax, 0
test r8, r8
je 0x1400671b7
shl r8, 3
mov rcx, qword [r12]
xor edx, edx
call fcn.1401615d0
mov eax, dword [r14 + 8]
mov esi, dword [rsp + 0xb0]
mov dword [r12 + 8], eax
mov dword [r12 + 0x10], 0
movsxd r8, dword [rbx + 8]
test r8, r8
je 0x1400671e7
shl r8, 3
mov rcx, qword [r13]
xor edx, edx
call fcn.1401615d0
mov edi, dword [rbx + 8]
mov dword [r13 + 8], edi
mov dword [r13 + 0x10], 0
mov eax, 0xffffffff
test esi, esi
je 0x14006722c
dec esi
shr esi, 6
movsxd rdx, dword [r14 + 8]
cmp esi, edx
cmovge esi, edx
test esi, esi
je 0x14006722c
movsxd r8, esi
shl r8, 3
mov rcx, qword [r13]
shl rdx, 3
add rdx, qword [r14]
sub rdx, r8
call fcn.140160f20
not esi
mov eax, esi
add eax, dword [r14 + 8]
js 0x14006743b
mov r8d, eax
jmp 0x14006724b
lea rax, [r8 - 1]
test r8d, r8d
mov r8, rax
jle 0x14006743b
mov eax, 0x3f
jmp 0x14006727a
not r9d
and r9d, 1
mov ecx, eax
shl r9, cl
mov rcx, qword [r12]
or qword [rcx + r8*8], r9
sub rax, 1
jb 0x14006723b
movsxd rcx, dword [rbx + 8]
test rcx, rcx
je 0x1400672b0
mov rdx, qword [r13]
xor r10d, r10d
sub r9, r9
jmp 0x140067290
mov r9, qword [rdx + r10*8]
adc r9, qword [rdx + r10*8]
mov qword [rdx + r10*8], r9
lea r10, [r10 + 1]
dec rcx
jne 0x140067290
sbb r9, r9
and r9d, 1
jmp 0x1400672b3
xor r9d, r9d
mov rcx, qword [r14]
mov rcx, qword [rcx + r8*8]
xor edx, edx
bt rcx, rax
setb dl
mov rcx, qword [r13]
or qword [rcx], rdx
movsxd rdi, dword [rbx + 8]
test rdi, rdi
je 0x140067260
mov rcx, qword [rsp + 0x38]
mov r10, qword [rcx]
mov r11, qword [r13]
mov rdx, qword [rbx]
xor esi, esi
mov rcx, rdi
sub r15, r15
jmp 0x1400672f0
mov r15, qword [r11 + rsi*8]
sbb r15, qword [rdx + rsi*8]
mov qword [r10 + rsi*8], r15
lea rsi, [rsi + 1]
dec rcx
jne 0x1400672f0
sbb r15, r15
and r15d, 1
sub r9, r15
mov rcx, r9
mov r15, r9
not r15
mov esi, 0
cmp edi, 6
jb 0x1400673c0
lea rdx, [r10 + rdi*8]
cmp r11, rdx
jae 0x14006733f
lea rdx, [r11 + rdi*8]
cmp r10, rdx
jae 0x14006733f
xor esi, esi
jmp 0x1400673c0
mov rsi, rdi
and rsi, 0xfffffffffffffffc
movq xmm0, rcx
pshufd xmm0, xmm0, 0x44
movq xmm1, r15
pshufd xmm1, xmm1, 0x44
xor edx, edx
nop dword [rax]
movdqu xmm2, xmmword [r10 + rdx*8]
movdqu xmm3, xmmword [r10 + rdx*8 + 0x10]
movdqu xmm4, xmmword [r11 + rdx*8]
movdqu xmm5, xmmword [r11 + rdx*8 + 0x10]
pand xmm4, xmm0
pand xmm5, xmm0
pand xmm2, xmm1
por xmm2, xmm4
pand xmm3, xmm1
por xmm3, xmm5
movdqu xmmword [r11 + rdx*8], xmm2
movdqu xmmword [r11 + rdx*8 + 0x10], xmm3
add rdx, 4
cmp rsi, rdx
jne 0x140067360
cmp rsi, rdi
je 0x140067260
nop word cs:[rax + rax]
mov rdx, rsi
test dil, 1
je 0x1400673e5
mov rdx, qword [r11 + rsi*8]
and rdx, rcx
mov rbp, qword [r10 + rsi*8]
and rbp, r15
or rbp, rdx
mov qword [r11 + rsi*8], rbp
mov rdx, rsi
or rdx, 1
not rsi
add rsi, rdi
je 0x140067260
nop word cs:[rax + rax]
mov rsi, qword [r11 + rdx*8]
and rsi, rcx
mov rbp, qword [r10 + rdx*8]
and rbp, r15
or rbp, rsi
mov qword [r11 + rdx*8], rbp
mov rsi, qword [r11 + rdx*8 + 8]
and rsi, rcx
mov rbp, qword [r10 + rdx*8 + 8]
and rbp, r15
or rbp, rsi
mov qword [r11 + rdx*8 + 8], rbp
add rdx, 2
cmp rdi, rdx
jne 0x140067400
jmp 0x140067260
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140067452
mov rdx, r12
call fcn.140064f30
test rax, rax
je 0x140067471
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140067469
mov rdx, r13
call fcn.140064f30
test rax, rax
je 0x140067471
mov r15d, 1
jmp 0x140067474
xor r15d, r15d
mov r8, qword [rsp + 0xb8]
cmp byte [r8 + 0x28], 0
jne 0x140066f95
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
jmp 0x140066f95