Function at 0x438150
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2709
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0
push edi
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x43819f
mov eax, dword [ebx]
jmp 0x4381a1
mov eax, ebx
mov byte [eax], 0
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x438469
push esi
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + edi - 0x14], al
inc edi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], ch
mov byte [ebp - 0xf], cl
cmp edi, 3
jne 0x4382c7
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, ch
and cl, 0xf
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 edi, edi
cmp dword [0x4cf7ec], 0x10
mov eax, 0x4cf7d8
movzx ecx, byte [ebp + edi - 0x18]
cmovae eax, dword [0x4cf7d8]
mov dl, byte [eax + ecx]
mov ecx, dword [ebx + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x438307
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x438307
cmp dword [ebx + 0x14], esi
jae 0x43827c
push ecx
push esi
mov ecx, ebx
call fcn.00409b20
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x4382af
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x438297
mov eax, dword [ebx]
jmp 0x438299
test esi, esi
jne 0x43826f
mov dword [ebx + 0x10], esi
cmp dword [ebx + 0x14], 0x10
jb 0x438290
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x4382af
mov eax, ebx
mov byte [eax], 0
jmp 0x4382af
mov eax, ebx
mov byte [eax + ecx], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4382a9
mov eax, dword [ebx]
jmp 0x4382ab
mov eax, ebx
mov byte [eax + esi], 0
inc edi
cmp edi, 4
jl 0x438220
mov edx, dword [ebp - 0x24]
xor edi, edi
mov ch, byte [ebp - 0xe]
mov cl, byte [ebp - 0xf]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4381c0
test edi, edi
je 0x438468
cmp edi, 3
jge 0x438311
mov ecx, 3
lea edx, [ebp - 0x14]
sub ecx, edi
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
jmp 0x438314
push str.string_too_long
call fcn.0043fa25
mov dl, byte [ebp - 0x10]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
xor edx, edx
mov byte [ebp - 0x16], ch
lea eax, [edi + 1]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x4383ee
cmp dword [0x4cf7ec], 0x10
mov eax, 0x4cf7d8
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x4cf7d8]
mov al, byte [eax + ecx]
mov ecx, dword [ebx + 0x10]
mov byte [ebp + 0xb], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x438307
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x438307
cmp dword [ebx + 0x14], esi
jae 0x4383a6
push ecx
push esi
mov ecx, ebx
call fcn.00409b20
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x4383df
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x4383c1
mov eax, dword [ebx]
jmp 0x4383c3
test esi, esi
jne 0x438399
mov dword [ebx + 0x10], esi
cmp dword [ebx + 0x14], 0x10
jb 0x4383ba
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x4383df
mov eax, ebx
mov byte [eax], 0
jmp 0x4383df
mov eax, ebx
mov dl, byte [ebp + 0xb]
mov byte [ecx + eax], dl
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4383d6
mov eax, dword [ebx]
jmp 0x4383d8
mov eax, ebx
mov edx, dword [ebp - 0x14]
mov byte [esi + eax], 0
inc edx
lea eax, [edi + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x438352
cmp edi, 3
jge 0x438468
mov ecx, dword [ebx + 0x10]
inc edi
mov eax, ecx
not eax
cmp eax, 1
jbe 0x438307
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x438307
cmp dword [ebx + 0x14], esi
jae 0x43842f
push ecx
push esi
mov ecx, ebx
call fcn.00409b20
test esi, esi
je 0x438463
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x43844a
mov eax, dword [ebx]
jmp 0x43844c
test esi, esi
jne 0x438422
mov dword [ebx + 0x10], esi
cmp dword [ebx + 0x14], 0x10
jb 0x438443
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x438463
mov eax, ebx
mov byte [eax], 0
jmp 0x438463
mov eax, ebx
mov byte [ecx + eax], 0x3d
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x43845d
mov eax, dword [ebx]
jmp 0x43845f
mov eax, ebx
mov byte [eax + esi], 0
cmp edi, 3
jl 0x4383f3
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret