Function at 0x522320
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5225d9
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 0x52239e
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 0x5223a0
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, [0x006b1440]
mov rbx, rcx
call fcn.0044b720
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor esi, esi
nop
jmp 0x522400
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 0x52259b
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.0046fe40
nop word [rax + rax]
test rbx, rbx
jne 0x522574
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jbe 0x5225ce
mov rsi, qword [rsp + 0x70]
movzx edi, byte [rsi]
mov r8, qword [0x00930cc8]
mov r9, qword [0x00930cc0]
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 0x5225c6
movzx r8d, byte [r9 + rax]
and edi, r8d
mov byte [rsi], dil
cmp rdx, 1
jbe 0x5225b9
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, [0x006d4ba0]
call fcn.0040d6e0
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.004eb1a0
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x00993af0], 0
jne 0x522512
mov qword [rdi + 8], rax
jmp 0x522528
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax]
call fcn.00464fe0
mov rdi, rdx
mov byte [rdi], 0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
call fcn.004e0d00
test rax, rax
jl 0x52254c
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jmp 0x5223e2
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 0x5223e2
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.00465480
mov rcx, r8
call fcn.00465480
xor eax, eax
mov rcx, rax
call fcn.00465480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462da0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00522320