Function at 0x14012c570
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 0x14012cb08
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 0x14012c5a9
test r8, r8
je 0x14012cb08
cmp byte [r14 + 0x28], 0
jne 0x14012c5e3
mov rcx, qword [r14 + 0x10]
mov rsi, qword [r14 + 0x20]
cmp rcx, qword [r14 + 0x18]
je 0x14012ca8b
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.14012c460
mov r15, rax
mov rcx, r14
call fcn.14012c460
mov r12, rax
mov rcx, r14
call fcn.14012c460
mov qword [rsp + 0x30], rax
test rbp, rbp
jne 0x14012c61b
mov rcx, r14
call fcn.14012c460
mov rbp, rax
mov qword [rsp + 0x28], rbp
test r15, r15
mov rbp, qword [rsp + 0x30]
je 0x14012cbfa
test r12, r12
je 0x14012cbfa
test rbp, rbp
je 0x14012cbfa
cmp qword [rsp + 0x28], 0
je 0x14012cbfa
mov ecx, dword [rdi + 8]
test ecx, ecx
jle 0x14012cc2e
mov rax, qword [rdi]
mov edx, ecx
cmp qword [rax + rdx*8 - 8], 0
je 0x14012c868
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.140224290
test eax, eax
je 0x14012cbfa
mov rcx, r12
mov rdx, r13
mov r8d, dword [rsp + 0x3c]
call fcn.140224290
test eax, eax
je 0x14012cbfa
mov eax, dword [rbp + 8]
test eax, eax
jle 0x14012cc13
mov rcx, qword [rbp]
mov edx, eax
cmp qword [rcx + rdx*8 - 8], 0
je 0x14012cc87
mov dword [rbp + 8], eax
mov esi, dword [r12 + 8]
test esi, esi
jle 0x14012cc41
mov rax, qword [r12]
mov ecx, esi
cmp qword [rax + rcx*8 - 8], 0
je 0x14012cc97
mov dword [r12 + 8], esi
movsxd r13, dword [rbp + 8]
mov rax, qword [rbp]
cmp r13, 1
je 0x14012cc62
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.14012c160
test eax, eax
je 0x14012cbfa
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 0x14012c843
cmp esi, 0x800000
jae 0x14012cbbb
mov rax, qword [rsp + 0x28]
test byte [rax + 0x14], 2
jne 0x14012cbd9
movsxd rcx, esi
mov edx, 8
call fcn.14014e120
test rax, rax
je 0x14012cbfa
mov rdi, rax
mov rbp, r12
mov r12, qword [rsp + 0x28]
movsxd r8, dword [r12 + 8]
test r8, r8
jne 0x14012cadf
mov rcx, qword [r12]
call fcn.140230600
mov qword [r12], rdi
mov dword [r12 + 0xc], esi
mov r12, rbp
lea rdi, [r13 + 1]
cmp edi, dword [r15 + 0xc]
ja 0x14012c87b
mov rbp, r12
mov rax, qword [rsp + 0x28]
mov dword [rax + 8], esi
test esi, esi
jle 0x14012c9ca
mov r14d, esi
jmp 0x14012c93f
lea edx, [rcx - 1]
cmp ecx, 1
mov ecx, edx
jg 0x14012c65a
jmp 0x14012cb97
cmp edi, 0x800000
jae 0x14012cbbb
test byte [r15 + 0x14], 2
jne 0x14012cbd9
mov edx, 8
mov rcx, rdi
call fcn.14014e120
test rax, rax
je 0x14012cbfa
mov rbp, rax
movsxd r8, dword [r15 + 8]
test r8, r8
jne 0x14012caf4
mov rcx, qword [r15]
call fcn.140230600
mov qword [r15], rbp
mov dword [r15 + 0xc], edi
jmp 0x14012c84d
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rcx, qword [r15]
mov r8, r13
mov r9, rsi
call fcn.140224160
mov rcx, qword [r15]
mov qword [rcx + r13*8], rax
test edi, edi
je 0x14012c922
mov rax, qword [r15]
xor edx, edx
mov rcx, rdi
sub r8, r8
jmp 0x14012c900
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 0x14012c900
sbb r8, r8
test r8b, 1
jne 0x14012cb53
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 0x14012c9ca
lea r12, [r14*8 - 8]
add r12, qword [rbp]
mov rdx, qword [r12 + r13*8]
cmp rdx, rbx
je 0x14012cb43
mov rax, qword [r12 + r13*8 - 8]
mov qword [rsp + 0x50], rbx
div qword [rsp + 0x50]
mov rsi, rax
cmp r13d, 2
jl 0x14012c8c9
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 0x14012c8c9
add rcx, rbx
dec rsi
mov r9, rsi
mov rsi, r9
cmp rcx, rbx
jb 0x14012c8c9
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 0x14012c8c9
jmp 0x14012c99c
mov eax, dword [rbp + 8]
test eax, eax
jle 0x14012cca7
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 0x14012ca07
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x14012c9eb
jmp 0x14012cb30
mov dword [rbp + 8], eax
mov eax, dword [r9 + 8]
test eax, eax
jle 0x14012cc70
mov r8, qword [r9]
mov r10d, eax
cmp qword [r8 + r10*8 - 8], 0
jne 0x14012ca35
lea r10d, [rax - 1]
cmp eax, 1
mov eax, r10d
jg 0x14012ca19
jmp 0x14012cba2
mov dword [r9 + 8], eax
test rcx, rcx
je 0x14012ca53
mov rdx, rbp
mov r8d, dword [rsp + 0x3c]
call fcn.14012cce0
test eax, eax
je 0x14012cbfa
mov esi, 1
cmp byte [r14 + 0x28], 0
jne 0x14012ca78
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 0x14012cc7b
mov rax, rbx
shr rax, 0x3d
jne 0x14012cc7b
lea rdx, [rbx*8]
mov rcx, qword [r14 + 8]
call fcn.140230650
test rax, rax
je 0x14012cc7b
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], rbx
mov rcx, qword [r14 + 0x10]
jmp 0x14012c5db
shl r8, 3
mov rdx, qword [r12]
mov rcx, rdi
call fcn.1402d2020
jmp 0x14012c82e
shl r8, 3
mov rdx, qword [r15]
mov rcx, rbp
call fcn.1402d2020
jmp 0x14012c8b8
mov dword [rsp + 0x20], ILCreateFromPathW
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.1403a01f0
jmp 0x14012ca78
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x14012ca0a
mov rsi, 0xffffffffffffffff
jmp 0x14012c8c9
xor eax, eax
jmp 0x14012cb8b
test r13d, r13d
je 0x14012cb4f
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
xor r8d, r8d
mov rcx, r13
sub rax, rax
jmp 0x14012cb70
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 0x14012cb70
sbb rax, rax
and eax, 1
dec rsi
add qword [r12 + r13*8], rax
jmp 0x14012c922
mov r8d, 0x40
jmp 0x14012c71b
mov dword [r9 + 8], 0
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], 0
jmp 0x14012ca39
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 0x14012cbf5
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.1403a01f0
xor esi, esi
cmp byte [r14 + 0x28], 0
jne 0x14012ca78
mov rax, r14
mov rax, qword [rax + 8]
jmp 0x14012ca63
jne 0x14012c76b
jmp 0x14012cc22
mov dword [rbp + 8], 0
mov dword [rbp + 0x10], 0
jmp 0x14012c76b
je 0x14012ccc4
mov rax, qword [rdi]
mov rbp, qword [rsp + 0x30]
jmp 0x14012c668
jne 0x14012c78f
jmp 0x14012cc52
mov dword [r12 + 8], 0
mov dword [r12 + 0x10], 0
xor esi, esi
jmp 0x14012c78f
mov qword [rsp + 0x40], 0
jmp 0x14012c7ab
jne 0x14012ca39
jmp 0x14012cbaa
mov word [r14 + 0x28], 0x101
jmp 0x14012c5e3
lea edx, [rax - 1]
cmp eax, 1
mov eax, edx
jg 0x14012c75a
jmp 0x14012cc1b
lea ecx, [rsi - 1]
cmp esi, 1
mov esi, ecx
jg 0x14012c77c
jmp 0x14012cc49
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
jne 0x14012ca0a
jmp 0x14012cb37
mov r8d, 0x40
mov rbp, qword [rsp + 0x30]
jmp 0x14012c71b