Function at 0x180001840
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x28], esi
mov ecx, dword [0x18002b69c]
mov rax, qword gs:[0x58]
mov edx, 4
mov r9, qword [rax + rcx*8]
mov eax, dword [rdx + r9]
cmp dword [0x18002c368], eax
jle 0x1800018f2
lea rcx, [0x18002c368]
call fcn.180006150
cmp dword [0x18002c368], 0xffffffff
jne 0x1800018f2
mov qword [0x18002c370], rsi
mov qword [0x18002c380], rsi
mov qword [0x18002c388], 0xf
lea r8d, [rsi + 0x40]
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea rcx, [0x18002c370]
call fcn.180004fe0
lea rcx, [0x18001db70]
call fcn.1800068a0
nop
lea rcx, [0x18002c368]
call fcn.1800060f0
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x28], 1
mov ebx, esi
test ebp, ebp
je 0x180001b3a
mov rcx, rsi
nop dword [rax]
dec ebp
movzx eax, byte [r14]
mov byte [rsp + rcx + 0x20], al
inc ebx
inc rcx
lea r14, [r14 + 1]
movzx r13d, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
cmp rcx, 3
jne 0x180001a03
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x24], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x25], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x26], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x27], al
mov rbx, rsi
nop word [rax + rax]
lea rcx, [0x18002c370]
cmp qword [0x18002c388], 0x10
cmovae rcx, qword [0x18002c370]
movzx eax, byte [rsp + rbx + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800019ed
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800019e2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800019f5
mov rcx, rdi
call fcn.180005440
inc rbx
cmp rbx, 4
jl 0x1800019a0
mov ebx, esi
mov rcx, rsi
test ebp, ebp
jne 0x180001920
test ebx, ebx
je 0x180001b3a
movsxd rax, ebx
cmp rax, 3
jge 0x180001a42
jae 0x180001b5b
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 3
jl 0x180001a1c
movzx r13d, byte [rsp + 0x22]
movzx r15d, byte [rsp + 0x21]
movzx r12d, byte [rsp + 0x20]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x24], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x25], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, r13b
shr al, 6
add r15b, al
mov byte [rsp + 0x26], r15b
and r13b, 0x3f
mov byte [rsp + 0x27], r13b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x180001aed
nop
lea rcx, [0x18002c370]
cmp qword [0x18002c388], 0x10
cmovae rcx, qword [0x18002c370]
movzx eax, byte [rsp + rsi + 0x24]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180001add
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x180001ad2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180001ae5
mov rcx, rdi
call fcn.180005440
inc rsi
cmp rsi, rbp
jl 0x180001a90
cmp ebx, 3
jge 0x180001b3a
mov eax, 3
sub eax, ebx
mov ebx, eax
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180001b29
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x180001b21
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x180001b34
mov r9b, 0x3d
mov rcx, rdi
call fcn.180005440
sub rbx, 1
jne 0x180001b00
mov rax, rdi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.180006368
int3