Function at 0x46c660
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x130]
cmp r12, qword [r14 + 0x10]
jbe 0x46cf35
push rbp
mov rbp, rsp
sub rsp, 0x1a8
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x278], rbx
movups xmmword [rsp + 0x1b8], xmm15
lea rdi, [rsp + 0x1c0]
lea rdi, [rdi - 0x10]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0045522f
mov rbp, qword [rbp]
lea rax, [0x004a2420]
nop dword [rax]
call fcn.0040b1a0
mov qword [rsp + 0x100], rax
mov word [rsp + 0x46], 0
movups xmmword [rsp + 0x160], xmm15
movups xmmword [rsp + 0x168], xmm15
movups xmmword [rsp + 0x178], xmm15
movups xmmword [rsp + 0x188], xmm15
movups xmmword [rsp + 0x198], xmm15
mov rbx, qword [rsp + 0x278]
test rbx, rbx
jne 0x46c712
xor ecx, ecx
jmp 0x46c784
lea rax, [rsp + 0x160]
call fcn.0046bb80
nop
test rax, rax
je 0x46c774
test bl, bl
je 0x46c754
mov r8, qword [rsp + 0x100]
mov r9d, dword [r8]
nop word [rax + rax]
nop dword [rax]
test r9d, 0x3f
jne 0x46ce8b
xor eax, eax
jmp 0x46cecc
mov r8, qword [rsp + 0x100]
mov r9d, dword [r8]
nop
test r9d, 0x3f
jne 0x46cdf7
xor eax, eax
jmp 0x46ce22
mov eax, 8
mov rcx, rax
mov rax, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x270]
movzx r8d, byte [rsi + 0x14]
test r8b, 1
je 0x46c79e
mov edx, 0x48
jmp 0x46c7a3
mov edx, 0x38
movzx r8d, word [rsi + 0x30]
test r8w, r8w
jne 0x46c7b6
xor r8d, r8d
xor r9d, r9d
jmp 0x46c7cd
lea r9, [rdx + rsi]
nop word [rax + rax]
cmp r8, 0x10000
ja 0x46cdea
mov qword [rsp + 0x50], r8
mov qword [rsp + 0xf8], r9
xor edx, edx
jmp 0x46c809
mov rdx, qword [rsp + 0x88]
inc rdx
mov rsi, qword [rsp + 0x270]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0xf8]
mov rcx, rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x60], rcx
cmp r8, rdx
jle 0x46c925
mov qword [rsp + 0x88], rdx
mov rbx, qword [r9 + rdx*8]
mov qword [rsp + 0x108], rbx
lea rax, [rsp + 0x160]
call fcn.0046b8a0
nop dword [rax + rax]
test rax, rax
jne 0x46c8ff
mov rsi, qword [rsp + 0x108]
movzx r8d, byte [rsi + 0x15]
mov r9, qword [rsp + 0x60]
lea r9, [r9 + r8]
lea r9, [r9 - 1]
neg r8
and r8, r9
mov rcx, qword [rsp + 0x180]
nop
add r8, qword [rsi]
nop
mov rax, qword [rsp + 0x88]
nop
cmp rax, rcx
jae 0x46cde5
mov rsi, qword [rsp + 0x178]
lea r9, [rcx - 1]
mov r10, qword [rsi + rax*8]
cmp rax, r9
jne 0x46c8a8
mov rsi, qword [rsp + 0x168]
jmp 0x46c8ba
lea r9, [rax + 1]
cmp rcx, r9
jbe 0x46cdd8
mov rsi, qword [rsi + rax*8 + 8]
mov rdx, qword [rsp + 0x170]
cmp rsi, rdx
ja 0x46cdd0
cmp rsi, r10
jb 0x46cdc5
mov r9, qword [rsp + 0x160]
mov r11, r10
sub r10, rdx
lea rdx, [r11 + r11*2]
shl rdx, 4
sar r10, 0x3f
and r10, rdx
lea rdx, [r9 + r10]
sub rsi, r11
xor ecx, ecx
jmp 0x46cd0d
mov rbx, qword [rax + 0x18]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.0046e2c0
mov rax, qword [rsp + 0x60]
nop dword [rax]
jmp 0x46c7de
mov rdx, qword [rsp + 0x190]
lea r8, [rdx + 7]
and r8, 0xfffffffffffffff8
nop
nop
mov word [rsp + 0x44], 0
movups xmmword [rsp + 0x118], xmm15
movups xmmword [rsp + 0x120], xmm15
movups xmmword [rsp + 0x130], xmm15
movups xmmword [rsp + 0x140], xmm15
movups xmmword [rsp + 0x150], xmm15
mov qword [rsp + 0x148], r8
movzx r9d, word [rsi + 0x32]
and r9d, 0x7fff
nop
test r9w, r9w
jne 0x46c98d
xor r11d, r11d
xor esi, esi
jmp 0x46c9d3
movzx r10d, byte [rsi + 0x14]
test r10b, 1
je 0x46c99f
mov ebx, 0x48
jmp 0x46c9a4
mov ebx, 0x38
movzx r10d, word [rsi + 0x30]
add r9d, r10d
add rsi, rbx
movzx r9d, r9w
cmp r10, r9
ja 0x46ccfa
sub r9, r10
mov r11, r9
neg r9
shl r10, 3
sar r9, 0x3f
and r10, r9
add rsi, r10
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x48], r11
mov qword [rsp + 0xf0], rsi
xor ebx, ebx
jmp 0x46ca20
mov rbx, qword [rsp + 0x80]
inc rbx
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
nop dword [rax]
cmp r11, rbx
jle 0x46cb05
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsi + rbx*8]
mov qword [rsp + 0x110], rcx
lea rax, [rsp + 0x118]
mov rbx, rcx
call fcn.0046b8a0
test rax, rax
jne 0x46cae6
mov rcx, qword [rsp + 0x138]
nop
mov rax, qword [rsp + 0x80]
cmp rax, rcx
jae 0x46ccf5
mov rsi, qword [rsp + 0x130]
lea r8, [rcx - 1]
mov r9, qword [rsi + rax*8]
cmp rax, r8
jne 0x46ca8f
mov rsi, qword [rsp + 0x120]
jmp 0x46caa1
lea r8, [rax + 1]
cmp rcx, r8
jbe 0x46cced
mov rsi, qword [rsi + rax*8 + 8]
mov rdx, qword [rsp + 0x128]
cmp rsi, rdx
ja 0x46cce5
cmp rsi, r9
jb 0x46ccd8
mov r8, qword [rsp + 0x118]
lea r10, [r9 + r9*2]
mov r11, r9
sub r9, rdx
shl r10, 4
sar r9, 0x3f
and r9, r10
lea rdx, [r8 + r9]
sub rsi, r11
xor ecx, ecx
jmp 0x46cc29
mov rbx, qword [rax + 0x18]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x110]
call fcn.0046e2c0
nop
jmp 0x46c9ee
sub qword [rsp + 0x148], r8
movups xmmword [rsp + 0x1b8], xmm15
lea rdi, [rsp + 0x1c0]
lea rdi, [rdi - 0x10]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0045522f
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x160]
mov qword [rsp + 0x1b8], rbx
movups xmm0, xmmword [rsp + 0x168]
movups xmmword [rsp + 0x1c0], xmm0
movups xmm0, xmmword [rsp + 0x178]
movups xmmword [rsp + 0x1d0], xmm0
movups xmm0, xmmword [rsp + 0x188]
movups xmmword [rsp + 0x1e0], xmm0
movups xmm0, xmmword [rsp + 0x198]
movups xmmword [rsp + 0x1f0], xmm0
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x200], rbx
movups xmm0, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x208], xmm0
movups xmm0, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x218], xmm0
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rsp + 0x228], xmm0
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rsp + 0x238], xmm0
mov qword [rsp + 0x248], rdx
mov qword [rsp + 0x250], r8
add rcx, 7
and rcx, 0xfffffffffffffff8
mov qword [rsp + 0x258], rcx
mov qword [rsp + 0x260], rax
movzx eax, word [rsp + 0x46]
mov word [rsp + 0x268], ax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x26a], ax
add rsp, 0x1a8
pop rbp
nop
ret
add rdx, 0x30
lea rcx, [rbx + 1]
cmp rcx, rsi
jge 0x46c9ee
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rsp + 0xb0], xmm0
cmp qword [rsp + 0x90], 3
nop
jne 0x46ccbe
mov r8, qword [rsp + 0xb0]
mov r9, r8
sar r8, 0x3f
shr r8, 0x3d
add r8, r9
mov r10, r8
sar r8, 3
nop
cmp r8, 2
jae 0x46cccb
and r10, 0xfffffffffffffff8
sub r9, r10
test r9, r9
jl 0x46ccc6
movzx r10d, byte [rsp + r8 + 0x44]
mov rbx, rcx
mov rcx, r9
mov r11d, 1
shl r11d, cl
cmp rcx, 0x20
sbb r9d, r9d
and r9d, r11d
or r10d, r9d
mov byte [rsp + r8 + 0x44], r10b
jmp 0x46cc21
mov rbx, rcx
jmp 0x46cc21
call fcn.0042e7e0
mov rax, r8
mov ecx, 2
call fcn.00454f80
mov rax, r9
mov rcx, rsi
nop
call fcn.00455040
mov rcx, rsi
call fcn.00455000
mov rax, r8
call fcn.00454f80
call fcn.00454f80
mov eax, r10d
mov rcx, r9
call fcn.004550c0
add rdx, 0x30
lea rcx, [rbx + 1]
cmp rcx, rsi
jge 0x46cda7
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rsp + 0xe0], xmm0
cmp qword [rsp + 0xc0], 3
jne 0x46cd9f
mov r9, qword [rsp + 0xe0]
mov r10, r9
sar r9, 0x3f
shr r9, 0x3d
add r9, r10
mov r11, r9
sar r9, 3
cmp r9, 2
jae 0x46cdb4
and r11, 0xfffffffffffffff8
sub r10, r11
test r10, r10
jl 0x46cdaf
movzx r11d, byte [rsp + r9 + 0x46]
mov rbx, rcx
mov rcx, r10
mov r12d, 1
shl r12d, cl
cmp rcx, 0x20
sbb r10d, r10d
and r10d, r12d
or r11d, r10d
mov byte [rsp + r9 + 0x46], r11b
jmp 0x46cd05
mov rbx, rcx
jmp 0x46cd05
mov rax, r8
jmp 0x46c7de
call fcn.0042e7e0
mov rax, r9
mov ecx, 2
nop dword [rax]
call fcn.00454f80
mov rax, r10
mov rcx, rsi
call fcn.00455040
mov rcx, rsi
call fcn.00455000
mov rax, r9
nop dword [rax + rax]
call fcn.00454f80
call fcn.00454f80
mov edx, r8d
mov ebx, 0x10000
call fcn.00455080
mov rcx, qword [r8 + 0x10]
mov eax, dword [r8]
shr eax, 3
cmp rcx, rax
jbe 0x46ce10
inc dword [r8]
xor eax, eax
jmp 0x46c779
call fcn.00454f80
mov qword [r8 + 0x10], rbx
mov byte [rbx + r9 - 1], 0
inc rax
cmp rax, 8
jge 0x46cdf7
mov rcx, qword [r8 + 0x18]
mov rbx, qword [r8 + 0x10]
inc rbx
mov r9, qword [r8 + 8]
cmp rcx, rbx
jae 0x46ce15
mov qword [rsp + 0x70], rax
mov rax, r9
mov edi, 1
lea rsi, [0x00497980]
call fcn.004401e0
mov rdx, qword [rsp + 0x100]
mov qword [rdx + 0x18], rcx
cmp dword [0x0059bc30], 0
je 0x46ce7a
call fcn.00454c20
mov qword [r11], rax
mov r8, qword [rdx + 8]
mov qword [r11 + 8], r8
mov qword [rdx + 8], rax
mov r8, rdx
mov r9, rax
mov rax, qword [rsp + 0x70]
jmp 0x46ce15
mov rcx, qword [r8 + 0x10]
mov eax, dword [r8]
mov esi, eax
shr esi, 3
cmp rcx, rsi
jbe 0x46ceb8
mov r9, qword [r8 + 8]
movzx r10d, byte [r9 + rsi]
and eax, 7
bts r10d, eax
mov byte [r9 + rsi], r10b
inc dword [r8]
jmp 0x46ce09
mov eax, esi
call fcn.00454f80
mov qword [r8 + 0x10], rbx
mov byte [rbx + r9 - 1], 0
inc rax
cmp rax, 8
jge 0x46ce8b
mov rcx, qword [r8 + 0x18]
mov rbx, qword [r8 + 0x10]
inc rbx
mov r9, qword [r8 + 8]
cmp rcx, rbx
jae 0x46cebf
mov qword [rsp + 0x78], rax
mov rax, r9
mov edi, 1
lea rsi, [0x00497980]
call fcn.004401e0
mov rdx, qword [rsp + 0x100]
mov qword [rdx + 0x18], rcx
cmp dword [0x0059bc30], 0
je 0x46cf24
call fcn.00454c20
mov qword [r11], rax
mov r8, qword [rdx + 8]
mov qword [r11 + 8], r8
mov qword [rdx + 8], rax
mov r8, rdx
mov r9, rax
mov rax, qword [rsp + 0x78]
jmp 0x46cebf
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
call fcn.00452d00
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
jmp fcn.0046c660