Function at 0x100c0e00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [eax], 0
jle 0x100c0e15
xor al, al
pop esi
pop ebp
ret 4
mov al, byte [esi + 0x12]
test al, al
js 0x100c0e4b
jle 0x100c0e47
cmp dword [esi + 0xc], 0
jle 0x100c0e32
dec dword [esi + 4]
mov al, 1
mov byte [esi + 0x12], 0xff
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x14]
add dword [esi + 0x1c], eax
cmp byte [esi + 0x13], 0
mov eax, dword [esi + 0x18]
je 0x100c0e44
add dword [esi + 0x20], eax
add dword [esi + 0x24], eax
mov byte [esi + 0x12], 0xff
mov edx, dword [esi + 0xc]
test edx, edx
jle 0x100c0e8d
mov ecx, dword [esi + 4]
mov eax, dword [esi]
movzx eax, word [eax + ecx*2]
and eax, 0x1ff
cmp edx, eax
jg 0x100c0e86
lea eax, [edx + 1]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
sub dword [esi + 0x1c], eax
cmp byte [esi + 0x13], 0
mov eax, dword [esi + 0x18]
je 0x100c0e7c
sub dword [esi + 0x20], eax
sub dword [esi + 0x24], eax
mov al, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0xc], 0
push edi
mov edi, dword [esi + 4]
test edi, edi
jg 0x100c0eb1
pop edi
mov word [esi + 0x12], 0
xor al, al
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
pop esi
pop ebp
ret 4
mov eax, dword [esi]
dec edi
lea edx, [eax + edi*2]
mov dword [esi + 4], edi
push ebx
movzx ebx, word [edx]
cmp ebx, 0xfff
ja 0x100c0f11
mov byte [esi + 0x13], 0
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
test edi, edi
jle 0x100c0eff
add edx, 0xfffffffe
nop word [eax + eax]
movzx ecx, word [edx]
cmp ecx, 0xfff
ja 0x100c0eff
mov eax, dword [esi + 0x14]
dec edi
inc eax
mov dword [esi + 4], edi
add eax, ecx
sub edx, 2
mov dword [esi + 0x14], eax
test edi, edi
jg 0x100c0ee0
sub dword [esi + 0x1c], eax
sub dword [esi + 0x24], eax
pop ebx
mov dword [esi + 0x18], eax
mov al, 1
pop edi
pop esi
pop ebp
ret 4
mov byte [esi + 0x13], 1
cmp ebx, 0x6fff
ja 0x100c0f6e
mov ecx, ebx
mov edx, ebx
shr ecx, 9
and ebx, 0x1ff
shr edx, 0xc
and ecx, 7
inc ebx
cmp byte [esi + 0x11], 0
je 0x100c0f4a
mov eax, ebx
imul eax, edx
imul ebx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
jmp 0x100c0fd9
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
cmp ebx, 1
jbe 0x100c0f5c
mov dword [esi + 0xc], 1
sub dword [esi + 0x1c], edx
mov al, 1
sub dword [esi + 0x20], ecx
sub dword [esi + 0x24], ecx
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp ebx, 0x7fff
ja 0x100c0f96
mov eax, ebx
mov ecx, esi
shr eax, 6
and eax, 0x3f
push eax
call fcn.10051490
and ebx, 0x3f
mov dword [esi + 0x14], eax
push ebx
mov ecx, esi
call fcn.10051490
jmp 0x100c0fcc
mov ecx, edi
dec edi
mov dword [esi + 4], edi
movzx ebx, word [eax + edi*2]
cmp ebx, 0x7fff
ja 0x100c0f96
mov eax, ebx
mov dword [esi + 4], ecx
shr eax, 6
mov ecx, esi
and eax, 0x3f
push eax
call fcn.10051490
and ebx, 0x3f
mov dword [esi + 0x14], eax
push ebx
mov ecx, esi
call fcn.10051490
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
cmp byte [esi + 0x11], 0
je 0x100c10d3
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x100c10d3
mov edi, dword [esi]
nop word [eax + eax]
movzx edx, word [edi + ecx*2 - 2]
cmp edx, 0xfff
jbe 0x100c10d3
lea ebx, [ecx - 1]
mov dword [esi + 4], ebx
cmp edx, 0x6fff
ja 0x100c1031
mov ecx, edx
mov eax, edx
and ecx, 0x1ff
shr eax, 0xc
inc ecx
shr edx, 9
imul eax, ecx
and edx, 7
add dword [esi + 0x14], eax
imul edx, ecx
jmp 0x100c10c6
cmp edx, 0x7fff
ja 0x100c10c9
mov eax, edx
mov dword [esi + 4], ecx
shr eax, 6
and eax, 0x3f
cmp eax, 0x3d
jb 0x100c1087
movzx edi, word [edi + ecx*2]
cmp eax, 0x3e
jae 0x100c1060
mov eax, edi
and eax, 0x7fff
inc ecx
jmp 0x100c1082
and eax, 1
and edi, 0x7fff
shl eax, 0xf
or edi, eax
mov eax, dword [esi]
shl edi, 0xf
movzx eax, word [eax + ecx*2 + 2]
and eax, 0x7fff
or eax, edi
add ecx, 2
mov edi, dword [esi]
mov dword [esi + 4], ecx
add dword [esi + 0x14], eax
and edx, 0x3f
cmp edx, 0x3d
jb 0x100c10c3
lea eax, [edi + ecx*2]
movzx ecx, word [eax]
cmp edx, 0x3e
jae 0x100c10a7
mov edx, ecx
and edx, 0x7fff
jmp 0x100c10c3
movzx eax, word [eax + 2]
and edx, 1
shl edx, 0xf
and ecx, 0x7fff
or edx, ecx
and eax, 0x7fff
shl edx, 0xf
or edx, eax
mov dword [esi + 4], ebx
add dword [esi + 0x18], edx
mov ecx, ebx
test ebx, ebx
jg 0x100c0ff0
mov eax, dword [esi + 0x14]
sub dword [esi + 0x1c], eax
cmp byte [esi + 0x13], 0
je 0x100c10e5
mov eax, dword [esi + 0x18]
sub dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
sub dword [esi + 0x24], eax
mov al, 1
pop ebx
pop edi
pop esi
pop ebp
ret 4