Function at 0x14004ca80
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 0x14004d018
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 0x14004cab9
test r8, r8
je 0x14004d018
cmp byte [r14 + 0x28], 0
jne 0x14004caf3
mov rcx, qword [r14 + 0x10]
mov rsi, qword [r14 + 0x20]
cmp rcx, qword [r14 + 0x18]
je 0x14004cf9b
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.14004c970
mov r15, rax
mov rcx, r14
call fcn.14004c970
mov r12, rax
mov rcx, r14
call fcn.14004c970
mov qword [rsp + 0x30], rax
test rbp, rbp
jne 0x14004cb2b
mov rcx, r14
call fcn.14004c970
mov rbp, rax
mov qword [rsp + 0x28], rbp
test r15, r15
mov rbp, qword [rsp + 0x30]
je 0x14004d10a
test r12, r12
je 0x14004d10a
test rbp, rbp
je 0x14004d10a
cmp qword [rsp + 0x28], 0
je 0x14004d10a
mov ecx, dword [rdi + 8]
test ecx, ecx
jle 0x14004d13e
mov rax, qword [rdi]
mov edx, ecx
cmp qword [rax + rdx*8 - 8], 0
je 0x14004cd78
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 r11, r10
shr r11, 4
xor r9d, r9d
cmp r10, 0x10
setae r9b
cmovb r11, r10
mov r10, r11
shr r10, 2
xor esi, esi
cmp r11, 4
setae sil
cmovb r10, r11
add esi, esi
xor r11d, r11d
cmp r10, 2
setae r11b
or ecx, eax
or ecx, edx
lea eax, [rcx + r8*8]
lea eax, [rax + r9*4]
or eax, esi
add eax, r11d
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.14009d300
test eax, eax
je 0x14004d10a
mov rcx, r12
mov rdx, r13
mov r8d, dword [rsp + 0x3c]
call fcn.14009d300
test eax, eax
je 0x14004d10a
mov eax, dword [rbp + 8]
test eax, eax
jle 0x14004d123
mov rcx, qword [rbp]
mov edx, eax
cmp qword [rcx + rdx*8 - 8], 0
je 0x14004d197
mov dword [rbp + 8], eax
mov esi, dword [r12 + 8]
test esi, esi
jle 0x14004d151
mov rax, qword [r12]
mov ecx, esi
cmp qword [rax + rcx*8 - 8], 0
je 0x14004d1a7
mov dword [r12 + 8], esi
movsxd r13, dword [rbp + 8]
mov rax, qword [rbp]
cmp r13, 1
je 0x14004d172
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.14004c670
test eax, eax
je 0x14004d10a
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 0x14004cd53
cmp esi, 0x800000
jae 0x14004d0cb
mov rax, qword [rsp + 0x28]
test byte [rax + 0x14], 2
jne 0x14004d0e9
movsxd rcx, esi
mov edx, 8
call fcn.14005bcf0
test rax, rax
je 0x14004d10a
mov rdi, rax
mov rbp, r12
mov r12, qword [rsp + 0x28]
movsxd r8, dword [r12 + 8]
test r8, r8
jne 0x14004cfef
mov rcx, qword [r12]
call fcn.1400a4af0
mov qword [r12], rdi
mov dword [r12 + 0xc], esi
mov r12, rbp
lea rdi, [r13 + 1]
cmp edi, dword [r15 + 0xc]
ja 0x14004cd8b
mov rbp, r12
mov rax, qword [rsp + 0x28]
mov dword [rax + 8], esi
test esi, esi
jle 0x14004ceda
mov r14d, esi
jmp 0x14004ce4f
lea edx, [rcx - 1]
cmp ecx, 1
mov ecx, edx
jg 0x14004cb6a
jmp 0x14004d0a7
cmp edi, 0x800000
jae 0x14004d0cb
test byte [r15 + 0x14], 2
jne 0x14004d0e9
mov edx, 8
mov rcx, rdi
call fcn.14005bcf0
test rax, rax
je 0x14004d10a
mov rbp, rax
movsxd r8, dword [r15 + 8]
test r8, r8
jne 0x14004d004
mov rcx, qword [r15]
call fcn.1400a4af0
mov qword [r15], rbp
mov dword [r15 + 0xc], edi
jmp 0x14004cd5d
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rcx, qword [r15]
mov r8, r13
mov r9, rsi
call fcn.14009d1d0
mov rcx, qword [r15]
mov qword [rcx + r13*8], rax
test edi, edi
je 0x14004ce32
mov rax, qword [r15]
xor edx, edx
mov rcx, rdi
sub r8, r8
jmp 0x14004ce10
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 0x14004ce10
sbb r8, r8
test r8b, 1
jne 0x14004d063
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 0x14004ceda
lea r12, [r14*8 - 8]
add r12, qword [rbp]
mov rdx, qword [r12 + r13*8]
cmp rdx, rbx
je 0x14004d053
mov rax, qword [r12 + r13*8 - 8]
mov qword [rsp + 0x50], rbx
div qword [rsp + 0x50]
mov rsi, rax
cmp r13d, 2
jl 0x14004cdd9
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 0x14004cdd9
add rcx, rbx
dec rsi
mov r9, rsi
mov rsi, r9
cmp rcx, rbx
jb 0x14004cdd9
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 0x14004cdd9
jmp 0x14004ceac
mov eax, dword [rbp + 8]
test eax, eax
jle 0x14004d1b7
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 0x14004cf17
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x14004cefb
jmp 0x14004d040
mov dword [rbp + 8], eax
mov eax, dword [r9 + 8]
test eax, eax
jle 0x14004d180
mov r8, qword [r9]
mov r10d, eax
cmp qword [r8 + r10*8 - 8], 0
jne 0x14004cf45
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x14004cf29
jmp 0x14004d0b2
mov dword [r9 + 8], eax
test rcx, rcx
je 0x14004cf63
mov rdx, rbp
mov r8d, dword [rsp + 0x3c]
call fcn.14004d1f0
test eax, eax
je 0x14004d10a
mov esi, 1
cmp byte [r14 + 0x28], 0
jne 0x14004cf88
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 0x14004d18b
mov rax, rbx
shr rax, 0x3d
jne 0x14004d18b
lea rdx, [rbx*8]
mov rcx, qword [r14 + 8]
call fcn.1400a4b40
test rax, rax
je 0x14004d18b
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], rbx
mov rcx, qword [r14 + 0x10]
jmp 0x14004caeb
shl r8, 3
mov rdx, qword [r12]
mov rcx, rdi
call fcn.1400f5780
jmp 0x14004cd3e
shl r8, 3
mov rdx, qword [r15]
mov rcx, rbp
call fcn.1400f5780
jmp 0x14004cdc8
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.1401484b0
jmp 0x14004cf88
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x14004cf1a
mov rsi, 0xffffffffffffffff
jmp 0x14004cdd9
xor eax, eax
jmp 0x14004d09b
test r13d, r13d
je 0x14004d05f
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
xor r8d, r8d
mov rcx, r13
sub rax, rax
jmp 0x14004d080
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 0x14004d080
sbb rax, rax
and eax, 1
dec rsi
add qword [r12 + r13*8], rax
jmp 0x14004ce32
mov r8d, 0x40
jmp 0x14004cc2b
mov dword [r9 + 8], 0
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], 0
jmp 0x14004cf49
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 0x14004d105
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.1401484b0
xor esi, esi
cmp byte [r14 + 0x28], 0
jne 0x14004cf88
mov rax, r14
mov rax, qword [rax + 8]
jmp 0x14004cf73
jne 0x14004cc7b
jmp 0x14004d132
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x14004cc7b
je 0x14004d1d4
mov rax, qword [rdi]
mov rbp, qword [rsp + 0x30]
jmp 0x14004cb78
jne 0x14004cc9f
jmp 0x14004d162
mov dword [r12 + 8], 0
mov dword [r12 + 0x10], 0
xor esi, esi
jmp 0x14004cc9f
mov qword [rsp + 0x40], 0
jmp 0x14004ccbb
jne 0x14004cf49
jmp 0x14004d0ba
mov word [r14 + 0x28], 0x101
jmp 0x14004caf3
lea edx, [rax - 1]
cmp eax, 1
mov eax, edx
jg 0x14004cc6a
jmp 0x14004d12b
lea ecx, [rsi - 1]
cmp esi, 1
mov esi, ecx
jg 0x14004cc8c
jmp 0x14004d159
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
jne 0x14004cf1a
jmp 0x14004d047
mov r8d, 0x40
mov rbp, qword [rsp + 0x30]
jmp 0x14004cc2b