Function at 0x87c101
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x34], 0x953ef0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], 0x95d6ce
mov dword [ebp - 0x28], 0x867dce
mov dword [ebp - 0x24], esp
mov dword [esp], eax
call fcn.0085e721
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add edx, 8
mov dword [ecx + 4], 0
mov dword [ecx], edx
mov byte [ecx + 8], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], edx
sub ecx, eax
je 0x87c22c
mov eax, ecx
mov edx, 0xaaaaaaab
mul edx
mov eax, edx
and edx, 0xfffffffe
shr eax, 1
add edx, eax
mov eax, dword [ebp + 0x10]
sub ecx, edx
sub eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
jmp 0x87c210
movzx eax, byte [ecx]
add ecx, 3
shl eax, 0x10
mov edx, eax
movzx eax, byte [ecx - 2]
mov dword [ebp - 0x50], ecx
shl eax, 8
add eax, edx
movzx edx, byte [ecx - 1]
mov ecx, eax
add edx, eax
shr eax, 0xc
and eax, 0x3f
shr ecx, 0x12
movzx eax, byte [eax + 0xa23620]
movzx ecx, byte [ecx + 0xa23620]
mov byte [ebp - 0xb], al
mov eax, edx
and edx, 0x3f
sar eax, 6
mov byte [ebp - 0xc], cl
and eax, 0x3f
movzx eax, byte [eax + 0xa23620]
mov byte [ebp - 0xa], al
movzx eax, byte [edx + 0xa23620]
mov edx, dword [ebp + 8]
mov byte [ebp - 9], al
mov eax, 0x3fffffff
sub eax, dword [edx + 4]
cmp eax, 3
jbe 0x87c329
lea eax, [ebp - 0xc]
mov dword [esp + 4], 4
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], 1
call fcn.00931e71
sub esp, 8
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x54], ecx
jne 0x87c181
cmp dword [ebp - 0x58], 2
je 0x87c2b9
cmp dword [ebp - 0x58], 1
je 0x87c241
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0085e7b1
mov eax, dword [ebp + 8]
leave
ret
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
mov edx, eax
shl eax, 4
shr edx, 2
and eax, 0x3f
movzx edx, byte [edx + 0xa23620]
movzx eax, byte [eax + 0xa23620]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp + 8]
mov byte [ebp - 0xb], al
mov eax, 0x3d3d
mov word [ebp - 0xa], ax
mov eax, 0x3fffffff
sub eax, dword [edx + 4]
cmp eax, 3
jbe 0x87c33c
lea eax, [ebp - 0xc]
mov dword [esp + 4], 4
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], 1
call fcn.00931e71
lea eax, [ebp - 0x4c]
sub esp, 8
mov dword [esp], eax
call fcn.0085e7b1
mov eax, dword [ebp + 8]
leave
ret
mov eax, dword [ebp - 0x54]
mov byte [ebp - 9], 0x3d
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
shl edx, 0x10
shl eax, 8
add eax, edx
shr edx, 0x12
movzx edx, byte [edx + 0xa23620]
mov byte [ebp - 0xc], dl
mov edx, eax
sar eax, 6
sar edx, 0xc
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [eax + 0xa23620]
movzx edx, byte [edx + 0xa23620]
mov byte [ebp - 0xa], al
mov eax, 0x3fffffff
mov byte [ebp - 0xb], dl
mov edx, dword [ebp + 8]
sub eax, dword [edx + 4]
cmp eax, 3
ja 0x87c283
mov dword [esp], 0x980f50
mov dword [ebp - 0x48], 1
call fcn.0096e795
lea esi, [esi]
mov dword [esp], 0x980f50
mov dword [ebp - 0x48], 1
call fcn.0096e795
mov dword [esp], 0x980f50
mov dword [ebp - 0x48], 1
call fcn.0096e795
add ebp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
je 0x87c36a
mov dword [esp], eax
call fcn.009676c1
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call fcn.0085eaa1
nop
nop
nop
nop
nop