Function at 0x496613
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x496637
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jae 0x49675f
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x18]
jae 0x496675
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jne 0x496675
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x49664a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jne 0x496682
jmp 0x49675f
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0xc]
cmp ecx, 2
jb 0x4966ae
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
cmp eax, 0xd
jne 0x4966ae
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 1]
cmp edx, 0xa
jne 0x4966ae
jmp 0x49662e
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xa
jne 0x4966c2
jmp 0x49662e
cmp dword [ebp - 8], 0
je 0x4966d2
mov eax, 0xffffffd4
jmp 0x4968c8
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x3d
jne 0x4966fa
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 2
jbe 0x4966fa
mov eax, 0xffffffd4
jmp 0x4968c8
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x7f
jg 0x496720
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
xor eax, eax
mov al, byte [edx + 0x5b4874]
cmp eax, 0x7f
jne 0x49672a
mov eax, 0xffffffd4
jmp 0x4968c8
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
xor eax, eax
mov al, byte [edx + 0x5b4874]
cmp eax, 0x40
jge 0x496751
cmp dword [ebp - 0x10], 0
je 0x496751
mov eax, 0xffffffd4
jmp 0x4968c8
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x49662e
cmp dword [ebp - 0x14], 0
jne 0x496775
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
xor eax, eax
jmp 0x4968c8
mov eax, dword [ebp - 0x14]
shr eax, 3
imul eax, eax, 6
mov ecx, dword [ebp - 0x14]
and ecx, 7
imul ecx, ecx, 6
add ecx, 7
shr ecx, 3
add eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 8], 0
je 0x4967a9
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x4967bb
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, 0xffffffd6
jmp 0x4968c8
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jmp 0x4967e9
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
cmp dword [ebp - 0xc], 0
jbe 0x4968bb
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0xd
je 0x496817
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xa
je 0x496817
mov edx, dword [ebp + 0x14]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jne 0x496819
jmp 0x4967d7
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
xor eax, eax
mov al, byte [edx + 0x5b4874]
xor ecx, ecx
cmp eax, 0x40
sete cl
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
shl eax, 6
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
xor ecx, ecx
mov cl, byte [edx + 0x5b4874]
and ecx, 0x3f
or eax, ecx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 4
jne 0x4968b6
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jbe 0x496885
mov eax, dword [ebp - 8]
shr eax, 0x10
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 1
jbe 0x49689f
mov eax, dword [ebp - 8]
shr eax, 8
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 2
jbe 0x4968b6
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 8]
mov byte [eax], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x4967d7
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret