Function at 0x180004e50
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x24], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x24], 1
mov esi, edi
test r8d, r8d
je 0x1800051f1
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
dec ebp
movzx eax, byte [r12]
mov byte [rsp + rcx + 0x88], al
inc esi
inc rcx
lea r12, [r12 + 1]
movzx edx, byte [rsp + 0x8a]
movzx r14d, byte [rsp + 0x89]
movzx r15d, byte [rsp + 0x88]
cmp rcx, 3
jne 0x1800050aa
movzx eax, r15b
shr al, 2
movzx ecx, al
mov byte [rsp + 0x20], cl
movzx esi, r15b
and sil, 3
shl sil, 4
movzx eax, r14b
shr al, 4
add sil, al
movzx r13d, r14b
and r13b, 0xf
shl r13b, 2
movzx eax, dl
shr al, 6
add r13b, al
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x80], al
lea rax, [0x18006cd38]
cmp qword [0x18006cd50], 0xf
cmova rax, qword [0x18006cd38]
movzx r9d, byte [rcx + rax]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180004f79
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180004f6e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180004f88
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
lea rcx, [0x18006cd38]
cmp qword [0x18006cd50], 0xf
cmova rcx, qword [0x18006cd38]
movzx eax, sil
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180004fd4
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180004fc9
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180004fe3
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
lea rcx, [0x18006cd38]
cmp qword [0x18006cd50], 0xf
cmova rcx, qword [0x18006cd38]
movzx eax, r13b
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000502f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180005024
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000503e
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
lea rcx, [0x18006cd38]
cmp qword [0x18006cd50], 0xf
cmova rcx, qword [0x18006cd38]
movzx eax, byte [rsp + 0x80]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000508e
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180005083
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000509d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
mov esi, edi
mov rcx, rdi
movzx edx, byte [rsp + 0x8a]
test ebp, ebp
jne 0x180004eb0
test esi, esi
je 0x1800051f1
movsxd rax, esi
cmp rax, 3
jge 0x1800050f4
jae 0x180005209
mov byte [rsp + rax + 0x88], 0
inc rax
cmp rax, 3
jl 0x1800050c3
movzx edx, byte [rsp + 0x8a]
movzx r14d, byte [rsp + 0x89]
movzx r15d, byte [rsp + 0x88]
movzx eax, r15b
shr al, 2
mov byte [rsp + 0x20], al
and r15b, 3
shl r15b, 4
movzx eax, r14b
shr al, 4
add r15b, al
mov byte [rsp + 0x21], r15b
and r14b, 0xf
shl r14b, 2
movzx eax, dl
shr al, 6
add r14b, al
mov byte [rsp + 0x22], r14b
and dl, 0x3f
mov byte [rsp + 0x23], dl
lea eax, [rsi + 1]
movsxd rbp, eax
test eax, eax
jle 0x1800051a4
nop dword [rax]
lea rcx, [0x18006cd38]
cmp qword [0x18006cd50], 0xf
cmova rcx, qword [0x18006cd38]
movzx eax, byte [rsp + rdi + 0x20]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000518d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180005182
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000519c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
inc rdi
cmp rdi, rbp
jl 0x180005140
cmp esi, 3
jge 0x1800051f1
mov edi, 3
sub edi, esi
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1800051d9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1800051d1
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1800051eb
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002270
sub rdi, 1
jne 0x1800051b0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18002f044
int3