Function at 0x401250
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4223fc]
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 - 0x120], esi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x128], edi
test ebx, ebx
jne 0x401294
mov ebx, esi
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401288
sub ebx, edx
mov dword [ebp + 8], ebx
lea eax, [ebx - 3]
xor edx, edx
test eax, eax
jle 0x401414
mov ebx, dword [ebp - 0x11c]
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x118], eax
lea ecx, [eax*4]
lea eax, [eax + eax*2]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], eax
mov edx, dword [esi]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0xd0]
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 0x4012fd
mov al, byte [ebp + eax - 0xd0]
jmp 0x4012ff
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 - 0x11c], 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 0x401343
mov al, byte [ebp + eax - 0x114]
jmp 0x401345
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 - 0x11c], ecx
mov eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x40138c
mov al, byte [ebp + eax - 0x8c]
jmp 0x40138e
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 - 0x11c], eax
movsb byte es:[edi], byte [esi]
cmp edx, 0x3f
ja 0x4013b8
mov al, byte [ebp + edx - 0x48]
jmp 0x4013ba
mov al, 0x3d
mov esi, dword [ebp - 0x120]
movsx eax, al
shl eax, 8
or eax, dword [ebp - 0x11c]
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 - 0x118]
mov dword [ebx - 4], eax
mov dword [ebp - 0x120], esi
jne 0x4012d2
mov edi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x11c], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x11c]
cmp edx, ebx
jge 0x40156e
xor eax, eax
sub ebx, edx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], eax
test ebx, ebx
jle 0x40144d
push ebx
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040a2b0
mov eax, dword [ebp - 0x118]
add esp, 0xc
mov dword [ebp - 0x120], 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 0x401470
mov cl, byte [ebp + edx - 0x48]
jmp 0x401472
mov cl, 0x3d
mov edx, dword [ebp - 0x11c]
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 - 0x124], ecx
mov eax, dword [ebp - 0x124]
mov ecx, 0x10
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x3f
ja 0x4014b1
mov al, byte [ebp + eax - 0x48]
jmp 0x4014b3
mov al, 0x3d
mov byte [edx + 1], al
cmp ebx, 1
jle 0x4014fb
mov eax, dword [ebp - 0x120]
mov ecx, eax
shr ecx, 8
and ecx, 0xf
shr eax, 0x16
shl ecx, 2
and eax, 3
or ecx, eax
mov dword [ebp - 0x124], ecx
mov eax, dword [ebp - 0x124]
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 0x4014fb
mov al, byte [ebp + eax - 0x48]
jmp 0x4014fd
mov al, 0x3d
mov byte [edx + 2], al
cmp ebx, 2
jle 0x40154b
mov eax, dword [ebp - 0x120]
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 0x40154b
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.004082c3
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.004082c3
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.004082c3
mov esp, ebp
pop ebp
ret