Function at 0x18004f160
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r12d, [rdx + 0x186]
mov r10, r9
mov r14, r8
mov r9, rcx
cmp edx, r12d
jae 0x18004f414
mov rdi, qword [rsp + 0x20]
lea r13d, [rdx - 0x97]
mov rbx, qword [rsp + 0x20]
mov ebp, dword [rsp + 0x78]
mov esi, dword [rsp + 0x78]
mov r15d, dword [rsp + 0x78]
lea rdx, [0x180000000]
movabs r8, 0xaaaaaaaaaaaaaaab
cmp r13d, 0x82
ja case.0x18004f1e6.6
movzx eax, byte [rdx + r13 + 0x4f454]
mov ecx, dword [rdx + rax*4 + 0x4f438]
add rcx, rdx
jmp rcx
mov rcx, qword [0x1800744b8]
lea rdx, [rsp + 0x78]
mov r8d, 0x1c
mov dword [rsp + 0x78], 0
call fcn.18000b450
jmp 0x18004f3f3
cmp qword [r14 + 0x18], 0x10
mov rdi, r14
jb 0x18004f219
mov rdi, qword [r14]
cmp qword [r9 + 0x18], 0x10
mov rbx, r9
jb 0x18004f226
mov rbx, qword [r9]
mov rax, r8
mul qword [r14 + 0x10]
shr rdx, 1
lea rcx, [rdx + rdx*2]
mov qword [rsp + 0x20], rcx
jmp case.0x18004f1e6.6
test r10, r10
je case.0x18004f1e6.6
mov dword [r10], 0xffffffff
jmp case.0x18004f1e6.6
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
test rcx, rcx
je 0x18004f310
dec rcx
mov rax, r8
mul rcx
shr rdx, 1
inc rdx
lea r9, [rdx + rdx*2]
nop word [rax + rax]
mov r8d, 0x101
mov eax, r8d
sub eax, 0x101
je 0x18004f2e3
sub eax, 1
je 0x18004f2cf
sub eax, 1
je 0x18004f2bc
cmp eax, 1
jne 0x18004f2fa
movzx ecx, byte [rdi + 2]
mov rax, qword [0x1800749c0]
and ecx, 0x3f
movzx ecx, byte [rcx + rax]
mov byte [rbx], cl
inc rbx
add rdi, 3
jmp 0x18004f2fa
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and ecx, 0xf
shr eax, 6
lea ecx, [rax + rcx*4]
jmp 0x18004f2ea
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shl ecx, 4
shr eax, 4
add ecx, eax
jmp 0x18004f2ea
movzx ecx, byte [rdi]
shr rcx, 2
mov rax, qword [0x1800749c0]
movzx ecx, byte [rcx + rax]
mov byte [rbx], cl
inc rbx
inc r8d
cmp r8d, 0x105
jb 0x18004f286
sub rdx, 1
jne 0x18004f280
cmp r9, qword [r14 + 0x10]
jae 0x18004f3fb
mov r8d, 0x22
mov eax, r8d
sub eax, 0x22
je 0x18004f3c1
sub eax, 1
je 0x18004f394
cmp eax, 1
jne 0x18004f3c4
mov ecx, ebp
mov eax, esi
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov rax, qword [0x1800749c0]
movzx ecx, byte [rcx + rax]
lea rax, [r9 + 1]
mov byte [rbx], cl
cmp rax, qword [r14 + 0x10]
jae 0x18004f386
mov ecx, esi
mov eax, r15d
and ecx, 0xf
shr eax, 6
lea ecx, [rax + rcx*4]
mov rax, qword [0x1800749c0]
movzx edx, byte [rcx + rax]
mov byte [rbx + 1], dl
mov byte [rbx + 2], 0x3d
add rbx, 3
jmp 0x18004f3c4
mov dl, 0x3d
mov byte [rbx + 1], dl
mov byte [rbx + 2], dl
add rbx, 3
jmp 0x18004f3c4
lea rax, [r9 + 1]
cmp rax, qword [r14 + 0x10]
jae 0x18004f3a4
movzx esi, byte [rdi + 1]
jmp 0x18004f3a6
xor esi, esi
mov rax, qword [0x1800749c0]
xor r15d, r15d
mov ecx, ebp
shr rcx, 2
movzx ecx, byte [rcx + rax]
mov byte [rbx], cl
inc rbx
jmp 0x18004f3c4
movzx ebp, byte [rdi]
inc r8d
cmp r8d, 0x25
jb 0x18004f320
jmp 0x18004f3fb
mov rcx, qword [r14 + 0x10]
mov rax, r8
add rcx, 2
xor r8d, r8d
mul rcx
mov rcx, r9
shr rdx, 1
shl rdx, 2
call fcn.18004ed30
mov r10, qword [rsp + 0x88]
mov r9, qword [rsp + 0x70]
add r13d, 0x41
lea eax, [r13 + 0x97]
cmp eax, r12d
jb 0x18004f1b5
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xffffffff
jmp 0x18004f418