Function at 0x10007f30
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 0x10007f59
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 0x100080c0
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 0x10007fd1
cmp eax, 0x40
jge 0x10007fd1
mov al, byte [esp + eax + 0xf4]
jmp 0x10007fd3
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 0x1000800a
cmp eax, 0x40
jge 0x1000800a
mov al, byte [esp + eax + 0x6c]
jmp 0x1000800c
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 0x10008048
cmp eax, 0x40
jge 0x10008048
mov al, byte [esp + eax + 0xb0]
jmp 0x1000804a
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 0x10008071
cmp ebx, 0x40
jge 0x10008071
mov al, byte [esp + ebx + 0x28]
jmp 0x10008073
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 0x10007f9f
mov ecx, dword [esp + 0x144]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jge 0x100081d2
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x100080f0
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 0x10008116
cmp edx, 0x40
jge 0x10008116
mov dl, byte [esp + edx + 0x28]
jmp 0x10008118
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 0x1000814a
cmp edx, 0x40
jge 0x1000814a
mov dl, byte [esp + edx + 0x28]
jmp 0x1000814c
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x10008187
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 0x10008187
cmp edx, 0x40
jge 0x10008187
mov dl, byte [esp + edx + 0x28]
jmp 0x10008189
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x100081b5
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 0x100081b5
cmp eax, 0x40
jge 0x100081b5
mov al, byte [esp + eax + 0x28]
jmp 0x100081b7
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