Function at 0x1802a76e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rcx + rsi + 0x4c], 0
jne 0x1802a7704
mov qword [rsp + 0x38], rsi
mov r8, qword [rcx + 8]
mov rdx, qword [rcx]
mov rcx, rbx
call fcn.1802c7100
cmp dword [rdi + 0x48], 0
je 0x1802a7810
mov rax, qword [rdi + 8]
mov byte [rbx + rax], 0
lea rdx, [0x180075bf8]
mov rcx, rbx
call fcn.1802b1c80
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1802a7810
lea rdx, [0x180093684]
mov rcx, rax
call fcn.1802c77c8
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x20]
test rax, rax
jne 0x1802a7790
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1802a7776
add rax, rcx
mov qword [rsp + 0x80], rax
je 0x1802a7810
mov byte [rax], 0
lea rdx, [0x18007592c]
call fcn.1802b1c80
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1802a7805
lea rcx, [rdi + 0x20]
call fcn.1802a1690
test eax, eax
jne 0x1802a77d0
mov ecx, dword [0x18007591c]
mov rax, qword [rsp + 0x20]
mov dword [rax], ecx
movzx ecx, word [0x180075920]
mov word [rax + 4], cx
jmp 0x1802a7805
mov rcx, qword [rsp + 0x20]
lea rdx, [rcx + 2]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1802a77e0
mov r8, rax
call fcn.1802c7100
mov rax, qword [rsp + 0x20]
mov dword [rax], 0x74696238
sub rbx, 2
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x80]
mov byte [rax], 0xd
add rbx, qword [rdi + 8]
mov qword [rsp + 0x78], rbx
mov eax, 0xa0d
mov word [rbx], ax
add rbx, 2
mov qword [rsp + 0x78], rbx
lea rcx, [rdi + 0x20]
call fcn.1802a1690
test eax, eax
jne 0x1802a79cf
mov r10d, 0xa0d
mov word [rbx], r10w
add rbx, 2
mov qword [rsp + 0x78], rbx
cmp dword [rdi + 0x48], eax
je 0x1802a79b6
xor edx, edx
mov qword [rsp + 0x28], rdx
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x20], r8
mov r9, qword [rdi + 0x18]
mov qword [rsp + 0x30], r9
lea r11, [0x180074c20]
nop word [rax + rax]
cmp r9, 2
jle 0x1802a792b
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rbx], al
movsx rcx, byte [r8]
and ecx, 3
shl rcx, 4
movzx eax, byte [r8 + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 1], al
movsx rcx, byte [r8 + 1]
and ecx, 0xf
shl rcx, 2
movzx eax, byte [r8 + 2]
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 2], al
movsx rax, byte [r8 + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rbx + 3], al
add rbx, 4
mov qword [rsp + 0x78], rbx
add r8, 3
mov qword [rsp + 0x20], r8
sub r9, 3
mov qword [rsp + 0x30], r9
add rdx, 4
mov qword [rsp + 0x28], rdx
cmp rdx, 0x48
jl 0x1802a7926
xor edx, edx
mov qword [rsp + 0x28], rdx
mov word [rbx], r10w
add rbx, 2
mov qword [rsp + 0x78], rbx
jmp 0x1802a7880
cmp r9, 1
jne 0x1802a7958
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rbx], al
movsx rax, byte [r8]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [rbx + 1], al
mov byte [rbx + 2], 0x3d
jmp 0x1802a799c
cmp r9, 2
jne 0x1802a79a9
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rbx], al
movsx rcx, byte [r8]
and ecx, 3
shl rcx, 4
movzx eax, byte [r8 + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 1], al
movsx rax, byte [r8 + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
mov qword [rsp + 0x78], rbx
mov word [rbx], r10w
add rbx, 2
jmp 0x1802a7ae2
mov r8, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1802c7100
add rbx, qword [rdi + 0x18]
jmp 0x1802a7ae2
mov r8, qword [rdi + 0xa0]
mov rdx, qword [rdi + 0x98]
mov rcx, rbx
call fcn.1802c7100
add rbx, qword [rdi + 0xa0]
mov qword [rsp + 0x78], rbx
lea rcx, [rdi + 0x20]
call fcn.1802a12a0
nop
lea rcx, [rdi + 0x20]
call fcn.1802a16e0
mov qword [rsp + 0x80], rax
nop dword [rax]
test rax, rax
je 0x1802a7a85
mov rcx, rax
call fcn.1800f1480
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1802a7a6a
lea rdx, [rdi + 0x4c]
mov r8, rsi
mov rcx, rbx
call fcn.1802c7100
add rbx, rsi
mov qword [rsp + 0x78], rbx
mov eax, 0xa0d
mov word [rbx], ax
add rbx, 2
mov qword [rsp + 0x78], rbx
mov rdx, rbx
mov rcx, qword [rsp + 0x88]
call fcn.1802a76e0
mov rbx, rax
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rdi + 0x20]
call fcn.1802a1790
mov qword [rsp + 0x80], rax
jmp 0x1802a7a10
jmp 0x1802a7a96
lea rcx, [rdi + 0x20]
call fcn.1802a1870
lea rdx, [rdi + 0x4c]
mov r8, rsi
mov rcx, rbx
call fcn.1802c7100
add rbx, rsi
mov qword [rsp + 0x78], rbx
mov dword [rbx], 0xa0d2d2d
add rbx, 4
mov qword [rsp + 0x78], rbx
mov r8, qword [rdi + 0xb0]
mov rdx, qword [rdi + 0xa8]
mov rcx, rbx
call fcn.1802c7100
add rbx, qword [rdi + 0xb0]
mov qword [rsp + 0x78], rbx
mov rax, rbx
jmp 0x1802a7af1
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret