Function at 0x409010
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564189
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x28], 1
jb 0x409063
mov ecx, dword [edx]
jmp 0x40906d
mov ecx, edx
jmp 0x40906d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [edx + 0x14]
cmp ebx, 0x10
jb 0x409079
mov edi, dword [edx]
jmp 0x40907b
mov edi, edx
mov eax, dword [edx + 0x10]
add edi, eax
cmp ecx, edi
je 0x409255
cmp ebx, 0x10
jb 0x40908f
mov edx, dword [edx]
sub eax, ecx
add eax, edx
mov dword [ebp - 0x24], eax
cmp eax, 3
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x24]
jl 0x4090a8
lea eax, [ebp - 0x20]
mov ebx, dword [eax]
mov dword [ebp - 0x20], ebx
xor edx, edx
add ebx, ecx
mov word [ebp - 0x14], dx
mov byte [ebp - 0x12], dl
cmp ecx, ebx
je 0x4090d1
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
call fcn.0053b1b0
mov dl, byte [ebp - 0x12]
add esp, 0xc
mov al, byte [ebp - 0x14]
mov cl, al
shr cl, 2
mov byte [ebp - 0x18], cl
mov cl, byte [ebp - 0x13]
and al, 3
mov dword [ebp - 0x24], ebx
mov bl, cl
shl al, 4
shr bl, 4
or al, bl
and cl, 0xf
mov byte [ebp - 0x17], al
add cl, cl
mov al, dl
add cl, cl
shr al, 6
or cl, al
mov byte [ebp - 0x16], cl
mov ecx, dword [ebp - 0x20]
and dl, 0x3f
xor edi, edi
lea eax, [ecx + 1]
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x1c], edi
test eax, eax
jle 0x4091b3
movzx ecx, byte [ebp + edi - 0x18]
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
mov byte [ebp - 0x10], dl
cmp ecx, 1
jbe 0x40924b
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x40924b
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x40916b
push eax
push ebx
mov ecx, esi
call fcn.00406d20
test ebx, ebx
je 0x4091a1
mov edi, dword [esi + 0x10]
mov ecx, 0x10
cmp dword [esi + 0x14], ecx
jb 0x409184
mov eax, dword [esi]
jmp 0x409186
test ebx, ebx
jne 0x40915a
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x40917d
mov eax, dword [esi]
mov byte [eax], bl
jmp 0x4091a1
mov eax, esi
mov byte [eax], 0
jmp 0x4091a1
mov eax, esi
mov dl, byte [ebp - 0x10]
mov byte [eax + edi], dl
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ecx
jb 0x409198
mov eax, dword [esi]
jmp 0x40919a
mov eax, esi
mov edi, dword [ebp - 0x1c]
mov byte [eax + ebx], 0
mov ecx, dword [ebp - 0x20]
inc edi
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], edi
cmp edi, eax
jl 0x40911b
mov edi, 3
sub edi, ecx
mov dword [ebp - 0x20], 0
test edi, edi
jle 0x409067
lea esp, [esp]
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x40924b
lea ebx, [eax + 1]
cmp ebx, 0xfffffffe
ja 0x40924b
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x40920a
push eax
push ebx
mov ecx, esi
call fcn.00406d20
test ebx, ebx
je 0x40923b
mov ecx, dword [esi + 0x10]
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x409223
mov eax, dword [esi]
jmp 0x409225
test ebx, ebx
jne 0x4091f9
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x40921c
mov eax, dword [esi]
mov byte [eax], bl
jmp 0x40923b
mov eax, esi
mov byte [eax], 0
jmp 0x40923b
mov eax, esi
mov byte [eax + ecx], 0x3d
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], edx
jb 0x409235
mov eax, dword [esi]
jmp 0x409237
mov eax, esi
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, edi
jl 0x4091d0
jmp 0x409067
push str.string_too_long
call fcn.005521ce
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 8