Function at 0x1004d980
Capabilities:
Encode data using base64

Disassembly:
push 0x28
mov eax, 0x100dcada
call fcn.100d393a
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x20]
xor edx, edx
mov ebx, dword [ebp + 8]
push 3
pop ecx
div ecx
xor esi, esi
mov dword [ebp - 0x28], ebx
mov eax, edx
mov dword [ebp - 4], esi
shr eax, 1
and edx, 1
and eax, 1
lea ecx, [eax + edx*2]
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
lea eax, [esi + 3]
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp + 0x10]
ja 0x1004da6e
mov cl, byte [esi + edi + 1]
mov byte [ebp - 0x22], cl
mov cl, byte [esi + edi + 2]
movzx esi, byte [esi + edi]
mov eax, esi
mov byte [ebp - 0x21], cl
shr eax, 2
lea ecx, [ebp - 0x20]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x23], al
lea eax, [ebp - 0x23]
push eax
call fcn.10042e1e
movzx eax, byte [ebp - 0x22]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
and esi, 3
shr eax, 4
add esi, esi
mov al, byte [eax + esi*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x22], al
lea eax, [ebp - 0x22]
push eax
call fcn.10042e1e
movzx esi, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
mov eax, esi
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
and esi, 0x3f
lea ecx, [ebp - 0x20]
mov al, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
mov esi, dword [ebp - 0x30]
jmp 0x1004d9c9
mov ecx, dword [ebp - 0x34]
cmp ecx, 2
jne 0x1004dacd
movzx eax, byte [esi + edi]
lea ecx, [ebp - 0x20]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
movzx eax, byte [esi + edi]
lea ecx, [ebp - 0x20]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
cmp byte [ebp + 0x14], 0
je 0x1004db49
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0x3d
push eax
lea ecx, [ebp - 0x20]
call fcn.10042e1e
jmp 0x1004db39
cmp ecx, 1
jne 0x1004db49
movzx eax, byte [esi + edi]
lea ecx, [ebp - 0x20]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
movzx ecx, byte [esi + edi]
movzx eax, byte [esi + edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
movzx eax, byte [esi + edi + 1]
lea ecx, [ebp - 0x20]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push eax
call fcn.10042e1e
cmp byte [ebp + 0x14], 0
je 0x1004db49
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0x3d
push eax
lea ecx, [ebp - 0x20]
call fcn.10042e1e
lea eax, [ebp - 0x21]
mov ecx, ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10042e1e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.10042e1e
mov eax, ebx
jmp 0x1004db80
call fcn.100d3887
ret 0x10