Function at 0x100c0b50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [eax], 0
jle 0x100c0b68
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov al, byte [esi + 0x12]
test al, al
jle 0x100c0b86
mov eax, dword [esi + 0x14]
add dword [esi + 0x1c], eax
cmp byte [esi + 0x13], 0
mov eax, dword [esi + 0x18]
je 0x100c0b81
add dword [esi + 0x20], eax
add dword [esi + 0x24], eax
jmp 0x100c0ba2
jns 0x100c0b9e
cmp dword [esi + 0xc], 0
jle 0x100c0b9e
inc dword [esi + 4]
mov al, 1
mov byte [esi + 0x12], 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov byte [esi + 0x12], 1
mov eax, dword [esi + 0xc]
cmp eax, 1
jl 0x100c0bc0
jle 0x100c0bb9
dec eax
mov dword [esi + 0xc], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [esi + 8]
cmp ecx, ebx
jl 0x100c0be9
pop ebx
mov word [esi + 0x12], 0
xor al, al
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
push edi
movzx edi, word [edx + ecx*2]
inc ecx
mov dword [esi + 4], ecx
cmp edi, 0xfff
ja 0x100c0c6f
mov byte [esi + 0x13], 0
lea eax, [edi + 1]
mov dword [esi + 0x14], eax
cmp ecx, ebx
jge 0x100c0c35
mov dword [ebp - 4], ecx
lea edx, [edx + ecx*2]
movzx edi, word [edx]
cmp edi, 0xfff
ja 0x100c0c35
mov eax, dword [esi + 0x14]
add edx, 2
mov ecx, dword [ebp - 4]
inc eax
inc ecx
add eax, edi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], eax
mov dword [ebp - 4], ecx
cmp ecx, ebx
jl 0x100c0c10
cmp byte [ebp + 8], 0
mov dword [esi + 0x18], eax
je 0x100c0dd1
add dword [esi + 0x1c], eax
add dword [esi + 0x24], eax
cmp ecx, ebx
jl 0x100c0c69
pop edi
pop ebx
mov byte [esi + 0x12], 0
xor al, al
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov dword [esi + 4], eax
mov byte [esi + 0x13], 1
cmp edi, 0x6fff
ja 0x100c0cc2
mov ecx, edi
mov edx, edi
shr ecx, 9
and edi, 0x1ff
shr edx, 0xc
and ecx, 7
inc edi
cmp byte [esi + 0x11], 0
je 0x100c0ca5
mov eax, edi
imul eax, edx
imul edi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
jmp 0x100c0ced
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
cmp edi, 1
jbe 0x100c0dd1
mov dword [esi + 0xc], edi
mov al, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
mov ecx, esi
shr eax, 6
and eax, 0x3f
push eax
call fcn.10051290
and edi, 0x3f
mov dword [esi + 0x14], eax
push edi
mov ecx, esi
call fcn.10051290
cmp byte [esi + 0x11], 0
mov dword [esi + 0x18], eax
je 0x100c0dd1
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jge 0x100c0dd1
mov ebx, dword [esi]
nop dword [eax + eax]
lea ecx, [edi + edi]
movzx edx, word [ecx + ebx]
cmp edx, 0xfff
jbe 0x100c0dd1
inc edi
mov eax, edx
mov dword [esi + 4], edi
cmp edx, 0x6fff
ja 0x100c0d41
mov ecx, edx
shr eax, 0xc
and ecx, 0x1ff
shr edx, 9
inc ecx
and edx, 7
imul eax, ecx
add dword [esi + 0x14], eax
imul edx, ecx
jmp 0x100c0dc5
shr eax, 6
and eax, 0x3f
cmp eax, 0x3d
jb 0x100c0d83
movzx ecx, word [ebx + ecx + 2]
cmp eax, 0x3e
jae 0x100c0d60
mov eax, ecx
and eax, 0x7fff
inc edi
jmp 0x100c0d80
and eax, 1
and ecx, 0x7fff
shl eax, 0xf
or ecx, eax
movzx eax, word [ebx + edi*2 + 2]
shl ecx, 0xf
and eax, 0x7fff
or eax, ecx
add edi, 2
mov dword [esi + 4], edi
add dword [esi + 0x14], eax
and edx, 0x3f
cmp edx, 0x3d
jb 0x100c0dc5
movzx ecx, word [ebx + edi*2]
cmp edx, 0x3e
jae 0x100c0da2
mov edx, ecx
and edx, 0x7fff
inc edi
jmp 0x100c0dc2
movzx eax, word [ebx + edi*2 + 2]
and edx, 1
shl edx, 0xf
and ecx, 0x7fff
or edx, ecx
and eax, 0x7fff
shl edx, 0xf
or edx, eax
add edi, 2
mov dword [esi + 4], edi
add dword [esi + 0x18], edx
cmp edi, dword [esi + 8]
jl 0x100c0d00
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8