Function at 0x4ffb20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0xc], 0
je 0x4ffb4b
cmp dword [ebp - 0x130], 0
jne 0x4ffb52
mov al, 1
jmp 0x50001e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004fee10
add esp, 8
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004d2e80
movzx ecx, al
test ecx, ecx
jne 0x4ffb85
xor al, al
jmp 0x50001e
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x4ffbb2
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 0x4ffd25
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 0x4ffd20
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004d33c0
movzx eax, al
test eax, eax
jne 0x4ffd19
xor al, al
jmp 0x50001e
mov dword [ebp - 4], 0
jmp 0x4ffba9
cmp dword [ebp - 4], 0
je 0x4ffd53
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004d33c0
movzx eax, al
test eax, eax
jne 0x4ffd4c
xor al, al
jmp 0x50001e
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 0x4ffd89
cmp dword [ebp - 0x148], 2
je 0x4ffeaf
jmp 0x50001b
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 0x4ffddd
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.004d19b0
movzx edx, al
test edx, edx
je 0x4ffddd
mov dword [ebp - 0x14c], 1
jmp 0x4ffde7
mov dword [ebp - 0x14c], 0
mov al, byte [ebp - 0x14c]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4ffe27
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.004d19b0
movzx edx, al
test edx, edx
je 0x4ffe27
mov dword [ebp - 0x150], 1
jmp 0x4ffe31
mov dword [ebp - 0x150], 0
mov al, byte [ebp - 0x150]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4ffe5f
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004d19b0
movzx edx, al
test edx, edx
je 0x4ffe5f
mov dword [ebp - 0x154], 1
jmp 0x4ffe69
mov dword [ebp - 0x154], 0
mov al, byte [ebp - 0x154]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4ffe97
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004d19b0
movzx edx, al
test edx, edx
je 0x4ffe97
mov dword [ebp - 0x158], 1
jmp 0x4ffea1
mov dword [ebp - 0x158], 0
mov al, byte [ebp - 0x158]
mov byte [ebp - 0xd], al
jmp 0x50001b
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 0x4fff2e
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.004d19b0
movzx ecx, al
test ecx, ecx
je 0x4fff2e
mov dword [ebp - 0x15c], 1
jmp 0x4fff38
mov dword [ebp - 0x15c], 0
mov dl, byte [ebp - 0x15c]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4fff89
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.004d19b0
movzx edx, al
test edx, edx
je 0x4fff89
mov dword [ebp - 0x160], 1
jmp 0x4fff93
mov dword [ebp - 0x160], 0
mov al, byte [ebp - 0x160]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4fffd0
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.004d19b0
movzx edx, al
test edx, edx
je 0x4fffd0
mov dword [ebp - 0x164], 1
jmp 0x4fffda
mov dword [ebp - 0x164], 0
mov al, byte [ebp - 0x164]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x500008
push 0x3d
mov ecx, dword [ebp + 0x14]
call fcn.004d19b0
movzx edx, al
test edx, edx
je 0x500008
mov dword [ebp - 0x168], 1
jmp 0x500012
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.004adf6a
mov esp, ebp
pop ebp
ret