Function at 0x4034a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov ecx, dword [ebp + 0x10]
test ecx, ecx
mov eax, dword [0x41f608]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x148], eax
push edi
jne 0x4034de
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034d0
sub eax, esi
mov dword [ebp + 0x10], eax
mov ecx, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
lea eax, [ecx - 3]
xor edx, edx
test eax, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], ebx
jle 0x403645
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
lea eax, [edx*4]
lea ecx, [edx + edx*2]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov eax, edx
shr eax, 2
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x40354d
cmp eax, 0x40
jge 0x40354d
mov al, byte [esp + eax + 0x70]
jmp 0x40354f
mov al, 0x3d
movsx eax, al
mov dword [esp + 0x1c], eax
mov eax, edx
mov ecx, edx
and ecx, 3
shr eax, 0xc
shl ecx, 4
and eax, 0xf
or eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x100]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40358c
cmp eax, 0x40
jge 0x40358c
mov al, byte [esp + eax + 0x100]
jmp 0x40358e
mov al, 0x3d
movsx eax, al
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 8
mov ecx, edx
shr ecx, 0x16
and eax, 0xf
and ecx, 3
shl eax, 2
or eax, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x4035ce
cmp eax, 0x40
jge 0x4035ce
mov al, byte [esp + eax + 0xb8]
jmp 0x4035d0
mov al, 0x3d
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
shr edx, 0x10
and edx, 0x3f
movsx ebx, al
movsb byte es:[edi], byte [esi]
jl 0x4035f7
cmp edx, 0x40
jge 0x4035f7
mov al, byte [esp + edx + 0x28]
jmp 0x4035f9
mov al, 0x3d
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
movsx edx, al
mov eax, dword [esp + 0xc]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x24]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
add ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x403521
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
cmp edx, ecx
jge 0x403786
sub ecx, edx
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jle 0x403677
mov esi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
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]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x40369d
cmp edx, 0x40
jge 0x40369d
mov dl, byte [esp + edx + 0x28]
jmp 0x40369f
mov dl, 0x3d
mov byte [ebx], dl
mov edx, eax
mov ecx, eax
and ecx, 3
shr edx, 0xc
shl ecx, 4
and edx, 0xf
or edx, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x4036d1
cmp edx, 0x40
jge 0x4036d1
mov dl, byte [esp + edx + 0x28]
jmp 0x4036d3
mov dl, 0x3d
cmp dword [esp + 0xc], 1
mov byte [ebx + 1], dl
jle 0x403710
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x16
and edx, 0xf
and ecx, 3
shl edx, 2
or edx, ecx
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x403710
cmp edx, 0x40
jge 0x403710
mov dl, byte [esp + edx + 0x28]
jmp 0x403712
mov dl, 0x3d
cmp dword [esp + 0xc], 2
mov byte [ebx + 2], dl
jle 0x403761
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 0x403761
cmp eax, 0x40
jge 0x403761
mov al, byte [esp + eax + 0x28]
mov byte [ebx + 3], al
mov eax, dword [esp + 0x18]
add ebx, 4
add eax, 4
mov byte [ebx], 0
mov ecx, dword [esp + 0x14c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [ebx + 3], al
mov eax, dword [esp + 0x18]
add ebx, 4
add eax, 4
mov byte [ebx], 0
mov ecx, dword [esp + 0x14c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x18]
mov byte [ebx], 0
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret