Function at 0x10014026
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
jne 0x10014056
cmp dword [ebp + 0xc], ebx
je 0x1001405d
push 4
pop eax
mov dword [ebp - 0x10], eax
push 0x1004fa70
lea eax, [ebp - 0x10]
mov ecx, str.Null_raw_data_buffer
push eax
mov dword [ebp - 0xc], ecx
call fcn.10035946
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1001406c
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x1001420a
mov ecx, dword [0x100594c4]
push esi
push 0xffffffffffffffff
push ebx
call fcn.10002429
push 3
xor edx, edx
pop ecx
mov eax, edi
div ecx
mov esi, dword [0x100594c4]
shl eax, 2
call fcn.10009606
xor ecx, ecx
cmp edi, 2
mov dword [ebp - 0xc], ecx
jbe 0x10014145
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 1
sub dword [ebp - 8], eax
lea esi, [eax + 1]
movzx eax, byte [esi - 1]
movzx ecx, byte [esi]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
add eax, ecx
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 4], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 3], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
cmp ebx, 0x4c
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 2], cl
mov byte [ebp - 1], al
jb 0x1001411b
mov edi, dword [0x100594c4]
xor ebx, ebx
push 0xa
inc ebx
call fcn.10002929
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [0x100594c4]
call fcn.10002e2a
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 3
add esi, 3
add eax, esi
add ebx, 4
cmp eax, edi
jb 0x100140b0
mov ecx, dword [ebp - 0xc]
sub edi, ecx
dec edi
pop esi
je 0x10014196
dec edi
jne 0x100141ea
mov eax, dword [ebp + 8]
add ecx, eax
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
add eax, ecx
shl eax, 8
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 4], cl
mov ecx, eax
shr ecx, 0xc
shr eax, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 3], cl
mov byte [ebp - 2], al
jmp 0x100141c1
mov eax, dword [ebp + 8]
movzx eax, byte [ecx + eax]
shl eax, 0x10
mov ecx, eax
shr eax, 0xc
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 4], cl
mov byte [ebp - 3], al
mov byte [ebp - 2], 0x3d
cmp ebx, 0x4c
mov byte [ebp - 1], 0x3d
jb 0x100141da
mov edi, dword [0x100594c4]
xor ebx, ebx
push 0xa
inc ebx
call fcn.10002929
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [0x100594c4]
call fcn.10002e2a
mov eax, dword [0x100594c4]
cmp dword [eax + 0x18], 0x10
jb 0x100141fa
mov ecx, dword [eax + 4]
jmp 0x100141fd
lea ecx, [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
pop edi
pop ebx
leave
ret