Function at 0x440418
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ab8
xor eax, eax
push ebp
push 0x4406c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040688c
mov ecx, 3
cdq
idiv ecx
mov byte [ebp - 0x10], dl
cmp byte [ebp - 0x10], 0
jne 0x440474
mov eax, dword [ebp - 4]
call fcn.0040688c
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov dword [ebp - 0x14], eax
jmp 0x440494
mov eax, dword [ebp - 4]
call fcn.0040688c
add eax, 3
movzx edx, byte [ebp - 0x10]
sub eax, edx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x43f180]
call fcn.00406a48
add esp, 4
xor esi, esi
xor edi, edi
jmp 0x440554
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi + 1]
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edi + 2]
mov byte [ebp - 0xd], bl
movzx eax, byte [ebp - 0xf]
shr eax, 2
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
movzx eax, byte [ebp - 0xf]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [ebp - 0xe]
shr edx, 4
and edx, 0xf
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 1], al
movzx eax, byte [ebp - 0xe]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx edx, bl
shr edx, 6
and edx, 3
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 2], al
and bl, 0x3f
movzx eax, bl
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 3], al
add esi, 4
add edi, 3
mov eax, dword [ebp - 4]
call fcn.0040688c
movzx edx, byte [ebp - 0x10]
sub eax, edx
cmp edi, eax
jl 0x4404b7
cmp byte [ebp - 0x10], 1
jne 0x4405e7
mov eax, dword [ebp - 4]
call fcn.0040688c
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov byte [ebp - 0xf], al
xor edx, edx
mov byte [ebp - 0xe], dl
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
lea ebx, [ecx + ebx - 4]
movzx eax, byte [ebp - 0xf]
movzx ecx, al
shr ecx, 2
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
and al, 3
movzx eax, al
shl eax, 4
movzx edx, dl
shr edx, 4
and edx, 0xf
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx - 3], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 2], 0x3d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 1], 0x3d
jmp 0x440695
cmp byte [ebp - 0x10], 2
jne 0x440695
mov eax, dword [ebp - 4]
call fcn.0040688c
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 2]
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 4]
call fcn.0040688c
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov byte [ebp - 0xe], al
xor ecx, ecx
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
lea ebx, [edx + ebx - 4]
movzx eax, byte [ebp - 0xf]
movzx edx, al
shr edx, 2
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], dl
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [ebp - 0xe]
movzx ebx, dl
shr ebx, 4
and ebx, 0xf
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov byte [ebx + esi - 3], al
and dl, 0xf
movzx eax, dl
add eax, eax
add eax, eax
movzx edx, cl
shr edx, 6
and edx, 3
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx - 2], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 1], 0x3d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004400b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4406c8
lea eax, [ebp - 8]
mov edx, dword [0x43f180]
mov ecx, 2
call fcn.00406098
ret