Function at 0x51d6e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51d999
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 0x51d75e
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 0x51d760
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, [0x00650240]
mov rbx, rcx
call fcn.0044b440
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
nop
jmp 0x51d7c0
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 0x51d95b
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.0047ab00
nop word [rax + rax]
test rbx, rbx
jne 0x51d934
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jbe 0x51d98e
mov rsi, qword [rsp + 0x70]
movzx edi, byte [rsi]
mov r8, qword [0x0086de68]
mov r9, qword [0x0086de60]
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 0x51d986
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rdx, 1
jbe 0x51d979
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, [0x0066cb20]
call fcn.0040d6a0
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.004ebfc0
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x008ce5c0], 0
jne 0x51d8d2
mov qword [rdi + 8], rax
jmp 0x51d8e8
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax]
call fcn.00464f80
mov rdi, rdx
mov byte [rdi], 0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
call fcn.004e1ba0
test rax, rax
jl 0x51d90c
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jmp 0x51d7a2
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 0x51d7a2
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.00465420
mov rcx, r8
call fcn.00465420
xor eax, eax
mov rcx, rax
call fcn.00465420
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462d40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0051d6e0