Function at 0x415de0
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 0x415e09
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 0x415f70
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 0x415e81
cmp eax, 0x40
jge 0x415e81
mov al, byte [esp + eax + 0xf4]
jmp 0x415e83
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 0x415eba
cmp eax, 0x40
jge 0x415eba
mov al, byte [esp + eax + 0x6c]
jmp 0x415ebc
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 0x415ef8
cmp eax, 0x40
jge 0x415ef8
mov al, byte [esp + eax + 0xb0]
jmp 0x415efa
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 0x415f21
cmp ebx, 0x40
jge 0x415f21
mov al, byte [esp + ebx + 0x28]
jmp 0x415f23
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 0x415e4f
mov ecx, dword [esp + 0x144]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jge 0x416082
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x415fa0
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 0x415fc6
cmp edx, 0x40
jge 0x415fc6
mov dl, byte [esp + edx + 0x28]
jmp 0x415fc8
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 0x415ffa
cmp edx, 0x40
jge 0x415ffa
mov dl, byte [esp + edx + 0x28]
jmp 0x415ffc
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x416037
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 0x416037
cmp edx, 0x40
jge 0x416037
mov dl, byte [esp + edx + 0x28]
jmp 0x416039
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x416065
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 0x416065
cmp eax, 0x40
jge 0x416065
mov al, byte [esp + eax + 0x28]
jmp 0x416067
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