Function at 0x4904a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5153e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
je 0x490696
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x490696
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
push edi
shr edx, 1
lea ecx, [ebp - 0x1c]
push 0
shl edx, 2
push edx
call fcn.004902d0
mov eax, dword [ebp - 8]
lea ebx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp eax, 0x10
mov ecx, dword [ebp + 0xc]
cmovae ebx, edi
xor esi, esi
test ecx, ecx
je 0x4905e9
mov eax, dword [ebp + 8]
mov edx, 1
sub edx, eax
mov dword [ebp - 0x24], 1
dec ecx
mov dword [ebp - 0x2c], edx
lea edi, [eax + 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x28], eax
jmp 0x490530
movzx eax, byte [edi - 1]
lea ecx, [esi + 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
mov dl, byte [edi - 1]
mov eax, dword [ebp + 0xc]
and dl, 3
shl dl, 4
cmp dword [ebp - 0x24], eax
jae 0x4905b9
movzx eax, byte [edi]
shr al, 4
add al, dl
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
lea eax, [ecx + ebx]
mov dh, byte [edi]
inc ecx
mov dword [ebp - 0x30], eax
and dh, 0xf
mov eax, dword [ebp - 0x2c]
add eax, edi
shl dh, 2
cmp eax, dword [ebp + 0xc]
jae 0x49059c
mov dl, byte [edi + 1]
movzx eax, dl
and eax, 0x3f
shr dl, 6
add dl, dh
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1d], al
jmp 0x4905a2
mov byte [ebp - 0x1d], 0x3d
mov dl, dh
movzx eax, dl
mov edx, dword [ebp - 0x30]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov al, byte [ebp - 0x1d]
mov byte [ecx + ebx], al
jmp 0x4905cf
movzx eax, dl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
mov byte [ecx + ebx], 0x3d
inc ecx
mov byte [ecx + ebx], 0x3d
add dword [ebp - 0x24], 3
lea esi, [ecx + 1]
add edi, 3
sub dword [ebp - 0x28], 1
jne 0x490530
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
cmp ebx, ecx
je 0x490652
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x490626
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x49061c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906a6
mov eax, edx
push ecx
push eax
call fcn.0049211e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
mov eax, 0xf
mov byte [ebp - 0x1c], 0
mov edi, dword [ebp - 0x1c]
test esi, esi
setne bl
cmp eax, 0x10
jb 0x490683
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x490679
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906a6
push ecx
push edi
call fcn.0049211e
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049212c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0049212c
mov esp, ebp
pop ebp
ret
call fcn.0049da69
int3