Function at 0x46d520
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x46dd53
sub rsp, 0xd0
mov qword [rsp + 0xc8], rbp
lea rbp, [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
mov rdx, qword [r11]
add rdx, 0xffffffffffffffc4
neg rdx
cmp rdx, 0x40
sbb r11, r11
test r9, r9
mov r12d, 0
cmove r10, r12
mov r12, rcx
mov rcx, rdx
shl r9, cl
and r9, r11
jmp 0x46d580
shl r9, 1
dec r10
test r9, r9
je 0x46d58c
bt r9, 0x3c
jae 0x46d57a
cmp rdi, 0xf
jae 0x46d604
mov rcx, rdi
shl rcx, 2
cmp rcx, 0x40
sbb rdx, rdx
lea r11, [rcx - 0x3c]
neg r11
cmp r11, 0x40
sbb r13, r13
mov r15, r9
shl r9, cl
and rdx, r9
movabs r9, 0xfffffffffffffff
and r9, rdx
mov rcx, r11
shr r15, cl
and r15, r13
mov rdx, r15
and r15d, 1
or r9, r15
movabs r15, 0x800000000000000
cmp r15, r9
jae 0x46d5ec
lea r15, [rdx + 1]
jmp 0x46d5ef
mov r15, rdx
shl r15, cl
and r15, r13
bt r15, 0x3d
jae 0x46d607
shr r15, 1
inc r10
jmp 0x46d607
mov r15, r9
nop
movabs rdx, 0xaa359e03568afb0
mov qword [rsp + 0x90], rdx
movabs rdx, 0xe662cac95e306082
mov qword [rsp + 0x98], rdx
movabs rdx, 0x3d956cd4065a9e80
mov qword [rsp + 0x80], rdx
movabs rdx, 0x8007aeaa3c5159ba
mov qword [rsp + 0x88], rdx
xor ecx, ecx
jmp 0x46d673
movzx edx, byte [rsp + rcx + 0x90]
movzx r9d, byte [rsp + rcx + 0x80]
xor r9d, edx
mov byte [rsp + rcx + 0x80], r9b
inc rcx
cmp rcx, 0x10
jl 0x46d654
mov qword [rsp + 0xf0], rdi
mov byte [rsp + 0xf9], r8b
mov qword [rsp + 0x78], r12
mov byte [rsp + 0xf8], sil
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x68], r15
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xa0]
lea rbx, [rsp + 0x80]
mov ecx, 0x10
call fcn.00446000
movzx edx, byte [rsp + 0xf8]
cmp dl, 0x58
jne 0x46d6e4
call fcn.0046d2a0
movzx edx, byte [rsp + 0xf8]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0xc0], rax
movzx r8d, byte [rsp + 0xf9]
test r8b, r8b
je 0x46d766
mov rsi, qword [rsp + 0xe0]
lea r8, [rsi + 1]
mov rdi, qword [rsp + 0x78]
cmp rdi, r8
jb 0x46d71f
mov rcx, qword [rsp + 0xd8]
jmp 0x46d760
lea rax, [0x0064e0c0]
mov rbx, qword [rsp + 0xd8]
mov rcx, rsi
mov rsi, r8
call fcn.00442d00
lea r8, [rbx + 1]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xe0]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
mov byte [rcx + rsi], 0x2d
jmp 0x46d77b
mov r8, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xd8]
lea rsi, [r8 + 3]
nop
cmp rdi, rsi
jae 0x46d7c0
mov qword [rsp + 0x78], r8
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, r8
call fcn.00442d00
lea rsi, [rbx + 3]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rsi
mov byte [rcx + r8], 0x30
mov byte [rcx + r8 + 1], dl
mov r9, qword [rsp + 0x68]
mov r10, r9
shr r9, 0x3c
and r9d, 1
add r9d, 0x30
mov byte [rcx + r8 + 2], r9b
shl r10, 4
mov qword [rsp + 0x68], r10
mov r8, qword [rsp + 0xf0]
test r8, r8
jge 0x46d85a
nop
test r10, r10
je 0x46d857
lea r8, [rsi + 1]
cmp rdi, r8
jae 0x46d84e
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, rsi
mov rsi, r8
nop
call fcn.00442d00
lea r8, [rbx + 1]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x78]
mov r10, qword [rsp + 0x68]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
mov byte [rcx + rsi], 0x2e
jmp 0x46dcc7
test r8, r8
jle 0x46d8b6
lea r9, [rsi + 1]
cmp rdi, r9
jae 0x46d8ab
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, rsi
mov rsi, r9
call fcn.00442d00
lea r9, [rbx + 1]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0xf0]
mov r10, qword [rsp + 0x68]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
mov byte [rcx + rsi], 0x2e
xor esi, esi
jmp 0x46dc0c
nop
mov r8d, edx
or edx, 0x20
nop dword [rax]
cmp r8b, dl
jne 0x46d8cc
mov eax, 0x70
jmp 0x46d8d1
mov eax, 0x50
lea rdx, [rsi + 1]
cmp rdi, rdx
jae 0x46d90c
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x45], al
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, rsi
mov rsi, rdx
call fcn.00442d00
lea rdx, [rbx + 1]
mov rsi, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, rax
movzx eax, byte [rsp + 0x45]
mov byte [rcx + rsi], al
mov r8, qword [rsp + 0x70]
test r8, r8
jge 0x46d923
neg r8
mov eax, 0x2d
jmp 0x46d928
mov eax, 0x2b
mov qword [rsp + 0x78], r8
lea rsi, [rdx + 1]
cmp rdi, rsi
jae 0x46d96a
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x45], al
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, rdx
call fcn.00442d00
lea rsi, [rbx + 1]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdi, rcx
mov rcx, rax
movzx eax, byte [rsp + 0x45]
mov qword [rsp + 0x70], rsi
mov byte [rcx + rdx], al
cmp r8, 0x64
jge 0x46da05
lea rdx, [rsi + 2]
movabs rax, 0xcccccccccccccccd
mov rbx, rdx
imul r8
add rdx, r8
sar rdx, 3
mov r9, r8
sar r8, 0x3f
sub rdx, r8
lea r8, [rdx + rdx*4]
shl r8, 1
sub r9, r8
cmp rdi, rbx
jae 0x46d9ee
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x60], r9
lea rax, [0x0064e0c0]
mov rdx, rbx
mov rbx, rcx
mov rcx, rsi
mov rsi, rdx
call fcn.00442d00
lea rdx, [rbx + 2]
mov rsi, qword [rsp + 0x70]
mov r9, qword [rsp + 0x60]
mov rbx, rdx
mov rdi, rcx
mov rdx, qword [rsp + 0x78]
mov rcx, rax
add edx, 0x30
mov byte [rcx + rsi], dl
lea edx, [r9 + 0x30]
mov byte [rcx + rsi + 1], dl
nop dword [rax]
jmp 0x46dbe5
cmp r8, 0x3e8
jge 0x46dae6
lea rdx, [rsi + 3]
movabs rax, 0xa3d70a3d70a3d70b
mov rbx, rdx
imul r8
add rdx, r8
movabs rax, 0xcccccccccccccccd
mov r9, rdx
imul r8
add rdx, r8
mov r10, rdx
sar rdx, 3
movabs rax, 0xcccccccccccccccd
mov r11, rdx
imul rdx
add rdx, r11
sar rdx, 3
sar r10, 0x3f
sub rdx, r10
lea rdx, [rdx + rdx*4]
shl rdx, 1
mov r10, r11
sub r11, rdx
lea rdx, [r10 + r10*4]
shl rdx, 1
sub r8, rdx
cmp rdi, rbx
jae 0x46dac6
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r11
lea rax, [0x0064e0c0]
mov rdx, rbx
mov rbx, rcx
mov rcx, rsi
mov rsi, rdx
nop
call fcn.00442d00
lea rdx, [rbx + 3]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x60]
mov r11, qword [rsp + 0x58]
mov rbx, rdx
mov rdi, rcx
mov rcx, rax
sar r9, 6
lea edx, [r9 + 0x30]
mov byte [rcx + rsi], dl
lea edx, [r11 + 0x30]
mov byte [rcx + rsi + 1], dl
lea edx, [r8 + 0x30]
mov byte [rcx + rsi + 2], dl
jmp 0x46dbe5
movabs rax, 0xcccccccccccccccd
imul r8
add rdx, r8
mov r9, rdx
sar rdx, 3
lea r10, [rdx + rdx*4]
shl r10, 1
mov r11, r8
sub r8, r10
lea r10, [rsi + 4]
movabs rax, 0xa3d70a3d70a3d70b
mov rbx, rdx
imul r11
add rdx, r11
sar rdx, 6
movzx r12d, dl
imul r12d, r12d, 0x19a
shr r12d, 0xc
lea r12d, [r12 + r12*4]
shl r12d, 1
sub edx, r12d
movabs rax, 0xcccccccccccccccd
mov r12d, edx
imul rbx
add rdx, rbx
sar rdx, 3
sar r9, 0x3f
sub rdx, r9
lea rdx, [rdx + rdx*4]
shl rdx, 1
sub rbx, rdx
cmp rdi, r10
jae 0x46dbb3
mov qword [rsp + 0x60], r8
mov byte [rsp + 0x47], r12b
mov qword [rsp + 0x58], rbx
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, rsi
mov rsi, r10
call fcn.00442d00
lea r10, [rbx + 4]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
mov r11, qword [rsp + 0x78]
movzx r12d, byte [rsp + 0x47]
mov rdi, rcx
mov rcx, rax
movabs rax, 0x4189374bc6a7ef9e
imul r11
sar rdx, 8
add edx, 0x30
mov byte [rcx + rsi], dl
lea edx, [r12 + 0x30]
mov byte [rcx + rsi + 1], dl
lea edx, [rbx + 0x30]
mov byte [rcx + rsi + 2], dl
lea edx, [r8 + 0x30]
mov byte [rcx + rsi + 3], dl
mov rbx, r10
mov rax, rcx
mov rcx, rdi
mov rbp, qword [rsp + 0xc8]
add rsp, 0xd0
ret
mov byte [rcx + r9], r10b
inc rsi
shl r11, 4
mov r10, r11
mov r9, r12
cmp r8, rsi
jle 0x46dca6
mov r11, r10
shr r10, 0x3c
and r10d, 0xf
cmp rbx, r10
jbe 0x46dcae
lea r12, [r9 + 1]
movzx r10d, byte [rax + r10]
cmp rdi, r12
jae 0x46dbfb
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x46], r10b
mov qword [rsp + 0x68], r11
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, r9
mov rsi, r12
nop dword [rax + rax]
call fcn.00442d00
lea r12, [rbx + 1]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0xf0]
mov r9, qword [rsp + 0x60]
movzx r10d, byte [rsp + 0x46]
mov r11, qword [rsp + 0x68]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
jmp 0x46dbfb
mov rsi, r9
jmp 0x46d8b6
mov rax, r10
mov rcx, rbx
call fcn.00457f60
mov byte [rcx + r8], r10b
shl r9, 4
mov r10, r9
mov r8, rsi
test r10, r10
je 0x46dd3f
mov r9, r10
shr r10, 0x3c
and r10d, 0xf
cmp rbx, r10
jbe 0x46dd47
lea rsi, [r8 + 1]
movzx r10d, byte [rax + r10]
cmp rdi, rsi
jae 0x46dcb9
mov qword [rsp + 0x68], r9
mov byte [rsp + 0x46], r10b
mov qword [rsp + 0x60], r8
lea rax, [0x0064e0c0]
mov rbx, rcx
mov rcx, r8
call fcn.00442d00
lea rsi, [rbx + 1]
movzx edx, byte [rsp + 0xf8]
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x68]
movzx r10d, byte [rsp + 0x46]
mov rdi, rcx
mov rcx, rax
mov rax, qword [rsp + 0xc0]
jmp 0x46dcb9
mov rsi, r8
jmp 0x46d8b6
mov rax, r10
mov rcx, rbx
call fcn.00457f60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x29], r8b
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
call fcn.00455860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
movzx esi, byte [rsp + 0x28]
movzx r8d, byte [rsp + 0x29]
mov r9, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x40]
jmp fcn.0046d520