Function at 0x415e10
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x128
test ecx, ecx
push ebx
push ebp
push esi
push edi
jne 0x415e39
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x144], ecx
mov ebx, dword [esp + 0x13c]
mov dword [esp + 0x14], edx
lea eax, [ecx - 3]
xor edx, edx
test eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
jle 0x415fa0
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov dword [esp + 0x10], edx
lea eax, [edx*4]
lea ecx, [edx + edx*2]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x14]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0xf4]
mov ebx, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
shr eax, 2
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x415eb1
cmp eax, 0x40
jge 0x415eb1
mov al, byte [esp + eax + 0xf4]
jmp 0x415eb3
mov al, 0x3d
movsx eax, al
mov dword [esp + 0x20], eax
mov eax, ebx
mov ecx, ebx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr eax, 0xc
and ecx, 3
and eax, 0xf
shl ecx, 4
or eax, ecx
mov ecx, 0x10
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x415eea
cmp eax, 0x40
jge 0x415eea
mov al, byte [esp + eax + 0x6c]
jmp 0x415eec
mov al, 0x3d
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0xb0]
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
movsx ebp, al
mov eax, ebx
shr eax, 8
and eax, 0xf
shr edx, 0x16
shl eax, 2
and edx, 3
or eax, edx
movsb byte es:[edi], byte [esi]
jl 0x415f28
cmp eax, 0x40
jge 0x415f28
mov al, byte [esp + eax + 0xb0]
jmp 0x415f2a
mov al, 0x3d
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
shr ebx, 0x10
and ebx, 0x3f
movsx edx, al
movsb byte es:[edi], byte [esi]
jl 0x415f51
cmp ebx, 0x40
jge 0x415f51
mov al, byte [esp + ebx + 0x28]
jmp 0x415f53
mov al, 0x3d
movsx ecx, al
shl ecx, 8
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
or ecx, edx
add eax, 4
shl ecx, 8
or ecx, ebp
mov dword [esp + 0x18], eax
shl ecx, 8
or ecx, esi
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x415e7f
mov ecx, dword [esp + 0x144]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jge 0x4160b2
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x415fd0
mov esi, dword [esp + 0x14]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
mov edx, eax
rep movsd dword es:[edi], dword [esi]
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x415ff6
cmp edx, 0x40
jge 0x415ff6
mov dl, byte [esp + edx + 0x28]
jmp 0x415ff8
mov dl, 0x3d
mov byte [ebx], dl
mov edx, eax
mov ecx, eax
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr edx, 0xc
and ecx, 3
and edx, 0xf
shl ecx, 4
or edx, ecx
mov ecx, 0x10
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x41602a
cmp edx, 0x40
jge 0x41602a
mov dl, byte [esp + edx + 0x28]
jmp 0x41602c
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x416067
mov edx, eax
mov ecx, eax
shr edx, 8
and edx, 0xf
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr ecx, 0x16
shl edx, 2
and ecx, 3
lea edi, [esp + 0x28]
or edx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x416067
cmp edx, 0x40
jge 0x416067
mov dl, byte [esp + edx + 0x28]
jmp 0x416069
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x416095
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x416095
cmp eax, 0x40
jge 0x416095
mov al, byte [esp + eax + 0x28]
jmp 0x416097
mov al, 0x3d
mov byte [ebx + 3], al
mov eax, dword [esp + 0x1c]
add ebx, 4
pop edi
pop esi
pop ebp
mov byte [ebx], 0
add eax, 4
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov byte [ebx], 0
pop ebp
pop ebx
add esp, 0x128
ret