Function at 0x10005c90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b5a9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x68], 0
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x70], ebx
mov byte [ebx], 0
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 1
test eax, eax
je 0x10005f88
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
mov byte [ebp + edi - 0x5c], al
mov ah, byte [ebp - 0x5a]
mov ch, byte [ebp - 0x5b]
mov cl, byte [ebp - 0x5c]
inc edi
inc edx
mov dword [ebp - 0x6c], edx
mov byte [ebp - 0x55], ah
mov byte [ebp - 0x63], ch
mov byte [ebp - 0x62], cl
cmp edi, 3
jne 0x10005df4
mov al, cl
shr al, 2
mov byte [ebp - 0x60], al
and cl, 3
shl cl, 4
mov al, ch
shr al, 4
add cl, al
mov byte [ebp - 0x5f], cl
mov cl, ch
and cl, 0xf
mov al, ah
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x5e], cl
mov byte [ebp - 0x5d], al
xor edi, edi
movzx eax, byte [ebp + edi - 0x60]
mov ecx, dword [ebx + 0x10]
mov dl, byte [ebp + eax - 0x54]
or eax, 0xffffffff
sub eax, ecx
mov byte [ebp - 0x61], dl
cmp eax, 1
jbe 0x10005e29
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10005e29
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10005dad
push ecx
push esi
mov ecx, ebx
call fcn.100054e0
mov dl, byte [ebp - 0x61]
test esi, esi
je 0x10005ddf
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10005dc7
mov eax, dword [ebx]
jmp 0x10005dc9
test esi, esi
jne 0x10005da0
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10005dc0
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10005ddf
mov eax, ebx
mov byte [eax], 0
jmp 0x10005ddf
mov eax, ebx
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10005dd9
mov eax, dword [ebx]
jmp 0x10005ddb
mov eax, ebx
mov byte [eax + esi], 0
inc edi
cmp edi, 4
jl 0x10005d60
mov edx, dword [ebp - 0x6c]
mov ch, byte [ebp - 0x63]
mov cl, byte [ebp - 0x62]
xor edi, edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10005d03
test edi, edi
je 0x10005f88
mov eax, edi
cmp edi, 3
jge 0x10005e38
cmp eax, 3
jae 0x10005e33
mov byte [ebp + eax - 0x5c], 0
inc eax
cmp eax, 3
jl 0x10005e11
mov dl, byte [ebp - 0x5a]
mov ch, byte [ebp - 0x5b]
mov cl, byte [ebp - 0x5c]
jmp 0x10005e3b
push str.string_too_long
call fcn.100599f2
call fcn.1005a87f
mov dl, byte [ebp - 0x55]
mov al, cl
shr al, 2
mov byte [ebp - 0x60], al
mov al, ch
and cl, 3
shr al, 4
shl cl, 4
add cl, al
mov al, dl
and ch, 0xf
shr al, 6
shl ch, 2
and dl, 0x3f
add ch, al
mov byte [ebp - 0x5d], dl
xor edx, edx
lea eax, [edi + 1]
mov byte [ebp - 0x5f], cl
mov byte [ebp - 0x5e], ch
mov dword [ebp - 0x5c], edx
test eax, eax
jle 0x10005f0c
lea esp, [esp]
movzx eax, byte [ebp + edx - 0x60]
mov ecx, dword [ebx + 0x10]
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0x55], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x10005e29
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10005e29
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10005ec5
push ecx
push esi
mov ecx, ebx
call fcn.100054e0
mov edx, dword [ebp - 0x5c]
test esi, esi
je 0x10005efd
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10005edf
mov eax, dword [ebx]
jmp 0x10005ee1
test esi, esi
jne 0x10005eb8
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10005ed8
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10005efd
mov eax, ebx
mov byte [eax], 0
jmp 0x10005efd
mov eax, ebx
mov dl, byte [ebp - 0x55]
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10005ef4
mov eax, dword [ebx]
jmp 0x10005ef6
mov eax, ebx
mov edx, dword [ebp - 0x5c]
mov byte [eax + esi], 0
inc edx
lea eax, [edi + 1]
mov dword [ebp - 0x5c], edx
cmp edx, eax
jl 0x10005e80
cmp edi, 3
jge 0x10005f88
mov ecx, dword [ebx + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc edi
cmp eax, 1
jbe 0x10005e29
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x10005e29
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x10005f50
push ecx
push esi
mov ecx, ebx
call fcn.100054e0
test esi, esi
je 0x10005f83
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x10005f6a
mov eax, dword [ebx]
jmp 0x10005f6c
test esi, esi
jne 0x10005f43
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x10005f63
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x10005f83
mov eax, ebx
mov byte [eax], 0
jmp 0x10005f83
mov eax, ebx
mov byte [ecx + eax], 0x3d
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x10005f7d
mov eax, dword [ebx]
jmp 0x10005f7f
mov eax, ebx
mov byte [esi + eax], 0
cmp edi, 3
jl 0x10005f11
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9a6
mov esp, ebp
pop ebp
ret