Function at 0x100bc740
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 0x100bc755
xor al, al
pop esi
pop ebp
ret 4
mov al, byte [esi + 0x12]
test al, al
js 0x100bc78b
jle 0x100bc787
cmp dword [esi + 0xc], 0
jle 0x100bc772
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 0x100bc784
add dword [esi + 0x20], eax
add dword [esi + 0x24], eax
mov byte [esi + 0x12], 0xff
mov edx, dword [esi + 0xc]
test edx, edx
jle 0x100bc7cd
mov ecx, dword [esi + 4]
mov eax, dword [esi]
movzx eax, word [eax + ecx*2]
and eax, 0x1ff
cmp edx, eax
jg 0x100bc7c6
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 0x100bc7bc
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 0x100bc7f1
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 0x100bc851
mov byte [esi + 0x13], 0
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
test edi, edi
jle 0x100bc83f
add edx, 0xfffffffe
nop word [eax + eax]
movzx ecx, word [edx]
cmp ecx, 0xfff
ja 0x100bc83f
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 0x100bc820
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 0x100bc8ae
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 0x100bc88a
mov eax, ebx
imul eax, edx
imul ebx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
jmp 0x100bc919
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
cmp ebx, 1
jbe 0x100bc89c
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 0x100bc8d6
mov eax, ebx
mov ecx, esi
shr eax, 6
and eax, 0x3f
push eax
call fcn.1008f660
and ebx, 0x3f
mov dword [esi + 0x14], eax
push ebx
mov ecx, esi
call fcn.1008f660
jmp 0x100bc90c
mov ecx, edi
dec edi
mov dword [esi + 4], edi
movzx ebx, word [eax + edi*2]
cmp ebx, 0x7fff
ja 0x100bc8d6
mov eax, ebx
mov dword [esi + 4], ecx
shr eax, 6
mov ecx, esi
and eax, 0x3f
push eax
call fcn.1008f660
and ebx, 0x3f
mov dword [esi + 0x14], eax
push ebx
mov ecx, esi
call fcn.1008f660
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
cmp byte [esi + 0x11], 0
je 0x100bca13
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x100bca13
mov edi, dword [esi]
nop word [eax + eax]
movzx edx, word [edi + ecx*2 - 2]
cmp edx, 0xfff
jbe 0x100bca13
lea ebx, [ecx - 1]
mov dword [esi + 4], ebx
cmp edx, 0x6fff
ja 0x100bc971
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 0x100bca06
cmp edx, 0x7fff
ja 0x100bca09
mov eax, edx
mov dword [esi + 4], ecx
shr eax, 6
and eax, 0x3f
cmp eax, 0x3d
jb 0x100bc9c7
movzx edi, word [edi + ecx*2]
cmp eax, 0x3e
jae 0x100bc9a0
mov eax, edi
and eax, 0x7fff
inc ecx
jmp 0x100bc9c2
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 0x100bca03
lea eax, [edi + ecx*2]
movzx ecx, word [eax]
cmp edx, 0x3e
jae 0x100bc9e7
mov edx, ecx
and edx, 0x7fff
jmp 0x100bca03
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 0x100bc930
mov eax, dword [esi + 0x14]
sub dword [esi + 0x1c], eax
cmp byte [esi + 0x13], 0
je 0x100bca25
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