Function at 0x513c80
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x513f39
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdi
mov rdx, qword [rax + 0x30]
mov rax, rbx
nop
call rdx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rcx + 0x10]
mov rbx, qword [rcx + 8]
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x513cfe
mov rdx, qword [rbx + rdx*8 - 8]
bsr rdx, rdx
mov rdi, 0xffffffffffffffff
cmove rdx, rdi
shl rsi, 6
lea rdx, [rdx + rsi]
lea rdx, [rdx + 1]
jmp 0x513d00
xor edx, edx
mov qword [rsp + 0x30], rdx
lea rsi, [rdx + 7]
sar rsi, 0x3f
shr rsi, 0x3d
lea rcx, [rsi + rdx]
lea rcx, [rcx + 7]
sar rcx, 3
mov qword [rsp + 0x40], rcx
lea rax, [0x00648900]
mov rbx, rcx
call fcn.0044b520
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
nop
jmp 0x513d60
mov rcx, rax
mov rdx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
nop word [rax + rax]
test rcx, rcx
jne 0x513efb
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rdx
nop
mov rbx, qword [rsp + 0xa0]
mov rcx, rax
mov rdi, qword [rsp + 0x40]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x98]
call fcn.0046f340
nop word [rax + rax]
test rbx, rbx
jne 0x513ed4
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jbe 0x513f2e
mov rsi, qword [rsp + 0x70]
movzx edi, byte [rsi]
mov r8, qword [0x00875a78]
mov r9, qword [0x00875a70]
mov rax, qword [rsp + 0x30]
mov r10, rax
sar rax, 0x3f
shr rax, 0x3d
lea r11, [rax + r10]
sar r11, 3
shl r11, 3
mov rax, r10
sub rax, r11
cmp r8, rax
jbe 0x513f26
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rdx, 1
jbe 0x513f19
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x38], rbx
movzx ecx, byte [rsi + 1]
xor ecx, 0x42
mov byte [rsi + 1], cl
lea rax, [0x00665880]
call fcn.0040d780
mov qword [rsp + 0x48], rax
mov rcx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x40]
mov r8, rsi
mov rax, rcx
mov rcx, rdx
call fcn.004e24a0
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x008d69c0], 0
jne 0x513e72
mov qword [rdi + 8], rax
jmp 0x513e88
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax]
call fcn.00464be0
mov rdi, rdx
mov byte [rdi], 0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
call fcn.004d8560
test rax, rax
jl 0x513eac
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jmp 0x513d42
mov rdx, qword [rsp + 0x88]
mov rsi, qword [rdx + 0x38]
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov rdi, rcx
call rsi
jmp 0x513d42
mov rax, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r8, rbx
mov r9, rcx
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rdi, rcx
mov r8, rbx
mov r9, rsi
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rsi, rdx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov eax, 1
mov rcx, rax
call fcn.00465080
mov rcx, r8
call fcn.00465080
xor eax, eax
mov rcx, rax
call fcn.00465080
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004629a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00513c80