Function at 0x4527a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7b89
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c9860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x24], esi
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], 1
test edx, edx
jle 0x452b1c
lea esp, [esp]
mov al, byte [edi + esi]
inc edi
cmp edi, edx
je 0x452ad6
mov cl, byte [edi + esi]
inc edi
mov byte [ebp - 0xd], cl
cmp edi, edx
je 0x452a8d
mov cl, byte [edi + esi]
movzx edx, al
mov eax, edx
shr eax, 2
mov byte [ebp - 0xf], cl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0xe], al
or eax, 0xffffffff
sub eax, ecx
inc edi
mov dword [ebp - 0x1c], edx
cmp eax, 1
jbe 0x452a83
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x452a83
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x452887
push ecx
push esi
mov ecx, ebx
call fcn.0042bc40
mov edx, dword [ebp - 0x1c]
test esi, esi
je 0x4528bf
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x4528a1
mov eax, dword [ebx]
jmp 0x4528a3
test esi, esi
jne 0x45287a
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x45289a
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x4528bf
mov eax, ebx
mov byte [eax], 0
jmp 0x4528bf
mov eax, ebx
mov bl, byte [ebp - 0xe]
mov byte [eax + ecx], bl
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4528b9
mov eax, dword [ebx]
jmp 0x4528bb
mov eax, ebx
mov byte [eax + esi], 0
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
and edx, 3
shr eax, 4
shl edx, 4
or eax, edx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or eax, 0xffffffff
sub eax, ecx
mov byte [ebp - 0xe], dl
cmp eax, 1
jbe 0x452a83
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x452a83
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x45291b
push ecx
push esi
mov ecx, ebx
call fcn.0042bc40
mov dl, byte [ebp - 0xe]
test esi, esi
je 0x45294d
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x452935
mov eax, dword [ebx]
jmp 0x452937
test esi, esi
jne 0x45290e
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x45292e
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x45294d
mov eax, ebx
mov byte [eax], 0
jmp 0x45294d
mov eax, ebx
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x452947
mov eax, dword [ebx]
jmp 0x452949
mov eax, ebx
mov byte [eax + esi], 0
movzx edx, byte [ebp - 0xf]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xf
mov eax, edx
shr eax, 6
shl ecx, 2
or eax, ecx
mov ecx, dword [ebx + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xf], al
or eax, 0xffffffff
sub eax, ecx
mov dword [ebp - 0x20], edx
cmp eax, 1
jbe 0x452a83
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x452a83
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x4529ae
push ecx
push esi
mov ecx, ebx
call fcn.0042bc40
mov edx, dword [ebp - 0x20]
test esi, esi
je 0x4529e6
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x4529c8
mov eax, dword [ebx]
jmp 0x4529ca
test esi, esi
jne 0x4529a1
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x4529c1
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x4529e6
mov eax, ebx
mov byte [eax], 0
jmp 0x4529e6
mov eax, ebx
mov bl, byte [ebp - 0xf]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4529e0
mov eax, dword [ebx]
jmp 0x4529e2
mov eax, ebx
mov byte [esi + eax], 0
mov ecx, dword [ebx + 0x10]
and edx, 0x3f
or eax, 0xffffffff
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
sub eax, ecx
mov byte [ebp - 0xf], dl
cmp eax, 1
jbe 0x452a83
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x452a83
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x452a2f
push ecx
push esi
mov ecx, ebx
call fcn.0042bc40
mov dl, byte [ebp - 0xf]
test esi, esi
je 0x452a61
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x452a49
mov eax, dword [ebx]
jmp 0x452a4b
test esi, esi
jne 0x452a22
mov dword [ebx + 0x10], esi
cmp eax, 0x10
jb 0x452a42
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x452a61
mov eax, ebx
mov byte [eax], 0
jmp 0x452a61
mov eax, ebx
mov byte [ecx + eax], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x452a5b
mov eax, dword [ebx]
jmp 0x452a5d
mov eax, ebx
mov byte [esi + eax], 0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
cmp edi, edx
jl 0x452810
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004791df
movzx esi, al
mov eax, esi
shr eax, 2
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0041ee60
movzx edi, byte [ebp - 0xd]
mov eax, edi
shr eax, 4
and esi, 3
shl esi, 4
or eax, esi
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0041ee60
and edi, 0xf
movzx eax, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
jmp 0x452b08
movzx esi, al
mov eax, esi
shr eax, 2
mov ecx, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0041ee60
and esi, 3
shl esi, 4
mov ecx, ebx
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
push 1
call fcn.0041ee60
push 0x3d
push 1
mov ecx, ebx
call fcn.0041ee60
push 0x3d
push 1
mov ecx, ebx
call fcn.0041ee60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret