Function at 0x180008140
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x38], r8
mov esi, edx
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov r10d, 0xf
mov qword [rbp - 0x18], r10
mov byte [rbp - 0x30], bl
mov edi, ebx
test edx, edx
je 0x18000849e
mov ecx, ebx
nop dword [rax + rax]
dec esi
movzx eax, byte [r14]
mov byte [rbp + rcx - 0x50], al
inc edi
inc rcx
lea r14, [r14 + 1]
movzx edx, byte [rbp - 0x4e]
movzx r15d, byte [rbp - 0x4f]
movzx r12d, byte [rbp - 0x50]
cmp rcx, 3
jne 0x180008368
movzx eax, r12b
shr al, 2
movzx ecx, al
mov byte [rbp - 0x48], cl
movzx edi, r12b
and dil, 3
shl dil, 4
movzx eax, r15b
shr al, 4
add dil, al
movzx r13d, r15b
and r13b, 0xf
shl r13b, 2
movzx eax, dl
shr al, 6
add r13b, al
movzx eax, dl
and al, 0x3f
mov byte [rbp - 0x4c], al
lea rax, [0x18004ebe8]
cmp qword [0x18004ec00], 0x10
cmovae rax, qword [0x18004ebe8]
movzx r9d, byte [rcx + rax]
mov rcx, qword [rbp - 0x20]
cmp rcx, r10
jae 0x180008250
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r10, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180008259
lea rcx, [rbp - 0x30]
call fcn.180001d30
lea rcx, [0x18004ebe8]
cmp qword [0x18004ec00], 0x10
cmovae rcx, qword [0x18004ebe8]
movzx eax, dil
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
cmp rcx, rdx
jae 0x1800082a6
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800082af
lea rcx, [rbp - 0x30]
call fcn.180001d30
lea rcx, [0x18004ebe8]
cmp qword [0x18004ec00], 0x10
cmovae rcx, qword [0x18004ebe8]
movzx eax, r13b
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
cmp rcx, rdx
jae 0x1800082fc
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180008305
lea rcx, [rbp - 0x30]
call fcn.180001d30
lea rcx, [0x18004ebe8]
cmp qword [0x18004ec00], 0x10
cmovae rcx, qword [0x18004ebe8]
movzx eax, byte [rbp - 0x4c]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
cmp rcx, rdx
jae 0x180008352
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000835b
lea rcx, [rbp - 0x30]
call fcn.180001d30
mov edi, ebx
mov rcx, rbx
mov r10, qword [rbp - 0x18]
movzx edx, byte [rbp - 0x4e]
test esi, esi
jne 0x1800081a0
test edi, edi
je 0x18000849e
movsxd rax, edi
cmp rax, 3
jge 0x1800083a3
jae 0x180008531
mov byte [rbp + rax - 0x50], 0
inc rax
cmp rax, 3
jl 0x180008381
movzx edx, byte [rbp - 0x4e]
movzx r15d, byte [rbp - 0x4f]
movzx r12d, byte [rbp - 0x50]
movzx eax, r12b
shr al, 2
mov byte [rbp - 0x48], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rbp - 0x47], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, dl
shr al, 6
add r15b, al
mov byte [rbp - 0x46], r15b
and dl, 0x3f
mov byte [rbp - 0x45], dl
lea eax, [rdi + 1]
movsxd rsi, eax
test eax, eax
jle 0x18000844f
nop dword [rax + rax]
lea rcx, [0x18004ebe8]
cmp qword [0x18004ec00], 0x10
cmovae rcx, qword [0x18004ebe8]
movzx eax, byte [rbp + rbx - 0x48]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbp - 0x20]
cmp rcx, r10
jae 0x18000843a
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r10, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180008443
lea rcx, [rbp - 0x30]
call fcn.180001d30
inc rbx
mov r10, qword [rbp - 0x18]
cmp rbx, rsi
jl 0x1800083f0
cmp edi, 3
jge 0x18000849e
mov ebx, 3
sub ebx, edi
nop dword [rax + rax]
mov rcx, qword [rbp - 0x20]
cmp rcx, r10
jae 0x180008486
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r10, 0x10
cmovae rax, qword [rbp - 0x30]
mov word [rax + rcx], 0x3d
jmp 0x180008492
mov r9b, 0x3d
lea rcx, [rbp - 0x30]
call fcn.180001d30
sub rbx, 1
je 0x18000849e
mov r10, qword [rbp - 0x18]
jmp 0x180008460
mov eax, dword [rbp - 0x20]
inc eax
mov rbx, qword [rbp - 0x40]
mov dword [rbx], eax
mov ecx, eax
call fcn.18000ef40
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
mov edx, dword [rbx]
mov rcx, rax
call fcn.18001acc8
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x180008507
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008502
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000852b
call fcn.18000e8e0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18000e8c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001a3a8
nop
call fcn.18000e9f0
nop
int3