Function at 0x14003d0d0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor esi, esi
mov r12, r9
mov r13, r8
mov edi, edx
mov r14, rcx
test rcx, rcx
je 0x14003d38c
test r9, r9
je 0x14003d38c
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], si
jne 0x14003d112
lea rdx, [rbp + 0x30]
call fcn.14003a384
mov ebx, eax
test eax, eax
jns 0x14003d132
mov ecx, eax
jmp 0x14003d393
cmp dword [rbp + 0x30], edi
lea rcx, str.________________________________________________456789:_________
mov dword [rbp - 0x10], esi
mov eax, pe_nt_image_headers64
cmovb edi, dword [rbp + 0x30]
lea r15, [r14 + rdi*2]
mov rdi, r14
cmp r14, r15
jae 0x14003d1a9
cmp word [rdi], ax
jae 0x14003d38c
movzx eax, word [rdi]
cmp byte [rax + rcx], 0x3f
jbe 0x14003d224
cmp word [rdi], 0x20
ja 0x14003d187
movzx eax, word [rdi]
movabs rcx, 0x100002600
bt rcx, rax
jb 0x14003d241
test esi, esi
je 0x14003d38c
mov eax, esi
and eax, 3
je 0x14003d1a9
cmp word [rdi], 0x3d
jne 0x14003d38c
cmp eax, 1
je 0x14003d38c
mov ecx, esi
lea r8, [rbp + 0x30]
shr ecx, 2
mov edx, 3
call fcn.140077940
mov ebx, eax
test eax, eax
js 0x14003d12b
mov eax, esi
and eax, 3
sub eax, 1
je 0x14003d38c
sub eax, 1
je 0x14003d1f6
cmp eax, 1
jne 0x14003d211
mov ecx, dword [rbp + 0x30]
lea r8, [rbp + 0x30]
mov edx, eax
call fcn.140077818
mov ebx, eax
test eax, eax
js 0x14003d12b
mov ecx, dword [rbp + 0x30]
lea r8, [rbp + 0x30]
mov edx, 1
call fcn.140077818
mov ebx, eax
test eax, eax
js 0x14003d12b
test r13, r13
jne 0x14003d25f
mov eax, dword [rbp + 0x30]
xor ebx, ebx
mov dword [r12], eax
jmp 0x14003d398
lea r8, [rbp - 0x10]
mov edx, 1
mov ecx, esi
call fcn.140077818
mov ebx, eax
test eax, eax
js 0x14003d12b
mov esi, dword [rbp - 0x10]
add rdi, 2
cmp rdi, r15
jae 0x14003d1a9
lea rcx, str.________________________________________________456789:_________
mov eax, pe_nt_image_headers64
jmp 0x14003d154
mov eax, dword [rbp + 0x30]
cmp dword [r12], eax
jae 0x14003d274
mov ebx, 0x8007007a
mov ecx, ebx
jmp 0x14003d393
mov rdi, r13
lea r15, [rax + r13]
test esi, esi
je 0x14003d373
xor eax, eax
lea r8, str.________________________________________________456789:_________
mov dword [rbp + 0x30], eax
xor edx, edx
mov r9d, pe_nt_image_headers64
mov eax, 4
cmp esi, 4
ja 0x14003d2a3
mov eax, esi
mov ecx, edx
cmp rcx, rax
jb 0x14003d350
cmp rdi, r15
jae 0x14003d36c
movzx eax, byte [rbp + 0x31]
lea r9, str.________________________________________________456789:_________
mov r8b, byte [rax + r9]
movzx eax, byte [rbp + 0x30]
mov cl, byte [rax + r9]
mov al, r8b
shr al, 4
shl cl, 2
or cl, al
mov byte [rdi], cl
inc rdi
cmp edx, 2
jbe 0x14003d303
cmp rdi, r15
jae 0x14003d36c
movzx eax, byte [rbp + 0x32]
shl r8b, 4
mov cl, byte [rax + r9]
shr cl, 2
or cl, r8b
mov byte [rdi], cl
inc rdi
cmp edx, 3
jbe 0x14003d325
cmp rdi, r15
jae 0x14003d36c
movzx eax, byte [rbp + 0x32]
mov cl, byte [rax + r9]
movzx eax, byte [rbp + 0x33]
shl cl, 6
or cl, byte [rax + r9]
mov byte [rdi], cl
inc rdi
lea r8, [rbp - 0x10]
mov ecx, esi
call fcn.1400779e8
mov ebx, eax
test eax, eax
js 0x14003d12b
mov esi, dword [rbp - 0x10]
jmp 0x14003d27b
movzx eax, ax
cmp byte [rax + r8], 0x3f
jbe 0x14003d35a
add r14, 2
movzx eax, word [r14]
cmp r9w, ax
ja 0x14003d342
mov al, byte [r14]
add r14, 2
mov byte [rbp + rdx + 0x30], al
inc edx
jmp 0x14003d297
mov ecx, 0x8000ffff
jmp 0x14003d391
sub rdi, r13
mov rdx, r12
mov rcx, rdi
call fcn.14003a328
mov ebx, eax
test eax, eax
jns 0x14003d398
jmp 0x14003d12b
mov ecx, 0x80070057
mov ebx, ecx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret