Function at 0x40c7b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4290c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x128], edi
test ebx, ebx
jne 0x40c7f4
mov ebx, esi
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40c7e8
sub ebx, edx
mov dword [ebp + 8], ebx
lea eax, [ebx - 3]
xor edx, edx
test eax, eax
jle 0x40c974
mov ebx, dword [ebp - 0x118]
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x124], eax
lea ecx, [eax*4]
lea eax, [eax + eax*2]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x120], eax
mov edx, dword [esi]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov eax, edx
shr eax, 2
and eax, 0x3f
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40c85d
mov al, byte [ebp + eax - 0x8c]
jmp 0x40c85f
mov al, 0x3d
movsx eax, al
mov dword [ebp - 0x12c], eax
mov ecx, edx
shr ecx, 0xc
mov eax, edx
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
mov dword [ebp - 0x118], ecx
mov eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40c8a3
mov al, byte [ebp + eax - 0x114]
jmp 0x40c8a5
mov al, 0x3d
movsx eax, al
mov dword [ebp - 0x130], eax
mov ecx, edx
shr ecx, 8
and ecx, 0xf
mov eax, edx
shr eax, 0x16
shl ecx, 2
and eax, 3
or ecx, eax
mov dword [ebp - 0x118], ecx
mov eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0xd0]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40c8ec
mov al, byte [ebp + eax - 0xd0]
jmp 0x40c8ee
mov al, 0x3d
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
shr edx, 0x10
movsx eax, al
and edx, 0x3f
mov dword [ebp - 0x118], eax
movsb byte es:[edi], byte [esi]
cmp edx, 0x3f
ja 0x40c918
mov al, byte [ebp + edx - 0x48]
jmp 0x40c91a
mov al, 0x3d
mov esi, dword [ebp - 0x11c]
movsx eax, al
shl eax, 8
or eax, dword [ebp - 0x118]
add esi, 3
shl eax, 8
or eax, dword [ebp - 0x130]
add ebx, 4
shl eax, 8
or eax, dword [ebp - 0x12c]
dec dword [ebp - 0x124]
mov dword [ebx - 4], eax
mov dword [ebp - 0x11c], esi
jne 0x40c832
mov edi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x118], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x118]
cmp edx, ebx
jge 0x40cace
xor eax, eax
sub ebx, edx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], eax
test ebx, ebx
jle 0x40c9ad
push ebx
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.0040edd0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
cmp edx, 0x3f
ja 0x40c9d0
mov cl, byte [ebp + edx - 0x48]
jmp 0x40c9d2
mov cl, 0x3d
mov edx, dword [ebp - 0x118]
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp - 0x120]
mov ecx, 0x10
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40ca11
mov al, byte [ebp + eax - 0x48]
jmp 0x40ca13
mov al, 0x3d
mov byte [edx + 1], al
cmp ebx, 1
jle 0x40ca5b
mov eax, dword [ebp - 0x11c]
mov ecx, eax
shr ecx, 8
and ecx, 0xf
shr eax, 0x16
shl ecx, 2
and eax, 3
or ecx, eax
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp - 0x120]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40ca5b
mov al, byte [ebp + eax - 0x48]
jmp 0x40ca5d
mov al, 0x3d
mov byte [edx + 2], al
cmp ebx, 2
jle 0x40caab
mov eax, dword [ebp - 0x11c]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40caab
mov al, byte [ebp + eax - 0x48]
mov byte [edx + 3], al
mov eax, dword [ebp - 0x128]
pop edi
pop esi
add eax, 4
mov byte [edx + 4], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d11f
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [edx + 3], al
mov eax, dword [ebp - 0x128]
pop edi
pop esi
add eax, 4
mov byte [edx + 4], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d11f
mov esp, ebp
pop ebp
ret
mov byte [ecx], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d11f
mov esp, ebp
pop ebp
ret