Function at 0x10008b00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100364a9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1004b034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov byte [esi], dl
xor edi, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], edx
je 0x10008dfe
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
dec dword [ebp + 0x10]
mov byte [ebp + edi - 0x10], cl
inc edi
inc eax
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], eax
cmp edi, 3
jne 0x10008c5a
mov al, byte [ebp - 0x10]
mov cl, al
and al, 3
shr cl, 2
shl al, 4
mov byte [ebp - 0x18], cl
mov cl, al
mov al, byte [ebp - 0xf]
mov bl, al
and al, 0xf
add al, al
shr bl, 4
add cl, bl
mov byte [ebp - 0x17], cl
mov dword [ebp - 0x14], edx
lea ecx, [eax + eax]
mov al, byte [ebp - 0xe]
mov bl, al
shr bl, 6
add ecx, ebx
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
mov eax, dword [0x10052dc8]
mov edx, 0x10
cmp dword [0x10052ddc], edx
jae 0x10008bc0
mov eax, 0x10052dc8
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x18]
mov bl, byte [ecx + eax]
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x10008d14
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x10008d14
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x10008bfe
push eax
push edi
push esi
call fcn.10002fd0
mov edx, 0x10
jmp 0x10008c12
test edi, edi
jne 0x10008c14
mov dword [esi + 0x10], edi
cmp ecx, edx
jb 0x10008c0d
mov eax, dword [esi]
jmp 0x10008c0f
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x10008c3e
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], edx
jb 0x10008c27
mov eax, dword [esi]
jmp 0x10008c29
mov eax, esi
mov byte [eax + ecx], bl
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edx
jb 0x10008c38
mov eax, dword [esi]
jmp 0x10008c3a
mov eax, esi
mov byte [eax + edi], 0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 4
jl 0x10008ba9
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x14]
xor edx, edx
cmp dword [ebp + 0x10], edx
jne 0x10008b51
cmp edi, edx
je 0x10008dfe
cmp edi, 3
jge 0x10008c88
mov ecx, 3
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push edx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
mov al, byte [ebp - 0x10]
mov cl, al
and al, 3
shl al, 4
shr cl, 2
mov byte [ebp - 0x18], cl
mov cl, al
mov al, byte [ebp - 0xf]
mov bl, al
and al, 0xf
add al, al
shr bl, 4
add cl, bl
mov byte [ebp - 0x17], cl
mov dword [ebp + 0x10], edx
lea ecx, [eax + eax]
mov al, byte [ebp - 0xe]
shr al, 6
add ecx, eax
lea eax, [edi + 1]
mov byte [ebp - 0x16], cl
cmp eax, edx
jle 0x10008d75
jmp 0x10008cd0
cmp dword [0x10052ddc], 0x10
mov eax, dword [0x10052dc8]
jae 0x10008ce3
mov eax, 0x10052dc8
movzx ecx, byte [ebp + edx - 0x18]
mov bl, byte [ecx + eax]
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x10008d14
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x10008d14
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x10008d1f
push eax
push edi
push esi
call fcn.10002fd0
mov edx, dword [ebp + 0x10]
jmp 0x10008d34
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
test edi, edi
jne 0x10008d36
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x10008d2f
mov eax, dword [esi]
jmp 0x10008d31
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x10008d62
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x10008d4a
mov eax, dword [esi]
jmp 0x10008d4c
mov eax, esi
mov byte [eax + ecx], bl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x10008d5c
mov eax, dword [esi]
jmp 0x10008d5e
mov eax, esi
mov byte [eax + edi], 0
mov eax, dword [ebp - 0x14]
inc edx
inc eax
mov dword [ebp + 0x10], edx
cmp edx, eax
jl 0x10008cd0
mov edi, dword [ebp - 0x14]
cmp edi, 3
jge 0x10008dfe
jmp 0x10008d83
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
or edx, 0xffffffff
inc edi
sub edx, eax
mov dword [ebp - 0x14], edi
cmp edx, 1
jbe 0x10008d14
lea edi, [eax + 1]
cmp edi, 0xfffffffe
ja 0x10008d14
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x10008db1
push eax
push edi
push esi
call fcn.10002fd0
jmp 0x10008dc6
test edi, edi
jne 0x10008dc8
mov dword [esi + 0x10], edi
cmp ecx, 0x10
jb 0x10008dc1
mov eax, dword [esi]
jmp 0x10008dc3
mov eax, esi
mov byte [eax], 0
test edi, edi
setne al
test al, al
je 0x10008df8
mov ecx, dword [esi + 0x10]
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x10008de0
mov eax, dword [esi]
jmp 0x10008de2
mov eax, esi
mov byte [eax + ecx], 0x3d
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edx
jb 0x10008df2
mov eax, dword [esi]
jmp 0x10008df4
mov eax, esi
mov byte [edi + eax], 0
cmp dword [ebp - 0x14], 3
jl 0x10008d80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret