Function at 0x4b2150
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6121b9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x685680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov eax, 0x20
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
xor ebx, ebx
lea ebx, [ebx]
dec eax
mov dword [ebp - 0x24], eax
mov al, byte [edx]
mov byte [ebp + ebx - 0x14], al
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
inc ebx
inc edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], ch
mov byte [ebp - 0xf], cl
cmp ebx, 3
jne 0x4b22a6
mov al, cl
shr al, 2
mov byte [ebp - 0x18], al
and cl, 3
shl cl, 4
mov al, ch
shr al, 4
add cl, al
mov byte [ebp - 0x17], 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 - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
lea ecx, [ecx]
movzx eax, byte [ebp + ebx - 0x18]
mov ecx, dword [edi + 0x10]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or eax, 0xffffffff
sub eax, ecx
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x4b22db
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4b22db
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x4b225f
push ecx
push esi
mov ecx, edi
call fcn.00403b10
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x4b2291
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4b2279
mov eax, dword [edi]
jmp 0x4b227b
test esi, esi
jne 0x4b2252
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x4b2272
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4b2291
mov eax, edi
mov byte [eax], 0
jmp 0x4b2291
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4b228b
mov eax, dword [edi]
jmp 0x4b228d
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x4b2210
mov edx, dword [ebp - 0x20]
mov ch, byte [ebp - 0xe]
mov cl, byte [ebp - 0xf]
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4b21b0
test ebx, ebx
je 0x4b243a
mov eax, ebx
cmp ebx, 3
jge 0x4b22ea
cmp eax, 3
jae 0x4b22e5
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4b22c3
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x4b22ed
push str.string_too_long
call fcn.005f572f
call fcn.005cde20
mov dl, byte [ebp - 0x10]
mov al, cl
shr al, 2
mov byte [ebp - 0x18], 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 - 0x15], dl
xor edx, edx
lea eax, [ebx + 1]
mov byte [ebp - 0x17], cl
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x4b23be
jmp 0x4b2330
movzx eax, byte [ebp + edx - 0x18]
mov ecx, dword [edi + 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x10], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4b22db
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4b22db
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x4b2377
push ecx
push esi
mov ecx, edi
call fcn.00403b10
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x4b23af
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4b2391
mov eax, dword [edi]
jmp 0x4b2393
test esi, esi
jne 0x4b236a
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x4b238a
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4b23af
mov eax, edi
mov byte [eax], 0
jmp 0x4b23af
mov eax, edi
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4b23a6
mov eax, dword [edi]
jmp 0x4b23a8
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [eax + esi], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x4b2330
cmp ebx, 3
jge 0x4b243a
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x4b22db
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4b22db
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x4b2402
push ecx
push esi
mov ecx, edi
call fcn.00403b10
test esi, esi
je 0x4b2435
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4b241c
mov eax, dword [edi]
jmp 0x4b241e
test esi, esi
jne 0x4b23f5
mov dword [edi + 0x10], esi
cmp eax, 0x10
jb 0x4b2415
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4b2435
mov eax, edi
mov byte [eax], 0
jmp 0x4b2435
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4b242f
mov eax, dword [edi]
jmp 0x4b2431
mov eax, edi
mov byte [esi + eax], 0
cmp ebx, 3
jl 0x4b23c3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret