Function at 0x4f0110
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0xc], 0
je 0x4f013b
cmp dword [ebp - 0x130], 0
jne 0x4f0142
mov al, 1
jmp 0x4f060e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ef400
add esp, 8
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004ec120
movzx ecx, al
test ecx, ecx
jne 0x4f0175
xor al, al
jmp 0x4f060e
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x4f01a2
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
cmp dword [ebp - 0xc], eax
jae 0x4f0315
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 8]
and edx, 0xfc
shr edx, 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x120], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
and ecx, 3
shl ecx, 4
mov edx, dword [ebp - 0x134]
and edx, 0xf0
shr edx, 4
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov cl, byte [edx + ecx]
mov byte [ebp + eax - 0x120], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x134]
and eax, 0xf
shl eax, 2
mov ecx, dword [ebp - 0x12c]
and ecx, 0xc0
shr ecx, 6
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + eax]
mov byte [ebp + edx - 0x120], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x12c]
and edx, 0x3f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x120], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jl 0x4f0310
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004ec750
movzx eax, al
test eax, eax
jne 0x4f0309
xor al, al
jmp 0x4f060e
mov dword [ebp - 4], 0
jmp 0x4f0199
cmp dword [ebp - 4], 0
je 0x4f0343
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004ec750
movzx eax, al
test eax, eax
jne 0x4f033c
xor al, al
jmp 0x4f060e
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 1
je 0x4f0379
cmp dword [ebp - 0x148], 2
je 0x4f049f
jmp 0x4f060b
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x128]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x13c], eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f03cd
mov edx, dword [ebp - 0x13c]
and edx, 0xfc
sar edx, 2
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f03cd
mov dword [ebp - 0x14c], 1
jmp 0x4f03d7
mov dword [ebp - 0x14c], 0
mov al, byte [ebp - 0x14c]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f0417
mov edx, dword [ebp - 0x13c]
and edx, 3
shl edx, 4
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f0417
mov dword [ebp - 0x150], 1
jmp 0x4f0421
mov dword [ebp - 0x150], 0
mov al, byte [ebp - 0x150]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f044f
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f044f
mov dword [ebp - 0x154], 1
jmp 0x4f0459
mov dword [ebp - 0x154], 0
mov al, byte [ebp - 0x154]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f0487
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f0487
mov dword [ebp - 0x158], 1
jmp 0x4f0491
mov dword [ebp - 0x158], 0
mov al, byte [ebp - 0x158]
mov byte [ebp - 0xd], al
jmp 0x4f060b
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x128]
movsx edx, byte [ecx]
and edx, 0xff
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x128]
movsx edx, byte [ecx]
and edx, 0xff
mov dword [ebp - 0x144], edx
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4f051e
mov ecx, dword [ebp - 0x140]
and ecx, 0xfc
sar ecx, 2
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + ecx]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx ecx, al
test ecx, ecx
je 0x4f051e
mov dword [ebp - 0x15c], 1
jmp 0x4f0528
mov dword [ebp - 0x15c], 0
mov dl, byte [ebp - 0x15c]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4f0579
mov ecx, dword [ebp - 0x140]
and ecx, 3
shl ecx, 4
mov edx, dword [ebp - 0x144]
and edx, 0xf0
sar edx, 4
or ecx, edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + ecx]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f0579
mov dword [ebp - 0x160], 1
jmp 0x4f0583
mov dword [ebp - 0x160], 0
mov al, byte [ebp - 0x160]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f05c0
mov edx, dword [ebp - 0x144]
and edx, 0xf
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + edx*4]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f05c0
mov dword [ebp - 0x164], 1
jmp 0x4f05ca
mov dword [ebp - 0x164], 0
mov al, byte [ebp - 0x164]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4f05f8
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004eab60
movzx edx, al
test edx, edx
je 0x4f05f8
mov dword [ebp - 0x168], 1
jmp 0x4f0602
mov dword [ebp - 0x168], 0
mov al, byte [ebp - 0x168]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret